You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove duplicate package declaration in test; revert premature snapshotID from spec
- Remove duplicate 'package snapshotcache' line in snapshot_cache_test.go
(caused compile error, caught by Codex/Gemini review)
- Revert snapshotID field from NewSandbox schema and related descriptions
in openapi.yml — backend handler not yet implemented, advertising it
breaks the API contract (caught by Codex P2 review)
Copy file name to clipboardExpand all lines: spec/openapi.yml
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -633,13 +633,12 @@ components:
633
633
$ref: "#/components/schemas/SandboxMetric"
634
634
635
635
NewSandbox:
636
+
required:
637
+
- templateID
636
638
properties:
637
639
templateID:
638
640
type: string
639
-
description: Identifier of the required template. Either templateID or snapshotID must be provided.
640
-
snapshotID:
641
-
type: string
642
-
description: Identifier of the snapshot to resume from. Either templateID or snapshotID must be provided. When specified, the sandbox will be created from the snapshot state.
641
+
description: Identifier of the required template.
643
642
timeout:
644
643
type: integer
645
644
format: int32
@@ -1988,7 +1987,7 @@ paths:
1988
1987
"500":
1989
1988
$ref: "#/components/responses/500"
1990
1989
post:
1991
-
description: Create a sandbox from a template or snapshot. Provide either templateID to create from a template, or snapshotID to resume from a paused sandbox snapshot.
1990
+
description: Create a new sandbox from a template.
1992
1991
tags: [sandboxes]
1993
1992
security:
1994
1993
- ApiKeyAuth: []
@@ -2276,7 +2275,7 @@ paths:
2276
2275
2277
2276
/sandboxes/{sandboxID}/pause:
2278
2277
post:
2279
-
description: Pause the sandbox. This creates an automatic snapshot of the sandbox state that can be used to resume it later via POST /sandboxes with the snapshotID parameter.
2278
+
description: Pause the sandbox. This creates an automatic snapshot of the sandbox state that can be used to resume it later.
2280
2279
tags: [sandboxes]
2281
2280
security:
2282
2281
- ApiKeyAuth: []
@@ -2299,7 +2298,7 @@ paths:
2299
2298
/sandboxes/{sandboxID}/resume:
2300
2299
post:
2301
2300
deprecated: true
2302
-
description: Resume the sandbox. DEPRECATED - Use POST /sandboxes with snapshotID parameter instead to create a new sandbox from a snapshot.
2301
+
description: Resume the sandbox. DEPRECATED - Use POST /sandboxes instead.
2303
2302
tags: [sandboxes]
2304
2303
security:
2305
2304
- ApiKeyAuth: []
@@ -2315,7 +2314,7 @@ paths:
2315
2314
$ref: "#/components/schemas/ResumedSandbox"
2316
2315
responses:
2317
2316
"201":
2318
-
description: The sandbox was resumed successfully. This endpoint is deprecated - use POST /sandboxes with snapshotID instead.
2317
+
description: The sandbox was resumed successfully. This endpoint is deprecated.
0 commit comments