swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

OpenAPI 3.1 broken reference to child class with oneOf reference

Open GooDer opened this issue 1 year ago • 0 comments

Hi, I encountered another bug related to new OpenAPI 3.1 version.

When we have some object which's attribute is another object which is abstract and has at lease one implementation class it will not be rendered and error is displayed in swagger UI.

Version 3.0 output: image

Version 3.1 output: image

I found out that it is caused again by change in element class from ComposedSchema to JsonSchema.

I will try to provide fix also tomorrow.

Minimalistic project to reproduce: swagger-core-bug.zip

GooDer avatar Mar 20 '24 14:03 GooDer