-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[BUG] Multi Level Inheritance not generated correctly #3058
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
Comments
Having an issue with Elm and 4.0.0 release and inheritance, too. |
It seems the check for a discriminator only looks one level up. Repeating the discriminator in the intermediate type ( Update: this unfortunately generates java code that does not compile:
It tries to set the discriminator in the superclass from the constructor of the subclass. Redefining the |
Fixed by #4503 please evaluate and let us know if it needs to be reopened. |
As can be seen in these issues:
#1685
#2928
there is a problem with generating multi-level hierarchy with OpenAPI 4.x.x and 5.x.x.
the problem exists in numerous languages that we tested so we guess that it is a problem with the main code.
For example for the yaml below taken from issue 1685 version 3.3.4 generates the expected
While 4.xx and 5.xx generate
generation was executed using the maven-openapi-generator of the respective version (4.x.x and 5.x.x)
The text was updated successfully, but these errors were encountered: