Open jbojcic1 opened 1 year ago
Seems like schema with oneOf is not properly handled. I have the swagger.json which looks something like this:
"/v1/something": { "post": { "tags": ["Something"], "summary": "Create something", "description": "This some description", "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/TypeA" }, { "$ref": "#/components/schemas/TypeB" } ] } } }, "required": true }, "responses": { "201": { "description": "Created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TypeC" } } } } }, "security": [ { "Bearer": ["some.scope"] } ] } },
but it results in an empty body:
I see now this comment that seems to be related
Seems like schema with oneOf is not properly handled. I have the swagger.json which looks something like this:
but it results in an empty body: