You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mickaelropars
changed the title
OpenAPI - Polymorphism cmass does not work for response
OpenAPI - Polymorphism class does not work for response
Nov 28, 2024
Is there an existing issue for this?
Describe the bug
I have a method that produce
and I am using the Microsoft.AspNetCore.OpenApi package in order to produce the openapi json file
here is my code
The tree ConcreteClass implement the same BaseClass
But in the json produce openAI only ConcreteClass3 is present
Expected Behavior
what I am expecting is in the OpenApiOperation Response to have the 3 schemas described using the "oneOf" properties in order to store the 3 schemas
Steps To Reproduce
Exceptions (if any)
No response
.NET Version
9.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: