Skip to content

Commit

Permalink
swagger: add missing schema properties
Browse files Browse the repository at this point in the history
NO_TESTS_NEEDED

Signed-off-by: Tom Deseyn <[email protected]>
  • Loading branch information
tmds committed Feb 22, 2021
1 parent 4a6582b commit a2e1b3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions pkg/api/server/register_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
// description: add all contents if given list
// responses:
// 200:
// $ref: "#/definitions/IDResponse"
// schema:
// $ref: "#/definitions/IDResponse"
// 400:
// $ref: "#/responses/BadParamError"
// 404:
Expand Down Expand Up @@ -96,7 +97,8 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
// $ref: "#/definitions/ManifestAddOpts"
// responses:
// 200:
// $ref: "#/definitions/IDResponse"
// schema:
// $ref: "#/definitions/IDResponse"
// 404:
// $ref: "#/responses/NoSuchManifest"
// 409:
Expand All @@ -122,7 +124,8 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
// description: image digest to be removed
// responses:
// 200:
// $ref: "#/definitions/IDResponse"
// schema:
// $ref: "#/definitions/IDResponse"
// 400:
// $ref: "#/responses/BadParamError"
// 404:
Expand Down Expand Up @@ -153,7 +156,8 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
// type: boolean
// responses:
// 200:
// $ref: "#/definitions/IDResponse"
// schema:
// $ref: "#/definitions/IDResponse"
// 400:
// $ref: "#/responses/BadParamError"
// 404:
Expand Down
3 changes: 2 additions & 1 deletion pkg/api/server/register_pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error {
// $ref: "#/definitions/PodSpecGenerator"
// responses:
// 200:
// $ref: "#/definitions/IdResponse"
// schema:
// $ref: "#/definitions/IdResponse"
// 400:
// $ref: "#/responses/BadParamError"
// 409:
Expand Down

0 comments on commit a2e1b3e

Please sign in to comment.