Skip to content

Commit

Permalink
swagger: removes the schema type for PodSpecGenerator $ref
Browse files Browse the repository at this point in the history
When using a $ref, the type is ignored and it can confuse the openapi codegen
and make it fails with this error:

  attribute paths.'/libpod/pods/create'(post).[create].type is unexpected

This change removes the schema type attribute.

Signed-off-by: Tristan Cacqueray <[email protected]>
  • Loading branch information
TristanCacqueray committed Feb 24, 2021
1 parent dec06b1 commit 1aa96ed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/api/server/register_pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error {
// name: create
// description: attributes for creating a pod
// schema:
// type: object
// $ref: "#/definitions/PodSpecGenerator"
// responses:
// 200:
Expand Down

0 comments on commit 1aa96ed

Please sign in to comment.