Replies: 1 comment 1 reply
-
Hi @mexavier I'm afraid our templates are not handling this use case. Do you mind opening an issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I use quarkus-openapi-generator with a contract first approach for a new project. The team has a 6-month experience with quarkus.
However we failed to manage correctly polymorphism with quarkus-openapi-generator. The goal is to have operations that can manage multiple sub-types in the request or response.
We tried to use the discriminator keyword on setting it on the parent class and specifying the children implementations in the mapping part.
Hereunder is a exerpt :
When I generate the classes the classes does not hold the annotations @JsonTypeInfo and @JsonSubTypes managed by Jackson.
If do the same with "openapi generator 6" with jaxrs-resteasy, the generated class holds correcly those annotations :
Is it a limitation of the Quarkus OpenApi Generator or is there an other way to manage polymorphism ?
Thank you.
Xavier
Beta Was this translation helpful? Give feedback.
All reactions