Skip to content

Commit 71fea66

Browse files
authored
Remove exec from openapi spec (#13)
1 parent bb6c6bb commit 71fea66

File tree

4 files changed

+55
-371
lines changed

4 files changed

+55
-371
lines changed

cmd/api/api/instances.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -288,17 +288,6 @@ func (s *ApiService) DetachVolume(ctx context.Context, request oapi.DetachVolume
288288
}, nil
289289
}
290290

291-
// ExecInstance is a stub for the strict handler - actual exec uses WebSocket
292-
func (s *ApiService) ExecInstance(ctx context.Context, request oapi.ExecInstanceRequestObject) (oapi.ExecInstanceResponseObject, error) {
293-
// This method exists to satisfy the StrictServerInterface
294-
// Actual exec functionality is handled by ExecHandler which uses WebSocket upgrade
295-
// This should never be called since we register the custom WebSocket route first
296-
return oapi.ExecInstance500JSONResponse{
297-
Code: "internal_error",
298-
Message: "use websocket exec endpoint",
299-
}, nil
300-
}
301-
302291
// instanceToOAPI converts domain Instance to OAPI Instance
303292
func instanceToOAPI(inst instances.Instance) oapi.Instance {
304293
// Format sizes as human-readable strings with best precision

0 commit comments

Comments
 (0)