-
Notifications
You must be signed in to change notification settings - Fork 418
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
[Spring] @JsonTypeInfo property not set to Discriminator propertyName #103
Comments
atgabe
added a commit
to atgabe/swagger-codegen-generators
that referenced
this issue
Jun 18, 2018
This was referenced Jun 18, 2018
Any reason, why this was not added to mustache templates for JavaSpring generators? I see mustache as default templates for spring and scala codegen. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Spring codegen on a schema with a discriminator property populates the
@JsonTypeInfo
annotation with theDiscriminator
class represented as a string, instead of the propertyName itself.For example, this schema:
will generate this class:
The point of interest here is with the line:
which should read:
The text was updated successfully, but these errors were encountered: