-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] jaxrs-spec [server] oneOf, anyOf Polymorphism does not work #5565
Comments
Sorry, no - currently my time is limited :( |
I will give it a try need this feature to |
Any news on this fix? |
@s-jepsen i have it running in production code and it is running. I hope it gets merged |
@wing328 Hey! Any updates on this bugfix? It would be nice to have this feature implemented :) |
For oneOf, anyOf, please give the Java (jersey2, native) client generator a try as these generators have better support for oneOf, anyOf. |
Any update for the jaxrs-spec generator on this topic? |
Bug Report Checklist
Description
Currently, openapi-generator doesn't support oneOf. It currently generates the following broken code, outputting UNKNOWN_BASE_TYPE rather than Pet for the example below.
The code is broken with or without the discriminator in the Spec.
Bug:
Expected
Generator config:
OpenAPI Spec:
openapi-generator version
4.2.3
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
This bug is related to the Server side Java code (SpringBoot)
@bkabrda has already merged PR for client Jackson Client side: #5120
Suggest a fix
Try apply client side fix from #5120 to server side.
The text was updated successfully, but these errors were encountered: