mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
swagger: removes the schema type for PodSpecGenerator $ref
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 <tdecacqu@redhat.com>
This commit is contained in:
@ -36,7 +36,6 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error {
|
|||||||
// name: create
|
// name: create
|
||||||
// description: attributes for creating a pod
|
// description: attributes for creating a pod
|
||||||
// schema:
|
// schema:
|
||||||
// type: object
|
|
||||||
// $ref: "#/definitions/PodSpecGenerator"
|
// $ref: "#/definitions/PodSpecGenerator"
|
||||||
// responses:
|
// responses:
|
||||||
// 200:
|
// 200:
|
||||||
|
Reference in New Issue
Block a user