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 using inheritance (discriminator), the generated subclasses gains fields in their constructors for other subclasses fields. Also, the superclass, gets all the fields of all the subclasses combined. Some getters are also duplicated resulting in compile errors.
Bug Report Checklist
Description
When using inheritance (discriminator), the generated subclasses gains fields in their constructors for other subclasses fields. Also, the superclass, gets all the fields of all the subclasses combined. Some getters are also duplicated resulting in compile errors.
It seems all the fields are merged together.
openapi-generator version
6.11.0
OpenAPI declaration file content or url
https://gist.github.com/KangoV/ad36a85420f7c8187a208e09fe9d4242
Generation Details
Using Micronaut Gradle plugin:
Generates the superclass/subclass:
https://gist.github.com/KangoV/8a62886376207e281e8b0fedd008a24d
The text was updated successfully, but these errors were encountered: