We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38799c4 commit d25e149Copy full SHA for d25e149
1 file changed
modules/openapi-generator/src/main/resources/Java/pojo.mustache
@@ -70,6 +70,9 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
70
{{^isDiscriminator}}
71
{{>nullable_var_annotations}}{{! prevent indent}}
72
{{/isDiscriminator}}
73
+ {{#isDiscriminator}}
74
+ // The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
75
+ {{/isDiscriminator}}
76
{{#vendorExtensions.x-field-extra-annotation}}
77
{{{vendorExtensions.x-field-extra-annotation}}}
78
{{/vendorExtensions.x-field-extra-annotation}}
0 commit comments