Skip to content

Commit 7328cf8

Browse files
Exclude the discriminator field from getting a nullable_var_annotations
1 parent 6c31cbb commit 7328cf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
6767
{{#gson}}
6868
@SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}})
6969
{{/gson}}
70+
{{^isDiscriminator}}
7071
{{>nullable_var_annotations}}{{! prevent indent}}
72+
{{/isDiscriminator}}
7173
{{#vendorExtensions.x-field-extra-annotation}}
7274
{{{vendorExtensions.x-field-extra-annotation}}}
7375
{{/vendorExtensions.x-field-extra-annotation}}

0 commit comments

Comments
 (0)