Skip to content

Commit b517615

Browse files
Exclude the discriminator field from getting a nullable_var_annotations
1 parent 4c08ff8 commit b517615

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/openapi-generator/src/main/resources/Java/pojo.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
6565
{{#gson}}
6666
@SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}})
6767
{{/gson}}
68+
{{^isDiscriminator}}
6869
{{>nullable_var_annotations}}
70+
{{/isDiscriminator}}
6971
{{#vendorExtensions.x-field-extra-annotation}}
7072
{{{vendorExtensions.x-field-extra-annotation}}}
7173
{{/vendorExtensions.x-field-extra-annotation}}

0 commit comments

Comments
 (0)