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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When I define a schema with discriminator and a child has an enum property, the enum definition and the property is generated into the parent and therefore available for all other children. This also results in a compile error when generating the equals and hashCode methods.
This issue is currently blocking any updates of this generator for me.
openapi-generator version
I tried the latest master (7.7.0-20240520.095624). It worked with 7.2.0 and is broken since 7.3.0
Bug Report Checklist
Description
When I define a schema with discriminator and a child has an enum property, the enum definition and the property is generated into the parent and therefore available for all other children. This also results in a compile error when generating the equals and hashCode methods.
This issue is currently blocking any updates of this generator for me.
openapi-generator version
I tried the latest master (7.7.0-20240520.095624). It worked with 7.2.0 and is broken since 7.3.0
OpenAPI declaration file content or url
https://gist.github.com/Gerschtli/197faf5d172bcaf63d08cedaa364107f
Generation Details
Steps to reproduce
Use provided spec.yaml and generate java code with the command from above.
Related issues/PRs
I did not find any related Issues/PRs.
Suggest a fix
I don't have any workaround. As this is currently blocking me, any workaround would be appreciated!
The text was updated successfully, but these errors were encountered: