From 1aa96ed2e233039cd7ec81418a3a2cf9cd46b33b Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Wed, 24 Feb 2021 17:57:27 +0000 Subject: 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 --- pkg/api/server/register_pods.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/api/server/register_pods.go b/pkg/api/server/register_pods.go index 949bf80e2..c66cc48ff 100644 --- a/pkg/api/server/register_pods.go +++ b/pkg/api/server/register_pods.go @@ -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: -- cgit v1.2.3-54-g00ecf