We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0baa7b commit 906e335Copy full SHA for 906e335
1 file changed
modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache
@@ -4,6 +4,7 @@
4
* If the field is required, always include it, even if it is null.
5
* Else use custom behaviour, IOW use whatever is defined on the object mapper
6
}}
7
+
8
@JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{required}})
9
@JsonInclude({{#isMap}}{{#items.isNullable}}content = JsonInclude.Include.ALWAYS, {{/items.isNullable}}{{/isMap}}value = JsonInclude.Include.{{#required}}ALWAYS{{/required}}{{^required}}USE_DEFAULTS{{/required}})
10
{{#withXml}}
0 commit comments