diff --git a/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache b/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache index 4fbaf983be8d..18804d0a444b 100644 --- a/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache +++ b/modules/openapi-generator/src/main/resources/Java/jackson_annotations.mustache @@ -4,7 +4,7 @@ * If the field is required, always include it, even if it is null. * Else use custom behaviour, IOW use whatever is defined on the object mapper }} - @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) + @JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{required}}) @JsonInclude({{#isMap}}{{#items.isNullable}}content = JsonInclude.Include.ALWAYS, {{/items.isNullable}}{{/isMap}}value = JsonInclude.Include.{{#required}}ALWAYS{{/required}}{{^required}}USE_DEFAULTS{{/required}}) {{#withXml}} @JacksonXmlProperty(localName = "{{items.xmlName}}{{^items.xmlName}}{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}{{/items.xmlName}}"{{#isXmlAttribute}}, isAttribute = true{{/isXmlAttribute}}{{#xmlNamespace}}, namespace = "{{.}}"{{/xmlNamespace}}) diff --git a/modules/openapi-generator/src/main/resources/Java/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/pojo.mustache index 09482dd66e66..a679d3374ecb 100644 --- a/modules/openapi-generator/src/main/resources/Java/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/pojo.mustache @@ -108,7 +108,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens {{#jsonb}}@JsonbCreator{{/jsonb}}{{#jackson}}@JsonCreator{{/jackson}} public {{classname}}( {{#readOnlyVars}} - {{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}} + {{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{required}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}} {{/readOnlyVars}} ) { this(); @@ -123,7 +123,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens /** * Constructor with all args parameters */ - public {{classname}}({{#vendorExtensions.x-java-all-args-constructor-vars}}{{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-java-all-args-constructor-vars}}) { + public {{classname}}({{#vendorExtensions.x-java-all-args-constructor-vars}}{{#jsonb}}@JsonbProperty(value = "{{baseName}}"{{^required}}, nullable = true{{/required}}){{/jsonb}}{{#jackson}}@JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{required}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-java-all-args-constructor-vars}}) { {{#parent}} super({{#parentVars}}{{name}}{{^-last}}, {{/-last}}{{/parentVars}}); {{/parent}} @@ -252,7 +252,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens return {{name}}; } {{/vendorExtensions.x-is-jackson-optional-nullable}}{{#vendorExtensions.x-is-jackson-optional-nullable}} - @JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}}) + @JsonProperty(value = JSON_PROPERTY_{{nameInSnakeCase}}, required = {{required}}) {{#isReadOnly}}private{{/isReadOnly}}{{^isReadOnly}}public{{/isReadOnly}} void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { {{! For getters/setters that have name differing from attribute name, we must include setter (albeit private) for jackson to be able to set the attribute}} this.{{name}} = {{name}}; diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java index e5e14d46851d..a29b780c86dc 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java @@ -2099,10 +2099,10 @@ public void testDeprecatedPropertyJersey3() { TestUtils.assertFileContains( output.resolve("src/main/java/org/openapitools/client/model/BigDog.java"), "@Deprecated\n public BigDog declawed(@jakarta.annotation.Nullable Boolean declawed) {", // deprecated builder method - "@Deprecated\n @jakarta.annotation.Nullable\n @JsonProperty(JSON_PROPERTY_DECLAWED)\n" + "@Deprecated\n @jakarta.annotation.Nullable\n @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false)\n" + " @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n" + " public Boolean getDeclawed() {", // deprecated getter - "@Deprecated\n @JsonProperty(JSON_PROPERTY_DECLAWED)\n" + "@Deprecated\n @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false)\n" + " @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n" + " public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) {" // deprecated setter ); diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java index bad50ebf15c7..b42be78ca655 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java @@ -57,7 +57,7 @@ public Bird size(@javax.annotation.Nullable String size) { * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -65,7 +65,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -82,7 +82,7 @@ public Bird color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -90,7 +90,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java index 3a38d3a3bb78..e16924c79f9b 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java @@ -57,7 +57,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Category name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java index d66bfb24c911..d73cae47ac81 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java @@ -68,7 +68,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * @return suffix */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -76,7 +76,7 @@ public String getSuffix() { } - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; @@ -93,7 +93,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * @return text */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -101,7 +101,7 @@ public String getText() { } - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setText(@javax.annotation.Nullable String text) { this.text = text; @@ -118,7 +118,7 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * @return date */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDate() { @@ -126,7 +126,7 @@ public OffsetDateTime getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java index faf0905ed3ec..092b62f89676 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -140,7 +140,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * @return arrayStringEnumRefDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -148,7 +148,7 @@ public List getArrayStringEnumRefDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; @@ -173,7 +173,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * @return arrayStringEnumDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -181,7 +181,7 @@ public List getArrayStringEnumDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; @@ -206,7 +206,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * @return arrayStringDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -214,7 +214,7 @@ public List getArrayStringDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; @@ -239,7 +239,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * @return arrayIntegerDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -247,7 +247,7 @@ public List getArrayIntegerDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; @@ -272,7 +272,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * @return arrayString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -280,7 +280,7 @@ public List getArrayString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; @@ -315,14 +315,14 @@ public List getArrayStringNullable() { return arrayStringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) public void setArrayStringNullable_JsonNullable(JsonNullable> arrayStringNullable) { this.arrayStringNullable = arrayStringNullable; } @@ -360,14 +360,14 @@ public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) public void setArrayStringExtensionNullable_JsonNullable(JsonNullable> arrayStringExtensionNullable) { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } @@ -393,14 +393,14 @@ public String getStringNullable() { return stringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) public void setStringNullable_JsonNullable(JsonNullable stringNullable) { this.stringNullable = stringNullable; } diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index d2f2dbe848a5..a3b63c87e323 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -63,7 +63,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * @return number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -71,7 +71,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; @@ -88,7 +88,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -96,7 +96,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -115,7 +115,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -123,7 +123,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java index 62a88d10805e..5b6bccc30e97 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -152,7 +152,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -169,7 +169,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -177,7 +177,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -210,7 +210,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -235,7 +235,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -243,7 +243,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -260,7 +260,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -268,7 +268,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java index 49738aa20f9d..ad3e23d7958c 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java @@ -97,7 +97,7 @@ public Query id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -105,7 +105,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -130,7 +130,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * @return outcomes */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { @@ -138,7 +138,7 @@ public List getOutcomes() { } - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java index 69e8a3044a19..0124efe85dd2 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java @@ -57,7 +57,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index 9b269756b5b3..aa8efc7f3800 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -53,7 +53,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -61,7 +61,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 80dad71f8674..21886f92684d 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -68,7 +68,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -76,7 +76,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -93,7 +93,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -101,7 +101,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; @@ -118,7 +118,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -126,7 +126,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -143,7 +143,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -151,7 +151,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 4ff771455907..5791085e5a1c 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -64,7 +64,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * @return values */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { @@ -72,7 +72,7 @@ public List getValues() { } - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(@javax.annotation.Nullable List values) { this.values = values; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java index 952048db1f6c..13f45ef10b63 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Bird.java @@ -59,14 +59,14 @@ public Bird size(@javax.annotation.Nullable String size) { * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { return size; } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -83,14 +83,14 @@ public Bird color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java index d1ab4d0d52e3..b24aefc0e515 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Category.java @@ -59,14 +59,14 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,14 +83,14 @@ public Category name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java index e559ed31f4ca..09b3ff2e89fd 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DataQuery.java @@ -68,14 +68,14 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * @return suffix */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { return suffix; } - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; @@ -92,14 +92,14 @@ public DataQuery text(@javax.annotation.Nullable String text) { * @return text */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { return text; } - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setText(@javax.annotation.Nullable String text) { this.text = text; @@ -116,14 +116,14 @@ public DataQuery date(@javax.annotation.Nullable Instant date) { * @return date */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Instant getDate() { return date; } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDate(@javax.annotation.Nullable Instant date) { this.date = date; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java index c5cd8d523cae..25b8ca38a7ce 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -138,14 +138,14 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * @return arrayStringEnumRefDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { return arrayStringEnumRefDefault; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; @@ -170,14 +170,14 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * @return arrayStringEnumDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { return arrayStringEnumDefault; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; @@ -202,14 +202,14 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * @return arrayStringDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { return arrayStringDefault; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; @@ -234,14 +234,14 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * @return arrayIntegerDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { return arrayIntegerDefault; } - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; @@ -266,14 +266,14 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * @return arrayString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { return arrayString; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; @@ -307,7 +307,7 @@ public List getArrayStringNullable() { return arrayStringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringNullable_JsonNullable() { @@ -351,7 +351,7 @@ public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { @@ -383,7 +383,7 @@ public String getStringNullable() { return stringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringNullable_JsonNullable() { diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 997f916ab134..3f064e63980c 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -65,14 +65,14 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * @return number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { return number; } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; @@ -89,14 +89,14 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { return _float; } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -115,14 +115,14 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { return _double; } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java index a7b2446cc66c..cd65fb6c19b5 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -120,14 +120,14 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,14 +144,14 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -168,14 +168,14 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -200,14 +200,14 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -232,14 +232,14 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -256,14 +256,14 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java index fd12ebb0a490..eed14d22bcfc 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java @@ -98,14 +98,14 @@ public Query id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -130,14 +130,14 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * @return outcomes */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { return outcomes; } - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java index d3f25353a7bf..6e2258078f00 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -59,14 +59,14 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,14 +83,14 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index ef42cd6ca37c..43ba6dda37e9 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -54,14 +54,14 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 7a561c7b486b..d1cc4ca0f9a8 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -69,14 +69,14 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { return size; } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -93,14 +93,14 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; @@ -117,14 +117,14 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -141,14 +141,14 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index d47fca975d3b..f56627374050 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -64,14 +64,14 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * @return values */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { return values; } - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(@javax.annotation.Nullable List values) { this.values = values; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java index 5f5430d8a633..db4e1246e5bb 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Bird.java @@ -54,7 +54,7 @@ public Bird size(@jakarta.annotation.Nullable String size) { * @return size */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -62,7 +62,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@jakarta.annotation.Nullable String size) { this.size = size; @@ -79,7 +79,7 @@ public Bird color(@jakarta.annotation.Nullable String color) { * @return color */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -87,7 +87,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java index edf14f76134f..28eeb7f9c58a 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java index 4b10be53fd7f..8322d181e513 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DataQuery.java @@ -65,7 +65,7 @@ public DataQuery suffix(@jakarta.annotation.Nullable String suffix) { * @return suffix */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -73,7 +73,7 @@ public String getSuffix() { } - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSuffix(@jakarta.annotation.Nullable String suffix) { this.suffix = suffix; @@ -90,7 +90,7 @@ public DataQuery text(@jakarta.annotation.Nullable String text) { * @return text */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -98,7 +98,7 @@ public String getText() { } - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setText(@jakarta.annotation.Nullable String text) { this.text = text; @@ -115,7 +115,7 @@ public DataQuery date(@jakarta.annotation.Nullable Instant date) { * @return date */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Instant getDate() { @@ -123,7 +123,7 @@ public Instant getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDate(@jakarta.annotation.Nullable Instant date) { this.date = date; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java index a815fe5be0d9..241fd7523b4a 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -137,7 +137,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * @return arrayStringEnumRefDefault */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -145,7 +145,7 @@ public List getArrayStringEnumRefDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumRefDefault(@jakarta.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; @@ -170,7 +170,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * @return arrayStringEnumDefault */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -178,7 +178,7 @@ public List getArrayStringEnumDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumDefault(@jakarta.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; @@ -203,7 +203,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * @return arrayStringDefault */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -211,7 +211,7 @@ public List getArrayStringDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringDefault(@jakarta.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; @@ -236,7 +236,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * @return arrayIntegerDefault */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -244,7 +244,7 @@ public List getArrayIntegerDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayIntegerDefault(@jakarta.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; @@ -269,7 +269,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * @return arrayString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -277,7 +277,7 @@ public List getArrayString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayString(@jakarta.annotation.Nullable List arrayString) { this.arrayString = arrayString; @@ -312,14 +312,14 @@ public List getArrayStringNullable() { return arrayStringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) public void setArrayStringNullable_JsonNullable(JsonNullable> arrayStringNullable) { this.arrayStringNullable = arrayStringNullable; } @@ -357,14 +357,14 @@ public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) public void setArrayStringExtensionNullable_JsonNullable(JsonNullable> arrayStringExtensionNullable) { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } @@ -390,14 +390,14 @@ public String getStringNullable() { return stringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) public void setStringNullable_JsonNullable(JsonNullable stringNullable) { this.stringNullable = stringNullable; } diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 0e7d4b48e789..a3d87dcc7f48 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -60,7 +60,7 @@ public NumberPropertiesOnly number(@jakarta.annotation.Nullable BigDecimal numbe * @return number */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -68,7 +68,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumber(@jakarta.annotation.Nullable BigDecimal number) { this.number = number; @@ -85,7 +85,7 @@ public NumberPropertiesOnly _float(@jakarta.annotation.Nullable Float _float) { * @return _float */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -93,7 +93,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; @@ -112,7 +112,7 @@ public NumberPropertiesOnly _double(@jakarta.annotation.Nullable Double _double) * @return _double */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -120,7 +120,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index 800af3fd0a0a..7e8a30effacf 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -116,7 +116,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -124,7 +124,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -141,7 +141,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -149,7 +149,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -166,7 +166,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * @return category */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -174,7 +174,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -199,7 +199,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -207,7 +207,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -232,7 +232,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -240,7 +240,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -257,7 +257,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -265,7 +265,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java index 0e5c8a6f9cae..c077351b5375 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java @@ -94,7 +94,7 @@ public Query id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -102,7 +102,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -127,7 +127,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * @return outcomes */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { @@ -135,7 +135,7 @@ public List getOutcomes() { } - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOutcomes(@jakarta.annotation.Nullable List outcomes) { this.outcomes = outcomes; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java index 72cd3c4517cb..90f634ac389c 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index a1a457a85a8b..24fcb7b8c899 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -50,7 +50,7 @@ public TestFormObjectMultipartRequestMarker name(@jakarta.annotation.Nullable St * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -58,7 +58,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index b4490fb324e7..4535fc99eac2 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -65,7 +65,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * @return size */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -73,7 +73,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@jakarta.annotation.Nullable String size) { this.size = size; @@ -90,7 +90,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * @return color */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -98,7 +98,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; @@ -115,7 +115,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -123,7 +123,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -140,7 +140,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -148,7 +148,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index b41d959691bc..ee1cda1d4d30 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -61,7 +61,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * @return values */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { @@ -69,7 +69,7 @@ public List getValues() { } - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(@jakarta.annotation.Nullable List values) { this.values = values; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java index 58de59cea6c4..38c2b54d87cd 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Bird.java @@ -54,7 +54,7 @@ public Bird size(@javax.annotation.Nullable String size) { * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -62,7 +62,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -79,7 +79,7 @@ public Bird color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -87,7 +87,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java index f1a7381a7ee3..287218ded692 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java index 8921838944e7..4d4320084ffa 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DataQuery.java @@ -65,7 +65,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * @return suffix */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -73,7 +73,7 @@ public String getSuffix() { } - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; @@ -90,7 +90,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * @return text */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -98,7 +98,7 @@ public String getText() { } - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setText(@javax.annotation.Nullable String text) { this.text = text; @@ -115,7 +115,7 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * @return date */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDate() { @@ -123,7 +123,7 @@ public OffsetDateTime getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java index f190793d4624..a7dba7d1b56f 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -137,7 +137,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * @return arrayStringEnumRefDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -145,7 +145,7 @@ public List getArrayStringEnumRefDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; @@ -170,7 +170,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * @return arrayStringEnumDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -178,7 +178,7 @@ public List getArrayStringEnumDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; @@ -203,7 +203,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * @return arrayStringDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -211,7 +211,7 @@ public List getArrayStringDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; @@ -236,7 +236,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * @return arrayIntegerDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -244,7 +244,7 @@ public List getArrayIntegerDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; @@ -269,7 +269,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * @return arrayString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -277,7 +277,7 @@ public List getArrayString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; @@ -312,14 +312,14 @@ public List getArrayStringNullable() { return arrayStringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringNullable_JsonNullable() { return arrayStringNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) public void setArrayStringNullable_JsonNullable(JsonNullable> arrayStringNullable) { this.arrayStringNullable = arrayStringNullable; } @@ -357,14 +357,14 @@ public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { return arrayStringExtensionNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) public void setArrayStringExtensionNullable_JsonNullable(JsonNullable> arrayStringExtensionNullable) { this.arrayStringExtensionNullable = arrayStringExtensionNullable; } @@ -390,14 +390,14 @@ public String getStringNullable() { return stringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringNullable_JsonNullable() { return stringNullable; } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) public void setStringNullable_JsonNullable(JsonNullable stringNullable) { this.stringNullable = stringNullable; } diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 0532611c93b4..ec44db1fdfa1 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -60,7 +60,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * @return number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -68,7 +68,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; @@ -85,7 +85,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -93,7 +93,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -112,7 +112,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -120,7 +120,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index 39ac0b8062c8..e0f0f0469c36 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -116,7 +116,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -124,7 +124,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -141,7 +141,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -149,7 +149,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -166,7 +166,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -174,7 +174,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -199,7 +199,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -207,7 +207,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -232,7 +232,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -240,7 +240,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -257,7 +257,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -265,7 +265,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java index 98269da87273..3b08a450d938 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java @@ -94,7 +94,7 @@ public Query id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -102,7 +102,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -127,7 +127,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * @return outcomes */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { @@ -135,7 +135,7 @@ public List getOutcomes() { } - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java index 601456b75a41..15e9dca19976 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index d9569c36a933..abb3441ff8f9 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -50,7 +50,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -58,7 +58,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 4c030f3b4428..f7e75bb1ec9d 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -65,7 +65,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -73,7 +73,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -90,7 +90,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -98,7 +98,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; @@ -115,7 +115,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -123,7 +123,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -140,7 +140,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -148,7 +148,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index d59905deeafe..31164a9dbb69 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -61,7 +61,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * @return values */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { @@ -69,7 +69,7 @@ public List getValues() { } - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(@javax.annotation.Nullable List values) { this.values = values; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java index b0bff402914e..895435850701 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Bird.java @@ -54,7 +54,7 @@ public Bird size(@javax.annotation.Nullable String size) { * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -62,7 +62,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -79,7 +79,7 @@ public Bird color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -87,7 +87,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java index c32f0beeb0ee..595e2adac9e7 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java index 4154ec8ead89..5046b2256a8c 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DataQuery.java @@ -65,7 +65,7 @@ public DataQuery suffix(@javax.annotation.Nullable String suffix) { * @return suffix */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSuffix() { @@ -73,7 +73,7 @@ public String getSuffix() { } - @JsonProperty(JSON_PROPERTY_SUFFIX) + @JsonProperty(value = JSON_PROPERTY_SUFFIX, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSuffix(@javax.annotation.Nullable String suffix) { this.suffix = suffix; @@ -90,7 +90,7 @@ public DataQuery text(@javax.annotation.Nullable String text) { * @return text */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { @@ -98,7 +98,7 @@ public String getText() { } - @JsonProperty(JSON_PROPERTY_TEXT) + @JsonProperty(value = JSON_PROPERTY_TEXT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setText(@javax.annotation.Nullable String text) { this.text = text; @@ -115,7 +115,7 @@ public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) { * @return date */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDate() { @@ -123,7 +123,7 @@ public OffsetDateTime getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDate(@javax.annotation.Nullable OffsetDateTime date) { this.date = date; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java index 84e752040fb8..4d65057997eb 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -137,7 +137,7 @@ public DefaultValue addArrayStringEnumRefDefaultItem(StringEnumRef arrayStringEn * @return arrayStringEnumRefDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumRefDefault() { @@ -145,7 +145,7 @@ public List getArrayStringEnumRefDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List arrayStringEnumRefDefault) { this.arrayStringEnumRefDefault = arrayStringEnumRefDefault; @@ -170,7 +170,7 @@ public DefaultValue addArrayStringEnumDefaultItem(ArrayStringEnumDefaultEnum arr * @return arrayStringEnumDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringEnumDefault() { @@ -178,7 +178,7 @@ public List getArrayStringEnumDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringEnumDefault(@javax.annotation.Nullable List arrayStringEnumDefault) { this.arrayStringEnumDefault = arrayStringEnumDefault; @@ -203,7 +203,7 @@ public DefaultValue addArrayStringDefaultItem(String arrayStringDefaultItem) { * @return arrayStringDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayStringDefault() { @@ -211,7 +211,7 @@ public List getArrayStringDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayStringDefault(@javax.annotation.Nullable List arrayStringDefault) { this.arrayStringDefault = arrayStringDefault; @@ -236,7 +236,7 @@ public DefaultValue addArrayIntegerDefaultItem(Integer arrayIntegerDefaultItem) * @return arrayIntegerDefault */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayIntegerDefault() { @@ -244,7 +244,7 @@ public List getArrayIntegerDefault() { } - @JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT) + @JsonProperty(value = JSON_PROPERTY_ARRAY_INTEGER_DEFAULT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayIntegerDefault(@javax.annotation.Nullable List arrayIntegerDefault) { this.arrayIntegerDefault = arrayIntegerDefault; @@ -269,7 +269,7 @@ public DefaultValue addArrayStringItem(String arrayStringItem) { * @return arrayString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayString() { @@ -277,7 +277,7 @@ public List getArrayString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayString(@javax.annotation.Nullable List arrayString) { this.arrayString = arrayString; @@ -312,7 +312,7 @@ public List getArrayStringNullable() { return arrayStringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringNullable_JsonNullable() { @@ -357,7 +357,7 @@ public List getArrayStringExtensionNullable() { return arrayStringExtensionNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayStringExtensionNullable_JsonNullable() { @@ -390,7 +390,7 @@ public String getStringNullable() { return stringNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringNullable_JsonNullable() { diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java index 5d3a6388cb46..0f4a90d1394d 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java @@ -60,7 +60,7 @@ public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) * @return number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumber() { @@ -68,7 +68,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumber(@javax.annotation.Nullable BigDecimal number) { this.number = number; @@ -85,7 +85,7 @@ public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -93,7 +93,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -112,7 +112,7 @@ public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -120,7 +120,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index 69f31506c1fa..2091a5b30de9 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -116,7 +116,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -124,7 +124,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -141,7 +141,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -149,7 +149,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -166,7 +166,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -174,7 +174,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -199,7 +199,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -207,7 +207,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -232,7 +232,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -240,7 +240,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -257,7 +257,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -265,7 +265,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java index 34b61e9d4c32..67270322b0dd 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java @@ -94,7 +94,7 @@ public Query id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -102,7 +102,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -127,7 +127,7 @@ public Query addOutcomesItem(OutcomesEnum outcomesItem) { * @return outcomes */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getOutcomes() { @@ -135,7 +135,7 @@ public List getOutcomes() { } - @JsonProperty(JSON_PROPERTY_OUTCOMES) + @JsonProperty(value = JSON_PROPERTY_OUTCOMES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOutcomes(@javax.annotation.Nullable List outcomes) { this.outcomes = outcomes; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java index bf02627dea7b..549b09ec658b 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java index d182192713bf..18d1da8b057b 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java @@ -50,7 +50,7 @@ public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable Stri * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -58,7 +58,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java index 11180e0dbaf3..c3cf31e02223 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.java @@ -65,7 +65,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@ * @return size */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSize() { @@ -73,7 +73,7 @@ public String getSize() { } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(value = JSON_PROPERTY_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSize(@javax.annotation.Nullable String size) { this.size = size; @@ -90,7 +90,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color( * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -98,7 +98,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; @@ -115,7 +115,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@ja * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -123,7 +123,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -140,7 +140,7 @@ public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@ * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -148,7 +148,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java index 9c24e5d881a8..7d33a34f1c9c 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.java @@ -61,7 +61,7 @@ public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter addValuesIte * @return values */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getValues() { @@ -69,7 +69,7 @@ public List getValues() { } - @JsonProperty(JSON_PROPERTY_VALUES) + @JsonProperty(value = JSON_PROPERTY_VALUES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(@javax.annotation.Nullable List values) { this.values = values; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 016b9e07e58e..1672526606e9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -67,7 +67,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -75,7 +75,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -100,7 +100,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -108,7 +108,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index a0469d606a18..c6a0948cc355 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -58,7 +58,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -66,7 +66,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -83,7 +83,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -91,7 +91,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java index bc57685b88ac..61dd6eee9897 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Animal.java @@ -70,7 +70,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -78,7 +78,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -95,7 +95,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -103,7 +103,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f526173bfff..17633b2c4c86 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -64,7 +64,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -72,7 +72,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index bc672a68b2b4..c0546a749c03 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -64,7 +64,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -72,7 +72,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java index 6cf8ddbc53f2..44ff0b364135 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -74,7 +74,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -82,7 +82,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -107,7 +107,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -115,7 +115,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -140,7 +140,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -148,7 +148,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java index dc276e44f966..ec185f5401d0 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,7 +77,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -85,7 +85,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -102,7 +102,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -110,7 +110,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -127,7 +127,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -135,7 +135,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -152,7 +152,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -160,7 +160,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -177,7 +177,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -185,7 +185,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -202,7 +202,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -210,7 +210,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java index e1d6d36c1e6b..d828accf63b8 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Cat.java @@ -63,7 +63,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -71,7 +71,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java index a6163f8554c1..37ee7b16ed50 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java @@ -57,7 +57,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 74ee2eda0f19..019afa3c4228 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -64,7 +64,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -72,7 +72,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java index 80c3fb0cc647..1fd2be0a8d49 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -52,7 +52,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -60,7 +60,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java index b2a4f1783cdb..b44c6392dfd8 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Client.java @@ -52,7 +52,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -60,7 +60,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 5f9de31a37bc..005fc644fe5d 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -54,7 +54,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -62,7 +62,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java index 6cccc86bf755..6d4679645471 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Dog.java @@ -63,7 +63,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -71,7 +71,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java index f8bff2efa329..93394d2c47a1 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -130,7 +130,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -138,7 +138,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -163,7 +163,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -171,7 +171,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java index 504f423a3a09..6d4947baea18 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -240,7 +240,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -248,7 +248,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -265,7 +265,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -273,7 +273,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -290,7 +290,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -298,7 +298,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -315,7 +315,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -323,7 +323,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -346,14 +346,14 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } @@ -373,7 +373,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -381,7 +381,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -398,7 +398,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -406,7 +406,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -423,7 +423,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -431,7 +431,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 130092678f20..187e5d9c569a 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -61,7 +61,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -69,7 +69,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -94,7 +94,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -102,7 +102,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 0a1402ee3387..a9da27ece4d3 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -61,7 +61,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -69,7 +69,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -94,7 +94,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -102,7 +102,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java index f0e10e283f3b..2d8b7350a17e 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Foo.java @@ -52,7 +52,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -60,7 +60,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index f8f35d4dc613..bb49c9f0fe39 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -54,7 +54,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -62,7 +62,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java index 50ef15c5380d..43066ec2153c 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -135,7 +135,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -143,7 +143,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -162,7 +162,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -170,7 +170,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -187,7 +187,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -195,7 +195,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -214,7 +214,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -222,7 +222,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -241,7 +241,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -249,7 +249,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -268,7 +268,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -276,7 +276,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -293,7 +293,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -301,7 +301,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -318,7 +318,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -326,7 +326,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -343,7 +343,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -351,7 +351,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -368,7 +368,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -376,7 +376,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -393,7 +393,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -401,7 +401,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -418,7 +418,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -426,7 +426,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -443,7 +443,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -451,7 +451,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -468,7 +468,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -476,7 +476,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -493,7 +493,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -501,7 +501,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -518,7 +518,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -526,7 +526,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 794b775e3a0a..4e2734b4dc15 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -51,8 +51,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -64,7 +64,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 05f5ac0fe7d9..3d8cfdb9f3ae 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -62,14 +62,14 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) public void setNullableMessage_JsonNullable(JsonNullable nullableMessage) { this.nullableMessage = nullableMessage; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java index 12f7191e2a10..1959e58ce3ad 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -112,7 +112,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -120,7 +120,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -145,7 +145,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -153,7 +153,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -178,7 +178,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -186,7 +186,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -211,7 +211,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -219,7 +219,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 843048c3ee44..fd94bae70dd7 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -67,7 +67,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -75,7 +75,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -92,7 +92,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -100,7 +100,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -125,7 +125,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -133,7 +133,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java index af0ee0ec46fe..bc3ac3849a27 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -58,7 +58,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -66,7 +66,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -83,7 +83,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -91,7 +91,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 4fa9c99aea88..c0e0aab8ee8c 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -63,7 +63,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -71,7 +71,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -88,7 +88,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -96,7 +96,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -113,7 +113,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -121,7 +121,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java index 14d5b4b4fc05..ed260fc9e5db 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -53,7 +53,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -61,7 +61,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java index 2ad85d7b4a24..69e83c7e8b63 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -53,7 +53,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -61,7 +61,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java index 41cbdd20f7ba..cbf6971740c2 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -53,7 +53,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -61,7 +61,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java index 05cf4e462973..e3523d511a43 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Name.java @@ -60,8 +60,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -79,7 +79,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -87,7 +87,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -98,7 +98,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -118,7 +118,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -126,7 +126,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -137,7 +137,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java index c79b9563ff52..1e354cb3a173 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -126,14 +126,14 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } @@ -159,14 +159,14 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { return numberProp; } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } @@ -192,14 +192,14 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } @@ -225,14 +225,14 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { return stringProp; } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } @@ -258,14 +258,14 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { return dateProp; } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } @@ -291,14 +291,14 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) public void setDatetimeProp_JsonNullable(JsonNullable datetimeProp) { this.datetimeProp = datetimeProp; } @@ -336,14 +336,14 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; } @@ -381,14 +381,14 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } @@ -416,7 +416,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -424,7 +424,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -459,14 +459,14 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) public void setObjectNullableProp_JsonNullable(JsonNullable> objectNullableProp) { this.objectNullableProp = objectNullableProp; } @@ -504,14 +504,14 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable> objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } @@ -539,7 +539,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -547,7 +547,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java index 8f93c8865f2e..2ad040080427 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -53,7 +53,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -61,7 +61,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 8048b889afde..7d1c69147dec 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -72,7 +72,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -80,7 +80,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -99,7 +99,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -107,7 +107,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -126,7 +126,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -134,7 +134,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -161,7 +161,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -169,7 +169,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java index ecc9fedf1b12..e09f17ec6a6b 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java @@ -115,7 +115,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -123,7 +123,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -140,7 +140,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -148,7 +148,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -165,7 +165,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -173,7 +173,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -190,7 +190,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -198,7 +198,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -215,7 +215,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -223,7 +223,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -240,7 +240,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -248,7 +248,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java index 730caa95d0f3..3772e6e982b9 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -63,7 +63,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -71,7 +71,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -88,7 +88,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -96,7 +96,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -113,7 +113,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -121,7 +121,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 23bb3f8bad2c..ce1f14349edd 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -53,7 +53,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -61,7 +61,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 39c62b47ec44..3c40db1de484 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -106,7 +106,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -114,7 +114,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -137,14 +137,14 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) public void setNullableProperty_JsonNullable(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java index 7a766ce1af8d..f08af75093bf 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java @@ -122,7 +122,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -130,7 +130,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -147,7 +147,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -155,7 +155,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -172,7 +172,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -180,7 +180,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -205,7 +205,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -214,7 +214,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -239,7 +239,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -247,7 +247,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -264,7 +264,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -272,7 +272,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 7440db0676c0..c752cb32877b 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -50,7 +50,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -81,7 +81,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -89,7 +89,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index f9de607561af..6394a00144fb 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -53,7 +53,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -61,7 +61,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java index bb1ca8c42501..ab95e21cd654 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java @@ -57,7 +57,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 063aa4f489be..354ae3450548 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -56,7 +56,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -64,7 +64,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java index 17e9de4a30c9..3a1a9c5a71db 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java @@ -87,7 +87,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -95,7 +95,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -112,7 +112,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -120,7 +120,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -137,7 +137,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -145,7 +145,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -162,7 +162,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -170,7 +170,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -187,7 +187,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -195,7 +195,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -212,7 +212,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -220,7 +220,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -237,7 +237,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -245,7 +245,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -262,7 +262,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -270,7 +270,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 380c0c8629f5..07d07fe8fa22 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,7 +59,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -67,7 +67,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 39e42455040c..2e298acc0b7c 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,7 +60,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -68,7 +68,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 05b74f72eaa1..590c562ba9bb 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,7 +59,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -67,7 +67,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 4bfbb29a8600..e15dbc523596 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -117,7 +117,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -125,7 +125,7 @@ public Map getMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -152,7 +152,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -160,7 +160,7 @@ public Map getMapNumber() { } - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -187,7 +187,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -195,7 +195,7 @@ public Map getMapInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -222,7 +222,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -230,7 +230,7 @@ public Map getMapBoolean() { } - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -257,7 +257,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -265,7 +265,7 @@ public Map> getMapArrayInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -292,7 +292,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -300,7 +300,7 @@ public Map> getMapArrayAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -327,7 +327,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -335,7 +335,7 @@ public Map> getMapMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; @@ -362,7 +362,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -370,7 +370,7 @@ public Map> getMapMapAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -389,7 +389,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -397,7 +397,7 @@ public Object getAnytype1() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -416,7 +416,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -424,7 +424,7 @@ public Object getAnytype2() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -443,7 +443,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -451,7 +451,7 @@ public Object getAnytype3() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 13a636cb8b60..af5a7bcd30b1 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,7 +59,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -67,7 +67,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 915d36189555..4049186038f8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,7 +60,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -68,7 +68,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index ac48d57fd6d8..151d2999cbcc 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -60,7 +60,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -68,7 +68,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index bb87f2143212..2d57c9832ff0 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,7 +59,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -67,7 +67,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index 0759174d4176..3075fd0d2e0e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -74,7 +74,7 @@ public Animal className(@javax.annotation.Nonnull String className) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -82,7 +82,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -101,7 +101,7 @@ public Animal color(@javax.annotation.Nullable String color) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -109,7 +109,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index ef6066b0d6c2..9a040e7383d8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -67,7 +67,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -75,7 +75,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 7491a2565ab7..f7373afcfbe5 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -67,7 +67,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -75,7 +75,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index 9b9567181a61..d6747a6cfbad 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,7 +77,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -85,7 +85,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -112,7 +112,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -120,7 +120,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -147,7 +147,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -155,7 +155,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index 13dabe78abb1..c802ab66a5d2 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -105,7 +105,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { @@ -113,7 +113,7 @@ public KindEnum getKind() { } - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java index 2097b0bddd25..629834509b4e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java @@ -80,7 +80,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -88,7 +88,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -107,7 +107,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -115,7 +115,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -134,7 +134,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -142,7 +142,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -161,7 +161,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -169,7 +169,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -188,7 +188,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -196,7 +196,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -215,7 +215,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Name of the pet ") - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -223,7 +223,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java index 4f06daa5af8a..91256dcd3702 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java @@ -69,7 +69,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isDeclawed() { @@ -77,7 +77,7 @@ public Boolean isDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java index 27cb6dc5eca2..891646633f39 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java @@ -60,7 +60,7 @@ public Category id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -68,7 +68,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,7 @@ public Category name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -95,7 +95,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java index 09c524ff8d72..e6e84ccc2ca1 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java @@ -56,7 +56,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -64,7 +64,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java index 5c7b130ab19d..4861d7111cb4 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java @@ -55,7 +55,7 @@ public Client client(@javax.annotation.Nullable String client) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -63,7 +63,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java index 3770a6544af0..e02ebe2f1f1a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java @@ -66,7 +66,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -74,7 +74,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index b817dda8646d..3c9f9888493a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,7 +133,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -141,7 +141,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -168,7 +168,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -176,7 +176,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index 55aa9167b181..2f9ed0d57d0e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -221,7 +221,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -229,7 +229,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -248,7 +248,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -256,7 +256,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -275,7 +275,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -283,7 +283,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -302,7 +302,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -310,7 +310,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -329,7 +329,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -337,7 +337,7 @@ public OuterEnum getOuterEnum() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java index 9592efb80121..36f1016ab82b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/File.java @@ -56,7 +56,7 @@ public File sourceURI(@javax.annotation.Nullable String sourceURI) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Test capitalization") - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -64,7 +64,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index c4e33d31e58c..cb50ca78dad0 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -64,7 +64,7 @@ public FileSchemaTestClass file(@javax.annotation.Nullable File file) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getFile() { @@ -72,7 +72,7 @@ public File getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable File file) { this.file = file; @@ -99,7 +99,7 @@ public FileSchemaTestClass addFilesItem(File filesItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -107,7 +107,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index f5494142683f..6d7369d6f600 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -128,7 +128,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -136,7 +136,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -157,7 +157,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -165,7 +165,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -213,7 +213,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -221,7 +221,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -242,7 +242,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -250,7 +250,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -271,7 +271,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -279,7 +279,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -298,7 +298,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -306,7 +306,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -325,7 +325,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -333,7 +333,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -352,7 +352,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -360,7 +360,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -379,7 +379,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -387,7 +387,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -406,7 +406,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -414,7 +414,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -433,7 +433,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { */ @javax.annotation.Nullable @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -441,7 +441,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -460,7 +460,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -468,7 +468,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -487,7 +487,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -495,7 +495,7 @@ public BigDecimal getBigDecimal() { } - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 051ab92e6970..692c024e7842 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -65,7 +65,7 @@ public HasOnlyReadOnly( */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -81,7 +81,7 @@ public String getBar() { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index b4c1b6927f58..38a0625e1662 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,7 +115,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -123,7 +123,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -150,7 +150,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -158,7 +158,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -185,7 +185,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -193,7 +193,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -220,7 +220,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -228,7 +228,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 384ff952a32a..7b3a34fcaa40 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -70,7 +70,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -78,7 +78,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -97,7 +97,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -105,7 +105,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -132,7 +132,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -140,7 +140,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index 7f4083380ee6..234045024e51 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,7 +62,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -70,7 +70,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -89,7 +89,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -97,7 +97,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 735370d0b31d..ac7032a36111 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -66,7 +66,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -74,7 +74,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -93,7 +93,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -101,7 +101,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -120,7 +120,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -128,7 +128,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java index 902e627b80d2..69c79511698b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java @@ -56,7 +56,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -64,7 +64,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index aa67edb22436..487472ec6419 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -57,7 +57,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -65,7 +65,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java index 599ed900f31c..6724f4ef453c 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -81,7 +81,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -89,7 +89,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -102,7 +102,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -124,7 +124,7 @@ public Name property(@javax.annotation.Nullable String property) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -132,7 +132,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -145,7 +145,7 @@ public void setProperty(@javax.annotation.Nullable String property) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index 96dd5c074144..ec87dd8463d3 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -56,7 +56,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -64,7 +64,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java index 6c5d7ee6e6c9..75321a224b16 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -118,7 +118,7 @@ public Order id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -126,7 +126,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -153,7 +153,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -172,7 +172,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -180,7 +180,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -199,7 +199,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -207,7 +207,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -226,7 +226,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -234,7 +234,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -253,7 +253,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isComplete() { @@ -261,7 +261,7 @@ public Boolean isComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index 59f8c95cf1cc..2bd5f401b064 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,7 +66,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -74,7 +74,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -93,7 +93,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -101,7 +101,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -120,7 +120,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isMyBoolean() { @@ -128,7 +128,7 @@ public Boolean isMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 8d68aa91bf20..c181eb76c6dd 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -125,7 +125,7 @@ public Pet id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -133,7 +133,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -152,7 +152,7 @@ public Pet category(@javax.annotation.Nullable Category category) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -160,7 +160,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -179,7 +179,7 @@ public Pet name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -187,7 +187,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -214,7 +214,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -223,7 +223,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -250,7 +250,7 @@ public Pet addTagsItem(Tag tagsItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -258,7 +258,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -277,7 +277,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -285,7 +285,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 09c5403febf1..d5b4373cf4d0 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -62,7 +62,7 @@ public ReadOnlyFirst( */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -84,7 +84,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -92,7 +92,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index cc4a76e900bd..68e2dcf309e7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -56,7 +56,7 @@ public SpecialModelName() { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -64,7 +64,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index e5e353fa8637..c7d8a553edc7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -60,7 +60,7 @@ public Tag id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -68,7 +68,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,7 @@ public Tag name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -95,7 +95,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index bea820ba9405..72953f908970 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -79,7 +79,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -87,7 +87,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -106,7 +106,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -114,7 +114,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -133,7 +133,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -141,7 +141,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -160,7 +160,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean isBoolItem() { @@ -168,7 +168,7 @@ public Boolean isBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -195,7 +195,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -203,7 +203,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 01e77e3c4869..10bd9e3159ba 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -84,7 +84,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) */ @javax.annotation.Nonnull @ApiModelProperty(example = "what", required = true, value = "") - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -92,7 +92,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -111,7 +111,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI */ @javax.annotation.Nonnull @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -119,7 +119,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -138,7 +138,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { */ @javax.annotation.Nonnull @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -146,7 +146,7 @@ public Float getFloatItem() { } - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -165,7 +165,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt */ @javax.annotation.Nonnull @ApiModelProperty(example = "-2", required = true, value = "") - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -173,7 +173,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -192,7 +192,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { */ @javax.annotation.Nonnull @ApiModelProperty(example = "true", required = true, value = "") - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean isBoolItem() { @@ -200,7 +200,7 @@ public Boolean isBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -227,7 +227,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { */ @javax.annotation.Nonnull @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -235,7 +235,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java index 751cfc8e0e86..cbd6e9ec8b02 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -90,7 +90,7 @@ public User id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -98,7 +98,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -117,7 +117,7 @@ public User username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -125,7 +125,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -144,7 +144,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -152,7 +152,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -171,7 +171,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -179,7 +179,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -198,7 +198,7 @@ public User email(@javax.annotation.Nullable String email) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -206,7 +206,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -225,7 +225,7 @@ public User password(@javax.annotation.Nullable String password) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -233,7 +233,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -252,7 +252,7 @@ public User phone(@javax.annotation.Nullable String phone) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -260,7 +260,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -279,7 +279,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { */ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -287,7 +287,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index bab1a081b05e..d367fcece905 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -199,7 +199,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString */ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -207,7 +207,7 @@ public String getAttributeString() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -226,7 +226,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu */ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -234,7 +234,7 @@ public BigDecimal getAttributeNumber() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -253,7 +253,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte */ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -261,7 +261,7 @@ public Integer getAttributeInteger() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -280,7 +280,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool */ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isAttributeBoolean() { @@ -288,7 +288,7 @@ public Boolean isAttributeBoolean() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -315,7 +315,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -323,7 +323,7 @@ public List getWrappedArray() { } - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -342,7 +342,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { */ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -350,7 +350,7 @@ public String getNameString() { } - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; @@ -369,7 +369,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { */ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -377,7 +377,7 @@ public BigDecimal getNameNumber() { } - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -396,7 +396,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { */ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -404,7 +404,7 @@ public Integer getNameInteger() { } - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -423,7 +423,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { */ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNameBoolean() { @@ -431,7 +431,7 @@ public Boolean isNameBoolean() { } - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -458,7 +458,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -466,7 +466,7 @@ public List getNameArray() { } - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -493,7 +493,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -501,7 +501,7 @@ public List getNameWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -520,7 +520,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { */ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -528,7 +528,7 @@ public String getPrefixString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -547,7 +547,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) */ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -555,7 +555,7 @@ public BigDecimal getPrefixNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -574,7 +574,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { */ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -582,7 +582,7 @@ public Integer getPrefixInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -601,7 +601,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { */ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixBoolean() { @@ -609,7 +609,7 @@ public Boolean isPrefixBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -636,7 +636,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -644,7 +644,7 @@ public List getPrefixArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -671,7 +671,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -679,7 +679,7 @@ public List getPrefixWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -698,7 +698,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString */ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -706,7 +706,7 @@ public String getNamespaceString() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -725,7 +725,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu */ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -733,7 +733,7 @@ public BigDecimal getNamespaceNumber() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -752,7 +752,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte */ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -760,7 +760,7 @@ public Integer getNamespaceInteger() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -779,7 +779,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool */ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNamespaceBoolean() { @@ -787,7 +787,7 @@ public Boolean isNamespaceBoolean() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -814,7 +814,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -822,7 +822,7 @@ public List getNamespaceArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -849,7 +849,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -857,7 +857,7 @@ public List getNamespaceWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -876,7 +876,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) */ @javax.annotation.Nullable @ApiModelProperty(example = "string", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -884,7 +884,7 @@ public String getPrefixNsString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -903,7 +903,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb */ @javax.annotation.Nullable @ApiModelProperty(example = "1.234", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -911,7 +911,7 @@ public BigDecimal getPrefixNsNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -930,7 +930,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege */ @javax.annotation.Nullable @ApiModelProperty(example = "-2", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -938,7 +938,7 @@ public Integer getPrefixNsInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -957,7 +957,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea */ @javax.annotation.Nullable @ApiModelProperty(example = "true", value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixNsBoolean() { @@ -965,7 +965,7 @@ public Boolean isPrefixNsBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -992,7 +992,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -1000,7 +1000,7 @@ public List getPrefixNsArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -1027,7 +1027,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -1035,7 +1035,7 @@ public List getPrefixNsWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 519c95fe4e10..b304a32f68e2 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -98,7 +98,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -106,7 +106,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 951f485ef703..4070e7aedaeb 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -81,7 +81,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -89,7 +89,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java index 19e308b46a9f..450f55e0c8df 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -93,7 +93,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -101,7 +101,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index ddbdf87f33fd..6bd84bd2af24 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index d68310c80773..f6ec8bd3f5aa 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java index c64553f65a00..10ff182a2ce4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -105,7 +105,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -113,7 +113,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -139,7 +139,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -147,7 +147,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java index 08856f42ccaf..c0bfed4ceb3f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -100,7 +100,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -108,7 +108,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -126,7 +126,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -134,7 +134,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -152,7 +152,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -160,7 +160,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -178,7 +178,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -186,7 +186,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -204,7 +204,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -212,7 +212,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java index 9ac4735cae75..c9640eb9d606 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isDeclawed() { @@ -68,7 +68,7 @@ public Boolean isDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java index 6176dcce5a53..5cd912c637f7 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -80,7 +80,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -88,7 +88,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 6d28b846e134..966e550ed58f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java index b0ee79bf0a2c..8bbff8268c14 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java index 36b415404a71..b98ab5c2e070 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 3401d0a58ced..03b3fab5be8b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java index bf0eea90573a..331fc8b1f502 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java index 5d9be29b25c2..28855ff0c41a 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -161,7 +161,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -169,7 +169,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java index 2b09e9ebed33..f46b716be35c 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java @@ -236,7 +236,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -244,7 +244,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -288,7 +288,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -296,7 +296,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -314,7 +314,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -322,7 +322,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -346,7 +346,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -374,7 +374,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -382,7 +382,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -400,7 +400,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -408,7 +408,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -426,7 +426,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -434,7 +434,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 335206051a4c..103dd9e03797 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -92,7 +92,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -100,7 +100,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java index 0ccb2866e6f5..72cd42fd1127 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/File.java @@ -49,7 +49,7 @@ public File sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -57,7 +57,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 76f1b719b1e1..34f73d92536e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass file(@javax.annotation.Nullable File file) { * @return file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getFile() { @@ -66,7 +66,7 @@ public File getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable File file) { this.file = file; @@ -92,7 +92,7 @@ public FileSchemaTestClass addFilesItem(File filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -100,7 +100,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java index 463ae01d5cea..4846b6d1ea72 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 43c21b188db5..1b077747099e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java index 2203497797d6..31643a880a45 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -160,7 +160,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -168,7 +168,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -186,7 +186,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -194,7 +194,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -214,7 +214,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -222,7 +222,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -242,7 +242,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -250,7 +250,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -270,7 +270,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -278,7 +278,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -296,7 +296,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -304,7 +304,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -322,7 +322,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -330,7 +330,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -348,7 +348,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -356,7 +356,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -374,7 +374,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -382,7 +382,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -400,7 +400,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -408,7 +408,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -426,7 +426,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -434,7 +434,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -452,7 +452,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -460,7 +460,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -478,7 +478,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -486,7 +486,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -504,7 +504,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -512,7 +512,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -530,7 +530,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -538,7 +538,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index c4911fbaf299..9ba03b499d24 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -59,7 +59,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -74,7 +74,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 04185c07159e..cd7287412170 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -58,7 +58,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java index 7c7e8bf90863..ec5ee7bb1645 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -143,7 +143,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -151,7 +151,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -177,7 +177,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -185,7 +185,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -211,7 +211,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -219,7 +219,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b99867682dd6..c820ba2fe58b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -90,7 +90,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -98,7 +98,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -124,7 +124,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -132,7 +132,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java index 32fee39581c0..3626d2cf696d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -81,7 +81,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -89,7 +89,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 0a5ba46129a9..5ec1d7b79a88 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -86,7 +86,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -94,7 +94,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -112,7 +112,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -120,7 +120,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java index 2c483607d79c..e5321f45292b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java index 9be47ab8e0bf..48898b8c24d6 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java index 063860b55176..7416abba589e 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java @@ -74,7 +74,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -82,7 +82,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -94,7 +94,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -135,7 +135,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java index 4996df36423c..015ebd3ccf00 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NullableClass.java @@ -116,7 +116,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -150,7 +150,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -184,7 +184,7 @@ public Boolean isBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable isBooleanProp_JsonNullable() { @@ -218,7 +218,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -252,7 +252,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -286,7 +286,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -332,7 +332,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -378,7 +378,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -414,7 +414,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -422,7 +422,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -458,7 +458,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -504,7 +504,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -540,7 +540,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -548,7 +548,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java index 5320c0ba1199..5de3c5578f81 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 41f3d3a6e0c1..dea38411a3d7 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -97,7 +97,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -105,7 +105,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -125,7 +125,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -133,7 +133,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -161,7 +161,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -169,7 +169,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java index 6e36f9dcd45b..d29ba68634f0 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -138,7 +138,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -146,7 +146,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -164,7 +164,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -172,7 +172,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -190,7 +190,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -198,7 +198,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -216,7 +216,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -224,7 +224,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -242,7 +242,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isComplete() { @@ -250,7 +250,7 @@ public Boolean isComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java index 199d81b3455b..9c6cc6714da0 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -86,7 +86,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -94,7 +94,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -112,7 +112,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isMyBoolean() { @@ -120,7 +120,7 @@ public Boolean isMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 5488479ce207..dcabc1b57ead 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 95fe799a1068..07b3d5721edf 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -102,7 +102,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -110,7 +110,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,7 +134,7 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java index cdab0b745fff..356b23af5bc3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -153,7 +153,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -171,7 +171,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -179,7 +179,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -205,7 +205,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -214,7 +214,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -240,7 +240,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -248,7 +248,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -266,7 +266,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -274,7 +274,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index c301aaa5b85e..5f5b42900027 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -56,7 +56,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,7 +77,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -85,7 +85,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java index 16b10bc50579..fa900aef3f54 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java index 8741cba2698c..72ce11b587b8 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -80,7 +80,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -88,7 +88,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d6419a7ed19f..de4a70be1e11 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -54,7 +54,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -62,7 +62,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java index 14116fddd9e2..7ad5190b5e02 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -110,7 +110,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -118,7 +118,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -136,7 +136,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -144,7 +144,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -162,7 +162,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -170,7 +170,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -188,7 +188,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -196,7 +196,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -214,7 +214,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -222,7 +222,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -240,7 +240,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -248,7 +248,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -266,7 +266,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -274,7 +274,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index bee74a4c8118..89864f827112 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -52,7 +52,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 5aba7267a12a..dfd23375dc01 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -53,7 +53,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -61,7 +61,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8114cd21193f..506a41488de9 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -52,7 +52,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 581c2fbe1407..8044ecbab6ea 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -111,7 +111,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -119,7 +119,7 @@ public Map getMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -144,7 +144,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * @return mapNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -152,7 +152,7 @@ public Map getMapNumber() { } - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -177,7 +177,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -185,7 +185,7 @@ public Map getMapInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -210,7 +210,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -218,7 +218,7 @@ public Map getMapBoolean() { } - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -243,7 +243,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -251,7 +251,7 @@ public Map> getMapArrayInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -276,7 +276,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * @return mapArrayAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -284,7 +284,7 @@ public Map> getMapArrayAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -309,7 +309,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -317,7 +317,7 @@ public Map> getMapMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; @@ -342,7 +342,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -350,7 +350,7 @@ public Map> getMapMapAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -367,7 +367,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -375,7 +375,7 @@ public Object getAnytype1() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -392,7 +392,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -400,7 +400,7 @@ public Object getAnytype2() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -417,7 +417,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -425,7 +425,7 @@ public Object getAnytype3() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index cd225fac1575..613f96692a46 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -52,7 +52,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 5ef408e04c4c..0c00ee724427 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -53,7 +53,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -61,7 +61,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 3a313e40fe2b..524112e88a91 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -52,7 +52,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 4a834585bfe1..7b418b7c87e8 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -52,7 +52,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java index e88053cfbca1..eaa5c323d7fe 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java @@ -68,7 +68,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -76,7 +76,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -93,7 +93,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -101,7 +101,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9f9230f5c51b..e48bf84ca4cc 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 95eb35a262ca..01c9badd8ece 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java index 6e87eafcc512..006c8ce93a21 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java index d72c2a445010..cdf37400e42c 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java @@ -99,7 +99,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { @@ -107,7 +107,7 @@ public KindEnum getKind() { } - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java index dec70966d099..dd08bed9aebb 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java index 66109a131e1a..ff3c8f5bc560 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java @@ -63,7 +63,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -71,7 +71,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java index d1fc7b09c499..9e1b7316bbfa 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java index 675e9f398283..e8d8b419f6ab 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java index 434d46ad1b64..2d1ad6833b70 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java index b62b147f96e1..8787d050632b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java index 96da52dd6a11..2d9895cc3874 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java index f9183223c201..591077e5a260 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java @@ -215,7 +215,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -223,7 +223,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -240,7 +240,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -248,7 +248,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -265,7 +265,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -273,7 +273,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -290,7 +290,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -298,7 +298,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -315,7 +315,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * @return outerEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -323,7 +323,7 @@ public OuterEnum getOuterEnum() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3231a00ed0f3..39bb17b9ea7b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java index e6899f6085d7..c7a22e4791e8 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java @@ -122,7 +122,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -130,7 +130,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -149,7 +149,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -157,7 +157,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -174,7 +174,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -182,7 +182,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -201,7 +201,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -209,7 +209,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -228,7 +228,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -236,7 +236,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -255,7 +255,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -263,7 +263,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -280,7 +280,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -288,7 +288,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -305,7 +305,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -313,7 +313,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -330,7 +330,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -338,7 +338,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -355,7 +355,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -363,7 +363,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -380,7 +380,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -388,7 +388,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -405,7 +405,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -413,7 +413,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -430,7 +430,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -438,7 +438,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -455,7 +455,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * @return bigDecimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -463,7 +463,7 @@ public BigDecimal getBigDecimal() { } - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index fab16c721c1c..75462506e6c8 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -48,8 +48,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java index 226af5128b2b..94020730a719 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index be9066f8a227..c515e1506f66 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java index f445295ef573..cc0125122612 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 9fce2e1e3bab..4b9ecc77489a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java index b56cda290634..aafab80e041d 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java index d0f770be3bdb..2ac93e97b4c5 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java index a5e4c8656d48..2e06a4c7a467 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java index 7c79599ff5d8..ead2b3b3e5f1 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java @@ -57,8 +57,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java index 2b2688a79089..264e825134f1 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java index 19a6f2e22dd1..075006c47dc6 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java index 7b928ac82f35..14b334e4829a 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java index 9c64c19a7c2c..6642f3237661 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 784d47d6a106..eeffca460496 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -47,7 +47,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java index 62f2544da2d3..4d2bf7518e90 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java index fc2ee7bfc564..83ece7141a46 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 59435e41e0bd..c34d335d9a53 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -73,7 +73,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -81,7 +81,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -98,7 +98,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -106,7 +106,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -123,7 +123,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -131,7 +131,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -148,7 +148,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -156,7 +156,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -181,7 +181,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -189,7 +189,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 952e5a73f2ef..c170ffebe32b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -78,7 +78,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -86,7 +86,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -103,7 +103,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -111,7 +111,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -128,7 +128,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * @return floatItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -136,7 +136,7 @@ public Float getFloatItem() { } - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -153,7 +153,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -161,7 +161,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -178,7 +178,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -186,7 +186,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -211,7 +211,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -219,7 +219,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java index 4aa0d35c2889..7a457acb78ba 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java index af00bcc3538b..cdb509cf8e06 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java @@ -193,7 +193,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -201,7 +201,7 @@ public String getAttributeString() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -218,7 +218,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * @return attributeNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -226,7 +226,7 @@ public BigDecimal getAttributeNumber() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -243,7 +243,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -251,7 +251,7 @@ public Integer getAttributeInteger() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -268,7 +268,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -276,7 +276,7 @@ public Boolean getAttributeBoolean() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -301,7 +301,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -309,7 +309,7 @@ public List getWrappedArray() { } - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -326,7 +326,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -334,7 +334,7 @@ public String getNameString() { } - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; @@ -351,7 +351,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * @return nameNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -359,7 +359,7 @@ public BigDecimal getNameNumber() { } - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -376,7 +376,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -384,7 +384,7 @@ public Integer getNameInteger() { } - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -401,7 +401,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -409,7 +409,7 @@ public Boolean getNameBoolean() { } - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -434,7 +434,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -442,7 +442,7 @@ public List getNameArray() { } - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -467,7 +467,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -475,7 +475,7 @@ public List getNameWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -492,7 +492,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -500,7 +500,7 @@ public String getPrefixString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -517,7 +517,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * @return prefixNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -525,7 +525,7 @@ public BigDecimal getPrefixNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -542,7 +542,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -550,7 +550,7 @@ public Integer getPrefixInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -567,7 +567,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -575,7 +575,7 @@ public Boolean getPrefixBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -600,7 +600,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -608,7 +608,7 @@ public List getPrefixArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -633,7 +633,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -641,7 +641,7 @@ public List getPrefixWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -658,7 +658,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -666,7 +666,7 @@ public String getNamespaceString() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -683,7 +683,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * @return namespaceNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -691,7 +691,7 @@ public BigDecimal getNamespaceNumber() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -708,7 +708,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -716,7 +716,7 @@ public Integer getNamespaceInteger() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -733,7 +733,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -741,7 +741,7 @@ public Boolean getNamespaceBoolean() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -766,7 +766,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -774,7 +774,7 @@ public List getNamespaceArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -799,7 +799,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -807,7 +807,7 @@ public List getNamespaceWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -824,7 +824,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -832,7 +832,7 @@ public String getPrefixNsString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -849,7 +849,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * @return prefixNsNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -857,7 +857,7 @@ public BigDecimal getPrefixNsNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -874,7 +874,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -882,7 +882,7 @@ public Integer getPrefixNsInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -899,7 +899,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -907,7 +907,7 @@ public Boolean getPrefixNsBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -932,7 +932,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -940,7 +940,7 @@ public List getPrefixNsArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -965,7 +965,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -973,7 +973,7 @@ public List getPrefixNsWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 4f0efe25c1ce..a696ecb53b71 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -55,7 +55,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index e8b4b56c5b17..00662e5f093d 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -56,7 +56,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 4b51b315dda1..266ace2a7579 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -55,7 +55,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 2dfaf8914e27..ee8f4c1aa53b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -113,7 +113,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -121,7 +121,7 @@ public Map getMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -146,7 +146,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * @return mapNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -154,7 +154,7 @@ public Map getMapNumber() { } - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -179,7 +179,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -187,7 +187,7 @@ public Map getMapInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -212,7 +212,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -220,7 +220,7 @@ public Map getMapBoolean() { } - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -245,7 +245,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -253,7 +253,7 @@ public Map> getMapArrayInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -278,7 +278,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * @return mapArrayAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -286,7 +286,7 @@ public Map> getMapArrayAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -311,7 +311,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -319,7 +319,7 @@ public Map> getMapMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; @@ -344,7 +344,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -352,7 +352,7 @@ public Map> getMapMapAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -369,7 +369,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -377,7 +377,7 @@ public Object getAnytype1() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -394,7 +394,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -402,7 +402,7 @@ public Object getAnytype2() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -419,7 +419,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -427,7 +427,7 @@ public Object getAnytype3() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index d2844615adfb..0dc9281501ba 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -55,7 +55,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 4bcd92f51b06..b9277443b1d2 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -56,7 +56,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b326c9dcd84e..b1a4275124d6 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -56,7 +56,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 4516b455ad87..44732475174a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -55,7 +55,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java index c5f45f76a3bb..c7fe346559a9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java @@ -70,7 +70,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -78,7 +78,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -95,7 +95,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -103,7 +103,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index cf4ba44c209a..31b3ce0c82ee 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -62,7 +62,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -70,7 +70,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 0644a72ec8ad..b0c542547f37 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -62,7 +62,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -70,7 +70,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java index 21359069849e..999b8b316a8e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -72,7 +72,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -80,7 +80,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -105,7 +105,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -113,7 +113,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -138,7 +138,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -146,7 +146,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java index 0c7572958a0a..82001a1bc95e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java @@ -100,7 +100,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { @@ -108,7 +108,7 @@ public KindEnum getKind() { } - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java index 5ff61b49a08c..44ae15d4d8dd 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java @@ -76,7 +76,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -84,7 +84,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -101,7 +101,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -109,7 +109,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -126,7 +126,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -134,7 +134,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -151,7 +151,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -159,7 +159,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -176,7 +176,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -184,7 +184,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -201,7 +201,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -209,7 +209,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java index 1b2f8018387f..8f13e7b052fe 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java @@ -64,7 +64,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -72,7 +72,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java index 566a6a84f6c2..5dd8aa4a3272 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java @@ -56,7 +56,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -81,7 +81,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -89,7 +89,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java index 3a6f13aeaa82..e5d2d7f429be 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java @@ -51,7 +51,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -59,7 +59,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java index 1fb37094dafa..641d7a417a24 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java @@ -51,7 +51,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -59,7 +59,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java index 2305e19ef2b0..d2532908e7b4 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java @@ -61,7 +61,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -69,7 +69,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java index 04b06119cff9..d51f3e032486 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -128,7 +128,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -161,7 +161,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -169,7 +169,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java index 0c0684107a8e..5a7eb8f3178a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java @@ -217,7 +217,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -225,7 +225,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -242,7 +242,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -250,7 +250,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -267,7 +267,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -275,7 +275,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -292,7 +292,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -300,7 +300,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -317,7 +317,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * @return outerEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -325,7 +325,7 @@ public OuterEnum getOuterEnum() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 312b378814ec..e97860bd7ebe 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -59,7 +59,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -67,7 +67,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -92,7 +92,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -100,7 +100,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java index fbfcf902ab71..2ce71629ff9a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java @@ -124,7 +124,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -132,7 +132,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -151,7 +151,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -159,7 +159,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -176,7 +176,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -184,7 +184,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -203,7 +203,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -211,7 +211,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -230,7 +230,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -238,7 +238,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -257,7 +257,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -265,7 +265,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -282,7 +282,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -290,7 +290,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -307,7 +307,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -315,7 +315,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -332,7 +332,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -340,7 +340,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -357,7 +357,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -365,7 +365,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -382,7 +382,7 @@ public FormatTest dateTime(@javax.annotation.Nullable LocalDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public LocalDateTime getDateTime() { @@ -390,7 +390,7 @@ public LocalDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable LocalDateTime dateTime) { this.dateTime = dateTime; @@ -407,7 +407,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -415,7 +415,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -432,7 +432,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -440,7 +440,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -457,7 +457,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * @return bigDecimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -465,7 +465,7 @@ public BigDecimal getBigDecimal() { } - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 476a3fefee0c..0b2e7ecb6ccc 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -62,7 +62,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,7 +77,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java index 305346b28dee..4c47b26893d1 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java @@ -111,7 +111,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -119,7 +119,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -144,7 +144,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -152,7 +152,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -177,7 +177,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -185,7 +185,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -210,7 +210,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -218,7 +218,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index d9369fe001f1..fb470fe2ad86 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -74,7 +74,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -91,7 +91,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public LocalDateTime getDateTime() { @@ -99,7 +99,7 @@ public LocalDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable LocalDateTime dateTime) { this.dateTime = dateTime; @@ -124,7 +124,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -132,7 +132,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java index d467daad3541..2b673f325409 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java @@ -57,7 +57,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -65,7 +65,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -82,7 +82,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -90,7 +90,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 351c62bac8b9..d449a5952227 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -62,7 +62,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -70,7 +70,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -87,7 +87,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -95,7 +95,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -112,7 +112,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -120,7 +120,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java index 816fc4fa0064..8d5f51659eb6 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelFile.java @@ -52,7 +52,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -60,7 +60,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java index 65a566ce5e83..8c2fbabc55ff 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelList.java @@ -52,7 +52,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -60,7 +60,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java index 79a6baa30dee..7ae7ccb5a135 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -52,7 +52,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -60,7 +60,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java index a8d62707df8b..98faf0055bb8 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -96,7 +96,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -116,7 +116,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -124,7 +124,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -136,7 +136,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java index 5c82b27291fa..1b802b71cae7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -52,7 +52,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -60,7 +60,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java index be54733fa2b0..ea26cc9665f0 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java @@ -114,7 +114,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -122,7 +122,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -139,7 +139,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -147,7 +147,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -164,7 +164,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -172,7 +172,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -189,7 +189,7 @@ public Order shipDate(@javax.annotation.Nullable LocalDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public LocalDateTime getShipDate() { @@ -197,7 +197,7 @@ public LocalDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable LocalDateTime shipDate) { this.shipDate = shipDate; @@ -214,7 +214,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -222,7 +222,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -239,7 +239,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -247,7 +247,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java index 3f2e4b03f92e..bbd2fd96b114 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -62,7 +62,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -70,7 +70,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -87,7 +87,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -95,7 +95,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -112,7 +112,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -120,7 +120,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java index c1723ce2eb9c..bbada0565220 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java @@ -120,7 +120,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -128,7 +128,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -153,7 +153,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -170,7 +170,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -178,7 +178,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -203,7 +203,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -212,7 +212,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -237,7 +237,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -245,7 +245,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -262,7 +262,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -270,7 +270,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index babde0bf76b7..362a6723e6d0 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -59,7 +59,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -79,7 +79,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -87,7 +87,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java index 95f0e6c94565..358711cab17b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -52,7 +52,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -60,7 +60,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java index 6ae76dc3ab77..9a5bea0d753c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java @@ -56,7 +56,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -81,7 +81,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -89,7 +89,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 7c79d169424c..ab4fada17762 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -74,7 +74,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -82,7 +82,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -99,7 +99,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -107,7 +107,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -124,7 +124,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -132,7 +132,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -149,7 +149,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -157,7 +157,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -182,7 +182,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -190,7 +190,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 9d3ae7f8a7f1..e0c6060f3db9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,7 +79,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -87,7 +87,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -104,7 +104,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -112,7 +112,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -129,7 +129,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * @return floatItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -137,7 +137,7 @@ public Float getFloatItem() { } - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -154,7 +154,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -162,7 +162,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -179,7 +179,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -187,7 +187,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -212,7 +212,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -220,7 +220,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java index 548915ebcb47..dc565ff2ce7c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java @@ -86,7 +86,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -94,7 +94,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -111,7 +111,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -119,7 +119,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -136,7 +136,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -144,7 +144,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -161,7 +161,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -169,7 +169,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -186,7 +186,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -194,7 +194,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -211,7 +211,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -219,7 +219,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -236,7 +236,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -244,7 +244,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -261,7 +261,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -269,7 +269,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java index f006ea5fdb4b..1e0d9e47b00b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java @@ -194,7 +194,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -202,7 +202,7 @@ public String getAttributeString() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -219,7 +219,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * @return attributeNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -227,7 +227,7 @@ public BigDecimal getAttributeNumber() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -244,7 +244,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -252,7 +252,7 @@ public Integer getAttributeInteger() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -269,7 +269,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -277,7 +277,7 @@ public Boolean getAttributeBoolean() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -302,7 +302,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -310,7 +310,7 @@ public List getWrappedArray() { } - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -327,7 +327,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -335,7 +335,7 @@ public String getNameString() { } - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; @@ -352,7 +352,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * @return nameNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -360,7 +360,7 @@ public BigDecimal getNameNumber() { } - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -377,7 +377,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -385,7 +385,7 @@ public Integer getNameInteger() { } - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -402,7 +402,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -410,7 +410,7 @@ public Boolean getNameBoolean() { } - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -435,7 +435,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -443,7 +443,7 @@ public List getNameArray() { } - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -468,7 +468,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -476,7 +476,7 @@ public List getNameWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -493,7 +493,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -501,7 +501,7 @@ public String getPrefixString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -518,7 +518,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * @return prefixNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -526,7 +526,7 @@ public BigDecimal getPrefixNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -543,7 +543,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -551,7 +551,7 @@ public Integer getPrefixInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -568,7 +568,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -576,7 +576,7 @@ public Boolean getPrefixBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -601,7 +601,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -609,7 +609,7 @@ public List getPrefixArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -634,7 +634,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -642,7 +642,7 @@ public List getPrefixWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -659,7 +659,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -667,7 +667,7 @@ public String getNamespaceString() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -684,7 +684,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * @return namespaceNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -692,7 +692,7 @@ public BigDecimal getNamespaceNumber() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -709,7 +709,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -717,7 +717,7 @@ public Integer getNamespaceInteger() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -734,7 +734,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -742,7 +742,7 @@ public Boolean getNamespaceBoolean() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -767,7 +767,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -775,7 +775,7 @@ public List getNamespaceArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -800,7 +800,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -808,7 +808,7 @@ public List getNamespaceWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -825,7 +825,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -833,7 +833,7 @@ public String getPrefixNsString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -850,7 +850,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * @return prefixNsNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -858,7 +858,7 @@ public BigDecimal getPrefixNsNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -875,7 +875,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -883,7 +883,7 @@ public Integer getPrefixNsInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -900,7 +900,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -908,7 +908,7 @@ public Boolean getPrefixNsBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -933,7 +933,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -941,7 +941,7 @@ public List getPrefixNsArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -966,7 +966,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -974,7 +974,7 @@ public List getPrefixNsWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 4f0efe25c1ce..a696ecb53b71 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -55,7 +55,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index e8b4b56c5b17..00662e5f093d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -56,7 +56,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 4b51b315dda1..266ace2a7579 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -55,7 +55,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 2dfaf8914e27..ee8f4c1aa53b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -113,7 +113,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -121,7 +121,7 @@ public Map getMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -146,7 +146,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * @return mapNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -154,7 +154,7 @@ public Map getMapNumber() { } - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -179,7 +179,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -187,7 +187,7 @@ public Map getMapInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -212,7 +212,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -220,7 +220,7 @@ public Map getMapBoolean() { } - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -245,7 +245,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -253,7 +253,7 @@ public Map> getMapArrayInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -278,7 +278,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * @return mapArrayAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -286,7 +286,7 @@ public Map> getMapArrayAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -311,7 +311,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -319,7 +319,7 @@ public Map> getMapMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; @@ -344,7 +344,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -352,7 +352,7 @@ public Map> getMapMapAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -369,7 +369,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -377,7 +377,7 @@ public Object getAnytype1() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -394,7 +394,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -402,7 +402,7 @@ public Object getAnytype2() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -419,7 +419,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -427,7 +427,7 @@ public Object getAnytype3() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index d2844615adfb..0dc9281501ba 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -55,7 +55,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 4bcd92f51b06..b9277443b1d2 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -56,7 +56,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b326c9dcd84e..b1a4275124d6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -56,7 +56,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 4516b455ad87..44732475174a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -55,7 +55,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index c5f45f76a3bb..c7fe346559a9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java @@ -70,7 +70,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -78,7 +78,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -95,7 +95,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -103,7 +103,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index cf4ba44c209a..31b3ce0c82ee 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -62,7 +62,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -70,7 +70,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 0644a72ec8ad..b0c542547f37 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -62,7 +62,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -70,7 +70,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java index 21359069849e..999b8b316a8e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -72,7 +72,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -80,7 +80,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -105,7 +105,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -113,7 +113,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -138,7 +138,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -146,7 +146,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java index 0c7572958a0a..82001a1bc95e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java @@ -100,7 +100,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { @@ -108,7 +108,7 @@ public KindEnum getKind() { } - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java index 5ff61b49a08c..44ae15d4d8dd 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java @@ -76,7 +76,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -84,7 +84,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -101,7 +101,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -109,7 +109,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -126,7 +126,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -134,7 +134,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -151,7 +151,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -159,7 +159,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -176,7 +176,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -184,7 +184,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -201,7 +201,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -209,7 +209,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java index 1b2f8018387f..8f13e7b052fe 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java @@ -64,7 +64,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -72,7 +72,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java index 566a6a84f6c2..5dd8aa4a3272 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java @@ -56,7 +56,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -81,7 +81,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -89,7 +89,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java index 3a6f13aeaa82..e5d2d7f429be 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java @@ -51,7 +51,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -59,7 +59,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java index 1fb37094dafa..641d7a417a24 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java @@ -51,7 +51,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -59,7 +59,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java index 2305e19ef2b0..d2532908e7b4 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java @@ -61,7 +61,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -69,7 +69,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 04b06119cff9..d51f3e032486 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -128,7 +128,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -136,7 +136,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -161,7 +161,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -169,7 +169,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index 0c0684107a8e..5a7eb8f3178a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -217,7 +217,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -225,7 +225,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -242,7 +242,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -250,7 +250,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -267,7 +267,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -275,7 +275,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -292,7 +292,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -300,7 +300,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -317,7 +317,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * @return outerEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -325,7 +325,7 @@ public OuterEnum getOuterEnum() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 312b378814ec..e97860bd7ebe 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -59,7 +59,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -67,7 +67,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -92,7 +92,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -100,7 +100,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index 19180fae06b6..b3bef0acefa9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -124,7 +124,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -132,7 +132,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -151,7 +151,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -159,7 +159,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -176,7 +176,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -184,7 +184,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -203,7 +203,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -211,7 +211,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -230,7 +230,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -238,7 +238,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -257,7 +257,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -265,7 +265,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -282,7 +282,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -290,7 +290,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -307,7 +307,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -315,7 +315,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -332,7 +332,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -340,7 +340,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -357,7 +357,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -365,7 +365,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -382,7 +382,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -390,7 +390,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -407,7 +407,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -415,7 +415,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -432,7 +432,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -440,7 +440,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -457,7 +457,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * @return bigDecimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -465,7 +465,7 @@ public BigDecimal getBigDecimal() { } - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 476a3fefee0c..0b2e7ecb6ccc 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -62,7 +62,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -77,7 +77,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index 305346b28dee..4c47b26893d1 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -111,7 +111,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -119,7 +119,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -144,7 +144,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -152,7 +152,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -177,7 +177,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -185,7 +185,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -210,7 +210,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -218,7 +218,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 749a6e1f85e7..fafac9908cdb 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -74,7 +74,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -91,7 +91,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -99,7 +99,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -124,7 +124,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -132,7 +132,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java index d467daad3541..2b673f325409 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java @@ -57,7 +57,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -65,7 +65,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -82,7 +82,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -90,7 +90,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 351c62bac8b9..d449a5952227 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -62,7 +62,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -70,7 +70,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -87,7 +87,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -95,7 +95,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -112,7 +112,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -120,7 +120,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java index 816fc4fa0064..8d5f51659eb6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java @@ -52,7 +52,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -60,7 +60,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java index 65a566ce5e83..8c2fbabc55ff 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java @@ -52,7 +52,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -60,7 +60,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java index 79a6baa30dee..7ae7ccb5a135 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -52,7 +52,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -60,7 +60,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java index a8d62707df8b..98faf0055bb8 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -96,7 +96,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -116,7 +116,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -124,7 +124,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -136,7 +136,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java index 5c82b27291fa..1b802b71cae7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -52,7 +52,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -60,7 +60,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index e6f2d914d986..2ad50354cb03 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -114,7 +114,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -122,7 +122,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -139,7 +139,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -147,7 +147,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -164,7 +164,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -172,7 +172,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -189,7 +189,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -197,7 +197,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -214,7 +214,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -222,7 +222,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -239,7 +239,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -247,7 +247,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java index 3f2e4b03f92e..bbd2fd96b114 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -62,7 +62,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -70,7 +70,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -87,7 +87,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -95,7 +95,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -112,7 +112,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -120,7 +120,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index c1723ce2eb9c..bbada0565220 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -120,7 +120,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -128,7 +128,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -153,7 +153,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -170,7 +170,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -178,7 +178,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -203,7 +203,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -212,7 +212,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -237,7 +237,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -245,7 +245,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -262,7 +262,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -270,7 +270,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index babde0bf76b7..362a6723e6d0 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -59,7 +59,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -79,7 +79,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -87,7 +87,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java index 95f0e6c94565..358711cab17b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -52,7 +52,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -60,7 +60,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java index 6ae76dc3ab77..9a5bea0d753c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java @@ -56,7 +56,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -81,7 +81,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -89,7 +89,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 7c79d169424c..ab4fada17762 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -74,7 +74,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -82,7 +82,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -99,7 +99,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -107,7 +107,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -124,7 +124,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -132,7 +132,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -149,7 +149,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -157,7 +157,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -182,7 +182,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -190,7 +190,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 9d3ae7f8a7f1..e0c6060f3db9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,7 +79,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -87,7 +87,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -104,7 +104,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -112,7 +112,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -129,7 +129,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * @return floatItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -137,7 +137,7 @@ public Float getFloatItem() { } - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -154,7 +154,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -162,7 +162,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -179,7 +179,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -187,7 +187,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -212,7 +212,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -220,7 +220,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java index 548915ebcb47..dc565ff2ce7c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java @@ -86,7 +86,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -94,7 +94,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -111,7 +111,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -119,7 +119,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -136,7 +136,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -144,7 +144,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -161,7 +161,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -169,7 +169,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -186,7 +186,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -194,7 +194,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -211,7 +211,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -219,7 +219,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -236,7 +236,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -244,7 +244,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -261,7 +261,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -269,7 +269,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java index f006ea5fdb4b..1e0d9e47b00b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java @@ -194,7 +194,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -202,7 +202,7 @@ public String getAttributeString() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -219,7 +219,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * @return attributeNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -227,7 +227,7 @@ public BigDecimal getAttributeNumber() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -244,7 +244,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -252,7 +252,7 @@ public Integer getAttributeInteger() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -269,7 +269,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -277,7 +277,7 @@ public Boolean getAttributeBoolean() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -302,7 +302,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -310,7 +310,7 @@ public List getWrappedArray() { } - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -327,7 +327,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -335,7 +335,7 @@ public String getNameString() { } - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; @@ -352,7 +352,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * @return nameNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -360,7 +360,7 @@ public BigDecimal getNameNumber() { } - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -377,7 +377,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -385,7 +385,7 @@ public Integer getNameInteger() { } - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -402,7 +402,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -410,7 +410,7 @@ public Boolean getNameBoolean() { } - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -435,7 +435,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -443,7 +443,7 @@ public List getNameArray() { } - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -468,7 +468,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -476,7 +476,7 @@ public List getNameWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -493,7 +493,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -501,7 +501,7 @@ public String getPrefixString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -518,7 +518,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * @return prefixNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -526,7 +526,7 @@ public BigDecimal getPrefixNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -543,7 +543,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -551,7 +551,7 @@ public Integer getPrefixInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -568,7 +568,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -576,7 +576,7 @@ public Boolean getPrefixBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -601,7 +601,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -609,7 +609,7 @@ public List getPrefixArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -634,7 +634,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -642,7 +642,7 @@ public List getPrefixWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -659,7 +659,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -667,7 +667,7 @@ public String getNamespaceString() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -684,7 +684,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * @return namespaceNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -692,7 +692,7 @@ public BigDecimal getNamespaceNumber() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -709,7 +709,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -717,7 +717,7 @@ public Integer getNamespaceInteger() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -734,7 +734,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -742,7 +742,7 @@ public Boolean getNamespaceBoolean() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -767,7 +767,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -775,7 +775,7 @@ public List getNamespaceArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -800,7 +800,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -808,7 +808,7 @@ public List getNamespaceWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -825,7 +825,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -833,7 +833,7 @@ public String getPrefixNsString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -850,7 +850,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * @return prefixNsNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -858,7 +858,7 @@ public BigDecimal getPrefixNsNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -875,7 +875,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -883,7 +883,7 @@ public Integer getPrefixNsInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -900,7 +900,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -908,7 +908,7 @@ public Boolean getPrefixNsBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -933,7 +933,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -941,7 +941,7 @@ public List getPrefixNsArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -966,7 +966,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -974,7 +974,7 @@ public List getPrefixNsWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; diff --git a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java index 4fcfc27ea8b6..73a420174772 100644 --- a/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java +++ b/samples/client/petstore/java/jersey3-oneOf/src/main/java/org/openapitools/client/model/SchemaA.java @@ -52,7 +52,7 @@ public SchemaA propA(@jakarta.annotation.Nullable String propA) { * @return propA */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROP_A) + @JsonProperty(value = JSON_PROPERTY_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropA() { @@ -60,7 +60,7 @@ public String getPropA() { } - @JsonProperty(JSON_PROPERTY_PROP_A) + @JsonProperty(value = JSON_PROPERTY_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropA(@jakarta.annotation.Nullable String propA) { this.propA = propA; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 860febf9011f..4e3e6086077d 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -104,7 +104,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -112,7 +112,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -139,7 +139,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -147,7 +147,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; @@ -171,7 +171,7 @@ public Object getAnytype1() { return anytype1.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnytype1_JsonNullable() { @@ -199,7 +199,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@jakarta.an */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype1() { @@ -207,7 +207,7 @@ public Object getMapWithUndeclaredPropertiesAnytype1() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype1(@jakarta.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; @@ -225,7 +225,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@jakarta.an */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype2() { @@ -233,7 +233,7 @@ public Object getMapWithUndeclaredPropertiesAnytype2() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype2(@jakarta.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; @@ -259,7 +259,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesAnytype3() { @@ -267,7 +267,7 @@ public Map getMapWithUndeclaredPropertiesAnytype3() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype3(@jakarta.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; @@ -285,7 +285,7 @@ public AdditionalPropertiesClass emptyMap(@jakarta.annotation.Nullable Object em */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getEmptyMap() { @@ -293,7 +293,7 @@ public Object getEmptyMap() { } - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmptyMap(@jakarta.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; @@ -319,7 +319,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesString() { @@ -327,7 +327,7 @@ public Map getMapWithUndeclaredPropertiesString() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesString(@jakarta.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java index 4c1ab21fbc5b..4de375281291 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Animal.java @@ -75,7 +75,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -83,7 +83,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -101,7 +101,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -109,7 +109,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java index 002d6b185137..b653024a08cd 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Apple.java @@ -62,7 +62,7 @@ public Apple cultivar(@jakarta.annotation.Nullable String cultivar) { */ @jakarta.annotation.Nullable @Pattern(regexp="^[a-zA-Z\\s]*$") - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCultivar() { @@ -70,7 +70,7 @@ public String getCultivar() { } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCultivar(@jakarta.annotation.Nullable String cultivar) { this.cultivar = cultivar; @@ -88,7 +88,7 @@ public Apple origin(@jakarta.annotation.Nullable String origin) { */ @jakarta.annotation.Nullable @Pattern(regexp="/^[A-Z\\s]*$/i") - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrigin() { @@ -96,7 +96,7 @@ public String getOrigin() { } - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrigin(@jakarta.annotation.Nullable String origin) { this.origin = origin; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java index ba784fddff1a..03919dc3f992 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/AppleReq.java @@ -63,7 +63,7 @@ public AppleReq cultivar(@jakarta.annotation.Nonnull String cultivar) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCultivar() { @@ -71,7 +71,7 @@ public String getCultivar() { } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCultivar(@jakarta.annotation.Nonnull String cultivar) { this.cultivar = cultivar; @@ -89,7 +89,7 @@ public AppleReq mealy(@jakarta.annotation.Nullable Boolean mealy) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMealy() { @@ -97,7 +97,7 @@ public Boolean getMealy() { } - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMealy(@jakarta.annotation.Nullable Boolean mealy) { this.mealy = mealy; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index d4bddcb89bd5..29b80e171e29 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,7 +68,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -76,7 +76,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index a841087d0517..c0c7c19a1efe 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,7 +68,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -76,7 +76,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java index bd1636145fb9..1c75793ffc37 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,7 +77,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -85,7 +85,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -112,7 +112,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -120,7 +120,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -147,7 +147,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -155,7 +155,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java index 1d4d4ed41f08..376971ac4ff5 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Banana.java @@ -59,7 +59,7 @@ public Banana lengthCm(@jakarta.annotation.Nullable BigDecimal lengthCm) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getLengthCm() { @@ -67,7 +67,7 @@ public BigDecimal getLengthCm() { } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLengthCm(@jakarta.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java index 8140faafb623..9182cf1604af 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BananaReq.java @@ -65,7 +65,7 @@ public BananaReq lengthCm(@jakarta.annotation.Nonnull BigDecimal lengthCm) { @NotNull @Valid - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getLengthCm() { @@ -73,7 +73,7 @@ public BigDecimal getLengthCm() { } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLengthCm(@jakarta.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; @@ -91,7 +91,7 @@ public BananaReq sweet(@jakarta.annotation.Nullable Boolean sweet) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSweet() { @@ -99,7 +99,7 @@ public Boolean getSweet() { } - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSweet(@jakarta.annotation.Nullable Boolean sweet) { this.sweet = sweet; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java index 8d3949ac7884..c4e07c25fcf9 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/BasquePig.java @@ -57,7 +57,7 @@ public BasquePig className(@jakarta.annotation.Nonnull String className) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -65,7 +65,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java index 68919b60111a..a05cc53bb9d7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Capitalization.java @@ -81,7 +81,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -89,7 +89,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -107,7 +107,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -115,7 +115,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -133,7 +133,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -141,7 +141,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -159,7 +159,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -167,7 +167,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -185,7 +185,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -193,7 +193,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -211,7 +211,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -219,7 +219,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java index 581a41293519..a5328a2d4419 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Cat.java @@ -71,7 +71,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -79,7 +79,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java index cdb4f63e835d..9bb072554dac 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Category.java @@ -61,7 +61,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -69,7 +69,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -88,7 +88,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -96,7 +96,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java index 3278dd840b48..20dd77d4758c 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ChildCat.java @@ -77,7 +77,7 @@ public ChildCat name(@jakarta.annotation.Nullable String name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -85,7 +85,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; @@ -111,7 +111,7 @@ public ChildCat petType(@jakarta.annotation.Nullable String petType) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPetType() { @@ -119,7 +119,7 @@ public String getPetType() { } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetType(@jakarta.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java index 58b7a713d523..e103cc8cb418 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ClassModel.java @@ -56,7 +56,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -64,7 +64,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java index c2b37145f054..a1a258a05dc5 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Client.java @@ -56,7 +56,7 @@ public Client client(@jakarta.annotation.Nullable String client) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -64,7 +64,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index dc93c0741d40..f7540f940eab 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -66,7 +66,7 @@ public ComplexQuadrilateral shapeType(@jakarta.annotation.Nonnull String shapeTy @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -74,7 +74,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -93,7 +93,7 @@ public ComplexQuadrilateral quadrilateralType(@jakarta.annotation.Nonnull String @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { @@ -101,7 +101,7 @@ public String getQuadrilateralType() { } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java index 25a796af9521..72474590ea79 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DanishPig.java @@ -57,7 +57,7 @@ public DanishPig className(@jakarta.annotation.Nonnull String className) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -65,7 +65,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 03f8e396340e..e18394b64db7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -58,7 +58,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -66,7 +66,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java index a46242557ce9..5e60372efc40 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Dog.java @@ -70,7 +70,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -78,7 +78,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java index 9e60cda883e4..08c12b08df1c 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Drawing.java @@ -84,7 +84,7 @@ public Drawing mainShape(@jakarta.annotation.Nullable Shape mainShape) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Shape getMainShape() { @@ -92,7 +92,7 @@ public Shape getMainShape() { } - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMainShape(@jakarta.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; @@ -117,7 +117,7 @@ public ShapeOrNull getShapeOrNull() { return shapeOrNull.orElse(null); } - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonProperty(value = JSON_PROPERTY_SHAPE_OR_NULL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getShapeOrNull_JsonNullable() { @@ -152,7 +152,7 @@ public NullableShape getNullableShape() { return nullableShape.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableShape_JsonNullable() { @@ -189,7 +189,7 @@ public Drawing addShapesItem(Shape shapesItem) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getShapes() { @@ -197,7 +197,7 @@ public List getShapes() { } - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapes(@jakarta.annotation.Nullable List shapes) { this.shapes = shapes; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java index 6fe5cb0b5aa6..d99e8d907b6b 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,7 +133,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -141,7 +141,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -167,7 +167,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -175,7 +175,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java index d819b882ae22..ea2e69136fad 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -283,7 +283,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -291,7 +291,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -310,7 +310,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -318,7 +318,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -336,7 +336,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -344,7 +344,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -362,7 +362,7 @@ public EnumTest enumIntegerOnly(@jakarta.annotation.Nullable EnumIntegerOnlyEnum */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerOnlyEnum getEnumIntegerOnly() { @@ -370,7 +370,7 @@ public EnumIntegerOnlyEnum getEnumIntegerOnly() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumIntegerOnly(@jakarta.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; @@ -388,7 +388,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -396,7 +396,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -421,7 +421,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -450,7 +450,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -458,7 +458,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -477,7 +477,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -485,7 +485,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -504,7 +504,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -512,7 +512,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 5995f32aafe3..de12900bef19 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -66,7 +66,7 @@ public EquilateralTriangle shapeType(@jakarta.annotation.Nonnull String shapeTyp @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -74,7 +74,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -93,7 +93,7 @@ public EquilateralTriangle triangleType(@jakarta.annotation.Nonnull String trian @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -101,7 +101,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 566506a9719d..94c29ede4414 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -65,7 +65,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -73,7 +73,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -100,7 +100,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<@Valid ModelFile> getFiles() { @@ -108,7 +108,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java index 6366dcd2386c..8bbe15b97ff1 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Foo.java @@ -56,7 +56,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -64,7 +64,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 00539b9f015b..e96ccee132e7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -59,7 +59,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -67,7 +67,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java index 8486b300fd58..9bc07e80c2b7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/FormatTest.java @@ -139,7 +139,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { */ @jakarta.annotation.Nullable @Min(10) @Max(100) - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -147,7 +147,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -167,7 +167,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { */ @jakarta.annotation.Nullable @Min(20) @Max(200) - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -175,7 +175,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -193,7 +193,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -201,7 +201,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; @@ -223,7 +223,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -231,7 +231,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; @@ -251,7 +251,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { */ @jakarta.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -259,7 +259,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; @@ -279,7 +279,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { */ @jakarta.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -287,7 +287,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -306,7 +306,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -314,7 +314,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -332,7 +332,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { */ @jakarta.annotation.Nullable @Pattern(regexp="/[a-z]/i") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -340,7 +340,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable String string) { this.string = string; @@ -359,7 +359,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -367,7 +367,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -386,7 +386,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -394,7 +394,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -414,7 +414,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { @NotNull @Valid - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -422,7 +422,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; @@ -441,7 +441,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -449,7 +449,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -468,7 +468,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -476,7 +476,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -495,7 +495,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { @jakarta.annotation.Nonnull @NotNull @Size(min=10,max=64) - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -503,7 +503,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; @@ -521,7 +521,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW */ @jakarta.annotation.Nullable @Pattern(regexp="^\\d{10}$") - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -529,7 +529,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -547,7 +547,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str */ @jakarta.annotation.Nullable @Pattern(regexp="/^image_\\d{1,3}$/i") - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -555,7 +555,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 0fd27fdff36d..be839aa49ef7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -70,7 +70,7 @@ public GrandparentAnimal petType(@jakarta.annotation.Nonnull String petType) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPetType() { @@ -78,7 +78,7 @@ public String getPetType() { } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(@jakarta.annotation.Nonnull String petType) { this.petType = petType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index a25846f605c9..3f89d558fb3a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -67,7 +67,7 @@ public HasOnlyReadOnly( */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -83,7 +83,7 @@ public String getBar() { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 32616aa0e344..b5f142fceb95 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -65,7 +65,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 3d2b46eecdaa..a2049a2df117 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -62,7 +62,7 @@ public IsoscelesTriangle shapeType(@jakarta.annotation.Nonnull String shapeType) @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -70,7 +70,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -89,7 +89,7 @@ public IsoscelesTriangle triangleType(@jakarta.annotation.Nonnull String triangl @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -97,7 +97,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java index 4e347352b5cd..528e73283f93 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java @@ -117,7 +117,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -125,7 +125,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -151,7 +151,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -159,7 +159,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -185,7 +185,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -193,7 +193,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -219,7 +219,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -227,7 +227,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 7dbcff746482..72941cfac44e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -80,7 +80,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -99,7 +99,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -107,7 +107,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -134,7 +134,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -142,7 +142,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java index 79d2323b7269..917d7a97e23c 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,7 +62,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -70,7 +70,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -88,7 +88,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -96,7 +96,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java index bebd21e7d472..4306305329d0 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -67,7 +67,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -75,7 +75,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -93,7 +93,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -101,7 +101,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -119,7 +119,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -127,7 +127,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java index 8ad5ed892ef3..c0785c427815 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelFile.java @@ -57,7 +57,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -65,7 +65,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java index 4ab27804312d..1da5a329e447 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelList.java @@ -57,7 +57,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -65,7 +65,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java index 557ea26fb105..7a5acc539ee6 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -57,7 +57,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -65,7 +65,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java index 7a793343432d..777efef14fa7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Name.java @@ -82,7 +82,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -90,7 +90,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; @@ -103,7 +103,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -124,7 +124,7 @@ public Name property(@jakarta.annotation.Nullable String property) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -132,7 +132,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; @@ -145,7 +145,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java index ee9999b9b336..bf86cb646ce7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableClass.java @@ -122,7 +122,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -157,7 +157,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -191,7 +191,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -225,7 +225,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -260,7 +260,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -295,7 +295,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -341,7 +341,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -387,7 +387,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -423,7 +423,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -431,7 +431,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -467,7 +467,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -513,7 +513,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -549,7 +549,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -557,7 +557,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java index f15a94c9ad7c..55e0470d593d 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,7 +58,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -66,7 +66,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 98ae893510f1..44423a1fbc95 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -78,7 +78,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -86,7 +86,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; @@ -108,7 +108,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -117,7 +117,7 @@ public BigDecimal getId() { @Deprecated - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -139,7 +139,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -148,7 +148,7 @@ public DeprecatedObject getDeprecatedRef() { @Deprecated - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -177,7 +177,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -186,7 +186,7 @@ public List getBars() { @Deprecated - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java index e4f43fff43af..1b4dc5c0c693 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java @@ -119,7 +119,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -153,7 +153,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -171,7 +171,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -179,7 +179,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -198,7 +198,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -206,7 +206,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -224,7 +224,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -232,7 +232,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -250,7 +250,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -258,7 +258,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java index ea89147f7e87..7b406135d114 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -68,7 +68,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -76,7 +76,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -94,7 +94,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -102,7 +102,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -120,7 +120,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -128,7 +128,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java index 9ba6e1347b3a..6c9f3d48402d 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java @@ -122,7 +122,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -130,7 +130,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -149,7 +149,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -157,7 +157,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -176,7 +176,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -184,7 +184,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -211,7 +211,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -219,7 +219,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -246,7 +246,7 @@ public Pet addTagsItem(Tag tagsItem) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<@Valid Tag> getTags() { @@ -254,7 +254,7 @@ public Pet addTagsItem(Tag tagsItem) { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; @@ -272,7 +272,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -280,7 +280,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 66b64bc88752..518f83cf6404 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -57,7 +57,7 @@ public QuadrilateralInterface quadrilateralType(@jakarta.annotation.Nonnull Stri @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { @@ -65,7 +65,7 @@ public String getQuadrilateralType() { } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 82ee510ddf31..42cae841b1cb 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -64,7 +64,7 @@ public ReadOnlyFirst( */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -85,7 +85,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -93,7 +93,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 09cf6b767b6e..9b845bd8fef9 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -66,7 +66,7 @@ public ScaleneTriangle shapeType(@jakarta.annotation.Nonnull String shapeType) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -74,7 +74,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -93,7 +93,7 @@ public ScaleneTriangle triangleType(@jakarta.annotation.Nonnull String triangleT @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -101,7 +101,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java index 76c0bc7d0511..510d0a891b55 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -57,7 +57,7 @@ public ShapeInterface shapeType(@jakarta.annotation.Nonnull String shapeType) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -65,7 +65,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 049d89d45b9b..59b665520745 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -66,7 +66,7 @@ public SimpleQuadrilateral shapeType(@jakarta.annotation.Nonnull String shapeTyp @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -74,7 +74,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@jakarta.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -93,7 +93,7 @@ public SimpleQuadrilateral quadrilateralType(@jakarta.annotation.Nonnull String @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { @@ -101,7 +101,7 @@ public String getQuadrilateralType() { } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@jakarta.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java index d8fbd836b85c..af98e5eb4a6e 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -62,7 +62,7 @@ public SpecialModelName() { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -70,7 +70,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; @@ -88,7 +88,7 @@ public SpecialModelName specialModelName(@jakarta.annotation.Nullable String spe */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSpecialModelName() { @@ -96,7 +96,7 @@ public String getSpecialModelName() { } - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSpecialModelName(@jakarta.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java index 1bf671b67801..b29116b4bb2a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Tag.java @@ -61,7 +61,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -69,7 +69,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -95,7 +95,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 1c1487bdaa5f..1c248287f66b 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -61,7 +61,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -69,7 +69,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java index 819aae909dc9..7429c8f2cda5 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -57,7 +57,7 @@ public TriangleInterface triangleType(@jakarta.annotation.Nonnull String triangl @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -65,7 +65,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@jakarta.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java index ead050aef559..d9eb756a41ea 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/User.java @@ -112,7 +112,7 @@ public User id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -138,7 +138,7 @@ public User username(@jakarta.annotation.Nullable String username) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -146,7 +146,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -164,7 +164,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -172,7 +172,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -190,7 +190,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -198,7 +198,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -216,7 +216,7 @@ public User email(@jakarta.annotation.Nullable String email) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -224,7 +224,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -242,7 +242,7 @@ public User password(@jakarta.annotation.Nullable String password) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -250,7 +250,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -268,7 +268,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -276,7 +276,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -294,7 +294,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -302,7 +302,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; @@ -320,7 +320,7 @@ public User objectWithNoDeclaredProps(@jakarta.annotation.Nullable Object object */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getObjectWithNoDeclaredProps() { @@ -328,7 +328,7 @@ public Object getObjectWithNoDeclaredProps() { } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectWithNoDeclaredProps(@jakarta.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; @@ -352,7 +352,7 @@ public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getObjectWithNoDeclaredPropsNullable_JsonNullable() { @@ -386,7 +386,7 @@ public Object getAnyTypeProp() { return anyTypeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypeProp_JsonNullable() { @@ -420,7 +420,7 @@ public Object getAnyTypePropNullable() { return anyTypePropNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypePropNullable_JsonNullable() { diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java index 9f5596733bd1..8a01713a1516 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Whale.java @@ -67,7 +67,7 @@ public Whale hasBaleen(@jakarta.annotation.Nullable Boolean hasBaleen) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasBaleen() { @@ -75,7 +75,7 @@ public Boolean getHasBaleen() { } - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasBaleen(@jakarta.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; @@ -93,7 +93,7 @@ public Whale hasTeeth(@jakarta.annotation.Nullable Boolean hasTeeth) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasTeeth() { @@ -101,7 +101,7 @@ public Boolean getHasTeeth() { } - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasTeeth(@jakarta.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; @@ -120,7 +120,7 @@ public Whale className(@jakarta.annotation.Nonnull String className) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -128,7 +128,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java index 120223ccde1a..c97302085fd9 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java @@ -103,7 +103,7 @@ public Zebra type(@jakarta.annotation.Nullable TypeEnum type) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; @@ -130,7 +130,7 @@ public Zebra className(@jakarta.annotation.Nonnull String className) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -138,7 +138,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java index f90301183daa..022154365c5c 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Category.java @@ -55,7 +55,7 @@ public class Category { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(Long id) { @@ -81,7 +81,7 @@ public Category id(Long id) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") public String getName() { @@ -91,7 +91,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") public void setName(String name) { diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 334229b6626f..8e7da5c59795 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -61,7 +61,7 @@ public class ModelApiResponse { * Get code * @return code **/ - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "code") public Integer getCode() { @@ -71,7 +71,7 @@ public Integer getCode() { /** * Set code */ - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "code") public void setCode(Integer code) { @@ -87,7 +87,7 @@ public ModelApiResponse code(Integer code) { * Get type * @return type **/ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") public String getType() { @@ -97,7 +97,7 @@ public String getType() { /** * Set type */ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") public void setType(String type) { @@ -113,7 +113,7 @@ public ModelApiResponse type(String type) { * Get message * @return message **/ - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "message") public String getMessage() { @@ -123,7 +123,7 @@ public String getMessage() { /** * Set message */ - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "message") public void setMessage(String message) { diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java index 14d273215c1b..e083dc1632e2 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public static StatusEnum fromValue(String v) { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public Long getId() { @@ -122,7 +122,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(Long id) { @@ -138,7 +138,7 @@ public Order id(Long id) { * Get petId * @return petId **/ - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "petId") public Long getPetId() { @@ -148,7 +148,7 @@ public Long getPetId() { /** * Set petId */ - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "petId") public void setPetId(Long petId) { @@ -164,7 +164,7 @@ public Order petId(Long petId) { * Get quantity * @return quantity **/ - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "quantity") public Integer getQuantity() { @@ -174,7 +174,7 @@ public Integer getQuantity() { /** * Set quantity */ - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "quantity") public void setQuantity(Integer quantity) { @@ -190,7 +190,7 @@ public Order quantity(Integer quantity) { * Get shipDate * @return shipDate **/ - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "shipDate") public Date getShipDate() { @@ -200,7 +200,7 @@ public Date getShipDate() { /** * Set shipDate */ - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "shipDate") public void setShipDate(Date shipDate) { @@ -216,7 +216,7 @@ public Order shipDate(Date shipDate) { * Order Status * @return status **/ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") public String getStatus() { @@ -229,7 +229,7 @@ public String getStatus() { /** * Set status */ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") public void setStatus(StatusEnum status) { @@ -245,7 +245,7 @@ public Order status(StatusEnum status) { * Get complete * @return complete **/ - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "complete") public Boolean getComplete() { @@ -255,7 +255,7 @@ public Boolean getComplete() { /** * Set complete */ - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "complete") public void setComplete(Boolean complete) { diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java index 74cf6d7ec2ca..9b64834c2155 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Pet.java @@ -118,7 +118,7 @@ public static StatusEnum fromValue(String v) { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public Long getId() { @@ -128,7 +128,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(Long id) { @@ -144,7 +144,7 @@ public Pet id(Long id) { * Get category * @return category **/ - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Category") public Category getCategory() { @@ -154,7 +154,7 @@ public Category getCategory() { /** * Set category */ - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Category") public void setCategory(Category category) { @@ -170,7 +170,7 @@ public Pet category(Category category) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") public String getName() { @@ -180,7 +180,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") public void setName(String name) { @@ -196,7 +196,7 @@ public Pet name(String name) { * Get photoUrls * @return photoUrls **/ - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "photoUrl") @JacksonXmlElementWrapper(localName = "photoUrl", useWrapping = true) @@ -207,7 +207,7 @@ public List getPhotoUrls() { /** * Set photoUrls */ - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "photoUrl") @JacksonXmlElementWrapper(localName = "photoUrl", useWrapping = true) @@ -232,7 +232,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get tags * @return tags **/ - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Tag") @JacksonXmlElementWrapper(localName = "tag", useWrapping = true) @@ -243,7 +243,7 @@ public List getTags() { /** * Set tags */ - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Tag") @JacksonXmlElementWrapper(localName = "tag", useWrapping = true) @@ -270,7 +270,7 @@ public Pet addTagsItem(Tag tagsItem) { * @deprecated **/ @Deprecated - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") public String getStatus() { @@ -283,7 +283,7 @@ public String getStatus() { /** * Set status */ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") public void setStatus(StatusEnum status) { diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java index f74a6e14dcfa..8223731dad44 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/Tag.java @@ -55,7 +55,7 @@ public class Tag { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(Long id) { @@ -81,7 +81,7 @@ public Tag id(Long id) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") public String getName() { @@ -91,7 +91,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") public void setName(String name) { diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java index 1d571783f608..b4d74cbbc9c2 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/model/User.java @@ -88,7 +88,7 @@ public class User { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public Long getId() { @@ -98,7 +98,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(Long id) { @@ -114,7 +114,7 @@ public User id(Long id) { * Get username * @return username **/ - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") public String getUsername() { @@ -124,7 +124,7 @@ public String getUsername() { /** * Set username */ - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") public void setUsername(String username) { @@ -140,7 +140,7 @@ public User username(String username) { * Get firstName * @return firstName **/ - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "firstName") public String getFirstName() { @@ -150,7 +150,7 @@ public String getFirstName() { /** * Set firstName */ - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "firstName") public void setFirstName(String firstName) { @@ -166,7 +166,7 @@ public User firstName(String firstName) { * Get lastName * @return lastName **/ - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "lastName") public String getLastName() { @@ -176,7 +176,7 @@ public String getLastName() { /** * Set lastName */ - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "lastName") public void setLastName(String lastName) { @@ -192,7 +192,7 @@ public User lastName(String lastName) { * Get email * @return email **/ - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "email") public String getEmail() { @@ -202,7 +202,7 @@ public String getEmail() { /** * Set email */ - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "email") public void setEmail(String email) { @@ -218,7 +218,7 @@ public User email(String email) { * Get password * @return password **/ - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "password") public String getPassword() { @@ -228,7 +228,7 @@ public String getPassword() { /** * Set password */ - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "password") public void setPassword(String password) { @@ -244,7 +244,7 @@ public User password(String password) { * Get phone * @return phone **/ - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "phone") public String getPhone() { @@ -254,7 +254,7 @@ public String getPhone() { /** * Set phone */ - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "phone") public void setPhone(String phone) { @@ -270,7 +270,7 @@ public User phone(String phone) { * User Status * @return userStatus **/ - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "userStatus") public Integer getUserStatus() { @@ -280,7 +280,7 @@ public Integer getUserStatus() { /** * Set userStatus */ - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "userStatus") public void setUserStatus(Integer userStatus) { diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index be4be5765e0c..5a6e4301e8f1 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -45,7 +45,7 @@ public class AdditionalPropertiesClass { * Get mapProperty * @return mapProperty **/ - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { return mapProperty; @@ -54,7 +54,7 @@ public Map getMapProperty() { /** * Set mapProperty */ - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(Map mapProperty) { this.mapProperty = mapProperty; @@ -77,7 +77,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * Get mapOfMapProperty * @return mapOfMapProperty **/ - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapOfMapProperty() { return mapOfMapProperty; @@ -86,7 +86,7 @@ public Map> getMapOfMapProperty() { /** * Set mapOfMapProperty */ - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 53c0cb73bf2b..e398f91c7d8f 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -44,7 +44,7 @@ public class AllOfWithSingleRef { * Get username * @return username **/ - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; @@ -53,7 +53,7 @@ public String getUsername() { /** * Set username */ - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; @@ -68,7 +68,7 @@ public AllOfWithSingleRef username(String username) { * Get singleRefType * @return singleRefType **/ - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { return singleRefType; @@ -77,7 +77,7 @@ public SingleRefType getSingleRefType() { /** * Set singleRefType */ - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Animal.java index d1d133daa3fa..191e86ff5525 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Animal.java @@ -56,7 +56,7 @@ public class Animal { * Get className * @return className **/ - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; @@ -65,7 +65,7 @@ public String getClassName() { /** * Set className */ - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; @@ -80,7 +80,7 @@ public Animal className(String className) { * Get color * @return color **/ - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; @@ -89,7 +89,7 @@ public String getColor() { /** * Set color */ - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 633f5951245a..9ec58cdd30de 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -42,7 +42,7 @@ public class ArrayOfArrayOfNumberOnly { * Get arrayArrayNumber * @return arrayArrayNumber **/ - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { return arrayArrayNumber; @@ -51,7 +51,7 @@ public List> getArrayArrayNumber() { /** * Set arrayArrayNumber */ - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index eee630e931e7..b83669ab2e07 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -42,7 +42,7 @@ public class ArrayOfNumberOnly { * Get arrayNumber * @return arrayNumber **/ - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { return arrayNumber; @@ -51,7 +51,7 @@ public List getArrayNumber() { /** * Set arrayNumber */ - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java index 54969eb9ad64..97e2386afcd3 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -52,7 +52,7 @@ public class ArrayTest { * Get arrayOfString * @return arrayOfString **/ - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { return arrayOfString; @@ -61,7 +61,7 @@ public List getArrayOfString() { /** * Set arrayOfString */ - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; @@ -84,7 +84,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * Get arrayArrayOfInteger * @return arrayArrayOfInteger **/ - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; @@ -93,7 +93,7 @@ public List> getArrayArrayOfInteger() { /** * Set arrayArrayOfInteger */ - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -116,7 +116,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * Get arrayArrayOfModel * @return arrayArrayOfModel **/ - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { return arrayArrayOfModel; @@ -125,7 +125,7 @@ public List> getArrayArrayOfModel() { /** * Set arrayArrayOfModel */ - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Capitalization.java index 5c6131e7761b..938657fdd43b 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -66,7 +66,7 @@ public class Capitalization { * Get smallCamel * @return smallCamel **/ - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { return smallCamel; @@ -75,7 +75,7 @@ public String getSmallCamel() { /** * Set smallCamel */ - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; @@ -90,7 +90,7 @@ public Capitalization smallCamel(String smallCamel) { * Get capitalCamel * @return capitalCamel **/ - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { return capitalCamel; @@ -99,7 +99,7 @@ public String getCapitalCamel() { /** * Set capitalCamel */ - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; @@ -114,7 +114,7 @@ public Capitalization capitalCamel(String capitalCamel) { * Get smallSnake * @return smallSnake **/ - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { return smallSnake; @@ -123,7 +123,7 @@ public String getSmallSnake() { /** * Set smallSnake */ - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; @@ -138,7 +138,7 @@ public Capitalization smallSnake(String smallSnake) { * Get capitalSnake * @return capitalSnake **/ - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { return capitalSnake; @@ -147,7 +147,7 @@ public String getCapitalSnake() { /** * Set capitalSnake */ - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; @@ -162,7 +162,7 @@ public Capitalization capitalSnake(String capitalSnake) { * Get scAETHFlowPoints * @return scAETHFlowPoints **/ - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { return scAETHFlowPoints; @@ -171,7 +171,7 @@ public String getScAETHFlowPoints() { /** * Set scAETHFlowPoints */ - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -186,7 +186,7 @@ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { * Name of the pet * @return ATT_NAME **/ - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { return ATT_NAME; @@ -195,7 +195,7 @@ public String getATTNAME() { /** * Set ATT_NAME */ - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Cat.java index f8ee048670a1..a593ca8bfa31 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Cat.java @@ -48,7 +48,7 @@ public class Cat extends Animal { * Get declawed * @return declawed **/ - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { return declawed; @@ -57,7 +57,7 @@ public Boolean getDeclawed() { /** * Set declawed */ - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java index 28e0277c8ae7..6b62dd162f61 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Category.java @@ -43,7 +43,7 @@ public class Category { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -52,7 +52,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -67,7 +67,7 @@ public Category id(Long id) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -76,7 +76,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 4c315942c2c1..f027cfee5b3c 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -48,7 +48,7 @@ public class ChildWithNullable extends ParentWithNullable { * Get otherProperty * @return otherProperty **/ - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { return otherProperty; @@ -57,7 +57,7 @@ public String getOtherProperty() { /** * Set otherProperty */ - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ClassModel.java index 5001a36e341d..593f911897f0 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -41,7 +41,7 @@ public class ClassModel { * Get propertyClass * @return propertyClass **/ - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; @@ -50,7 +50,7 @@ public String getPropertyClass() { /** * Set propertyClass */ - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Client.java index 74256bdbc46e..67f26adce83f 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Client.java @@ -38,7 +38,7 @@ public class Client { * Get client * @return client **/ - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { return client; @@ -47,7 +47,7 @@ public String getClient() { /** * Set client */ - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 84f363f42802..b6e68f9eee87 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -38,7 +38,7 @@ public class DeprecatedObject { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -47,7 +47,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Dog.java index a40c4f416e02..94052b0f0054 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Dog.java @@ -48,7 +48,7 @@ public class Dog extends Animal { * Get breed * @return breed **/ - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { return breed; @@ -57,7 +57,7 @@ public String getBreed() { /** * Set breed */ - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java index 4c3728a3d099..9235d5c3b0bb 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -110,7 +110,7 @@ public static ArrayEnumEnum fromValue(String value) { * Get justSymbol * @return justSymbol **/ - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { return justSymbol; @@ -119,7 +119,7 @@ public JustSymbolEnum getJustSymbol() { /** * Set justSymbol */ - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -134,7 +134,7 @@ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { * Get arrayEnum * @return arrayEnum **/ - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { return arrayEnum; @@ -143,7 +143,7 @@ public List getArrayEnum() { /** * Set arrayEnum */ - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumTest.java index c896035c6e69..f8de5e433909 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -206,7 +206,7 @@ public static EnumNumberEnum fromValue(Double value) { * Get enumString * @return enumString **/ - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { return enumString; @@ -215,7 +215,7 @@ public EnumStringEnum getEnumString() { /** * Set enumString */ - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; @@ -230,7 +230,7 @@ public EnumTest enumString(EnumStringEnum enumString) { * Get enumStringRequired * @return enumStringRequired **/ - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; @@ -239,7 +239,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { /** * Set enumStringRequired */ - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -254,7 +254,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { * Get enumInteger * @return enumInteger **/ - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { return enumInteger; @@ -263,7 +263,7 @@ public EnumIntegerEnum getEnumInteger() { /** * Set enumInteger */ - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -278,7 +278,7 @@ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { * Get enumNumber * @return enumNumber **/ - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { return enumNumber; @@ -287,7 +287,7 @@ public EnumNumberEnum getEnumNumber() { /** * Set enumNumber */ - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -302,7 +302,7 @@ public EnumTest enumNumber(EnumNumberEnum enumNumber) { * Get outerEnum * @return outerEnum **/ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { return outerEnum; @@ -311,7 +311,7 @@ public OuterEnum getOuterEnum() { /** * Set outerEnum */ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; @@ -326,7 +326,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) { * Get outerEnumInteger * @return outerEnumInteger **/ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; @@ -335,7 +335,7 @@ public OuterEnumInteger getOuterEnumInteger() { /** * Set outerEnumInteger */ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -350,7 +350,7 @@ public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) { * Get outerEnumDefaultValue * @return outerEnumDefaultValue **/ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; @@ -359,7 +359,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { /** * Set outerEnumDefaultValue */ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -374,7 +374,7 @@ public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValu * Get outerEnumIntegerDefaultValue * @return outerEnumIntegerDefaultValue **/ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; @@ -383,7 +383,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { /** * Set outerEnumIntegerDefaultValue */ - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 9229df6b454f..4d12510cc923 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -47,7 +47,7 @@ public class FakeBigDecimalMap200Response { * Get someId * @return someId **/ - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { return someId; @@ -56,7 +56,7 @@ public BigDecimal getSomeId() { /** * Set someId */ - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(BigDecimal someId) { this.someId = someId; @@ -71,7 +71,7 @@ public FakeBigDecimalMap200Response someId(BigDecimal someId) { * Get someMap * @return someMap **/ - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { return someMap; @@ -80,7 +80,7 @@ public Map getSomeMap() { /** * Set someMap */ - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 18dd00075932..51108c634b12 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -47,7 +47,7 @@ public class FileSchemaTestClass { * Get _file * @return _file **/ - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { return _file; @@ -56,7 +56,7 @@ public ModelFile getFile() { /** * Set _file */ - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(ModelFile _file) { this._file = _file; @@ -71,7 +71,7 @@ public FileSchemaTestClass _file(ModelFile _file) { * Get files * @return files **/ - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; @@ -80,7 +80,7 @@ public List getFiles() { /** * Set files */ - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Foo.java index 5a4027297bc9..ffb6ac44d3a1 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Foo.java @@ -38,7 +38,7 @@ public class Foo { * Get bar * @return bar **/ - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -47,7 +47,7 @@ public String getBar() { /** * Set bar */ - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index b7402dc34a80..05736c64a5d4 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -40,7 +40,7 @@ public class FooGetDefaultResponse { * Get string * @return string **/ - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { return string; @@ -49,7 +49,7 @@ public Foo getString() { /** * Set string */ - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(Foo string) { this.string = string; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FormatTest.java index 67d54cf4552d..7494d71f9f8c 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -126,7 +126,7 @@ public class FormatTest { * maximum: 100 * @return integer **/ - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { return integer; @@ -135,7 +135,7 @@ public Integer getInteger() { /** * Set integer */ - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; @@ -152,7 +152,7 @@ public FormatTest integer(Integer integer) { * maximum: 200 * @return int32 **/ - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { return int32; @@ -161,7 +161,7 @@ public Integer getInt32() { /** * Set int32 */ - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; @@ -176,7 +176,7 @@ public FormatTest int32(Integer int32) { * Get int64 * @return int64 **/ - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { return int64; @@ -185,7 +185,7 @@ public Long getInt64() { /** * Set int64 */ - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; @@ -202,7 +202,7 @@ public FormatTest int64(Long int64) { * maximum: 543.2 * @return number **/ - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { return number; @@ -211,7 +211,7 @@ public BigDecimal getNumber() { /** * Set number */ - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; @@ -228,7 +228,7 @@ public FormatTest number(BigDecimal number) { * maximum: 987.6 * @return _float **/ - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { return _float; @@ -237,7 +237,7 @@ public Float getFloat() { /** * Set _float */ - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; @@ -254,7 +254,7 @@ public FormatTest _float(Float _float) { * maximum: 123.4 * @return _double **/ - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { return _double; @@ -263,7 +263,7 @@ public Double getDouble() { /** * Set _double */ - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; @@ -278,7 +278,7 @@ public FormatTest _double(Double _double) { * Get decimal * @return decimal **/ - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { return decimal; @@ -287,7 +287,7 @@ public BigDecimal getDecimal() { /** * Set decimal */ - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(BigDecimal decimal) { this.decimal = decimal; @@ -302,7 +302,7 @@ public FormatTest decimal(BigDecimal decimal) { * Get string * @return string **/ - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { return string; @@ -311,7 +311,7 @@ public String getString() { /** * Set string */ - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; @@ -326,7 +326,7 @@ public FormatTest string(String string) { * Get _byte * @return _byte **/ - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { return _byte; @@ -335,7 +335,7 @@ public byte[] getByte() { /** * Set _byte */ - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; @@ -350,7 +350,7 @@ public FormatTest _byte(byte[] _byte) { * Get binary * @return binary **/ - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { return binary; @@ -359,7 +359,7 @@ public File getBinary() { /** * Set binary */ - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; @@ -374,7 +374,7 @@ public FormatTest binary(File binary) { * Get date * @return date **/ - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Date getDate() { return date; @@ -383,7 +383,7 @@ public Date getDate() { /** * Set date */ - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(Date date) { this.date = date; @@ -398,7 +398,7 @@ public FormatTest date(Date date) { * Get dateTime * @return dateTime **/ - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Date getDateTime() { return dateTime; @@ -407,7 +407,7 @@ public Date getDateTime() { /** * Set dateTime */ - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(Date dateTime) { this.dateTime = dateTime; @@ -422,7 +422,7 @@ public FormatTest dateTime(Date dateTime) { * Get uuid * @return uuid **/ - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; @@ -431,7 +431,7 @@ public UUID getUuid() { /** * Set uuid */ - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; @@ -446,7 +446,7 @@ public FormatTest uuid(UUID uuid) { * Get password * @return password **/ - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { return password; @@ -455,7 +455,7 @@ public String getPassword() { /** * Set password */ - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; @@ -470,7 +470,7 @@ public FormatTest password(String password) { * A string that is a 10 digit number. Can have leading zeros. * @return patternWithDigits **/ - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { return patternWithDigits; @@ -479,7 +479,7 @@ public String getPatternWithDigits() { /** * Set patternWithDigits */ - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -494,7 +494,7 @@ public FormatTest patternWithDigits(String patternWithDigits) { * A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. * @return patternWithDigitsAndDelimiter **/ - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; @@ -503,7 +503,7 @@ public String getPatternWithDigitsAndDelimiter() { /** * Set patternWithDigitsAndDelimiter */ - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 78de93c838b1..470ac2ef007a 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -56,7 +56,7 @@ public HasOnlyReadOnly( * Get bar * @return bar **/ - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -67,7 +67,7 @@ public String getBar() { * Get foo * @return foo **/ - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { return foo; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HealthCheckResult.java index faeae0f51c2d..dbf1362b40ce 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -41,7 +41,7 @@ public class HealthCheckResult { * Get nullableMessage * @return nullableMessage **/ - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNullableMessage() { return nullableMessage; @@ -50,7 +50,7 @@ public String getNullableMessage() { /** * Set nullableMessage */ - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNullableMessage(String nullableMessage) { this.nullableMessage = nullableMessage; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MapTest.java index 5adaa6bb314f..fbc6f5f9082d 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MapTest.java @@ -87,7 +87,7 @@ public static InnerEnum fromValue(String value) { * Get mapMapOfString * @return mapMapOfString **/ - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { return mapMapOfString; @@ -96,7 +96,7 @@ public Map> getMapMapOfString() { /** * Set mapMapOfString */ - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -119,7 +119,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * Get mapOfEnumString * @return mapOfEnumString **/ - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { return mapOfEnumString; @@ -128,7 +128,7 @@ public Map getMapOfEnumString() { /** * Set mapOfEnumString */ - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -151,7 +151,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * Get directMap * @return directMap **/ - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { return directMap; @@ -160,7 +160,7 @@ public Map getDirectMap() { /** * Set directMap */ - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; @@ -183,7 +183,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * Get indirectMap * @return indirectMap **/ - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { return indirectMap; @@ -192,7 +192,7 @@ public Map getIndirectMap() { /** * Set indirectMap */ - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 78060d4ef767..17df9b11fa9a 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -53,7 +53,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass { * Get uuid * @return uuid **/ - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; @@ -62,7 +62,7 @@ public UUID getUuid() { /** * Set uuid */ - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; @@ -77,7 +77,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { * Get dateTime * @return dateTime **/ - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Date getDateTime() { return dateTime; @@ -86,7 +86,7 @@ public Date getDateTime() { /** * Set dateTime */ - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(Date dateTime) { this.dateTime = dateTime; @@ -101,7 +101,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { * Get map * @return map **/ - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { return map; @@ -110,7 +110,7 @@ public Map getMap() { /** * Set map */ - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Model200Response.java index 56557b9ab1e2..3a5666f20a57 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -47,7 +47,7 @@ public class Model200Response { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { return name; @@ -56,7 +56,7 @@ public Integer getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; @@ -71,7 +71,7 @@ public Model200Response name(Integer name) { * Get propertyClass * @return propertyClass **/ - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; @@ -80,7 +80,7 @@ public String getPropertyClass() { /** * Set propertyClass */ - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 8539f1173a92..fc6cade466f6 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -49,7 +49,7 @@ public class ModelApiResponse { * Get code * @return code **/ - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; @@ -58,7 +58,7 @@ public Integer getCode() { /** * Set code */ - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; @@ -73,7 +73,7 @@ public ModelApiResponse code(Integer code) { * Get type * @return type **/ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; @@ -82,7 +82,7 @@ public String getType() { /** * Set type */ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; @@ -97,7 +97,7 @@ public ModelApiResponse type(String type) { * Get message * @return message **/ - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; @@ -106,7 +106,7 @@ public String getMessage() { /** * Set message */ - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelFile.java index 77a5d760f0fa..ec76b64efa88 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -45,7 +45,7 @@ public class ModelFile { * Test capitalization * @return sourceURI **/ - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { return sourceURI; @@ -54,7 +54,7 @@ public String getSourceURI() { /** * Set sourceURI */ - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelList.java index 27814afbd025..617343a24888 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelList.java @@ -39,7 +39,7 @@ public class ModelList { * Get _123list * @return _123list **/ - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { return _123list; @@ -48,7 +48,7 @@ public String get123list() { /** * Set _123list */ - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java index 53c7bc7623c9..ec172ddc8cac 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -42,7 +42,7 @@ public class ModelReturn { * Get _return * @return _return **/ - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { return _return; @@ -51,7 +51,7 @@ public Integer getReturn() { /** * Set _return */ - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Name.java index 81ab3e3d38da..ad3614c95022 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Name.java @@ -68,7 +68,7 @@ public Name( * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { return name; @@ -77,7 +77,7 @@ public Integer getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; @@ -92,7 +92,7 @@ public Name name(Integer name) { * Get snakeCase * @return snakeCase **/ - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { return snakeCase; @@ -103,7 +103,7 @@ public Integer getSnakeCase() { * Get property * @return property **/ - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { return property; @@ -112,7 +112,7 @@ public String getProperty() { /** * Set property */ - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; @@ -127,7 +127,7 @@ public Name property(String property) { * Get _123number * @return _123number **/ - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { return _123number; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NullableClass.java index 059c3597bcb0..45a34fe7d31e 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NullableClass.java @@ -100,7 +100,7 @@ public class NullableClass extends HashMap { * Get integerProp * @return integerProp **/ - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getIntegerProp() { return integerProp; @@ -109,7 +109,7 @@ public Integer getIntegerProp() { /** * Set integerProp */ - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIntegerProp(Integer integerProp) { this.integerProp = integerProp; @@ -124,7 +124,7 @@ public NullableClass integerProp(Integer integerProp) { * Get numberProp * @return numberProp **/ - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNumberProp() { return numberProp; @@ -133,7 +133,7 @@ public BigDecimal getNumberProp() { /** * Set numberProp */ - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumberProp(BigDecimal numberProp) { this.numberProp = numberProp; @@ -148,7 +148,7 @@ public NullableClass numberProp(BigDecimal numberProp) { * Get booleanProp * @return booleanProp **/ - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getBooleanProp() { return booleanProp; @@ -157,7 +157,7 @@ public Boolean getBooleanProp() { /** * Set booleanProp */ - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBooleanProp(Boolean booleanProp) { this.booleanProp = booleanProp; @@ -172,7 +172,7 @@ public NullableClass booleanProp(Boolean booleanProp) { * Get stringProp * @return stringProp **/ - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStringProp() { return stringProp; @@ -181,7 +181,7 @@ public String getStringProp() { /** * Set stringProp */ - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStringProp(String stringProp) { this.stringProp = stringProp; @@ -196,7 +196,7 @@ public NullableClass stringProp(String stringProp) { * Get dateProp * @return dateProp **/ - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Date getDateProp() { return dateProp; @@ -205,7 +205,7 @@ public Date getDateProp() { /** * Set dateProp */ - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateProp(Date dateProp) { this.dateProp = dateProp; @@ -220,7 +220,7 @@ public NullableClass dateProp(Date dateProp) { * Get datetimeProp * @return datetimeProp **/ - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Date getDatetimeProp() { return datetimeProp; @@ -229,7 +229,7 @@ public Date getDatetimeProp() { /** * Set datetimeProp */ - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDatetimeProp(Date datetimeProp) { this.datetimeProp = datetimeProp; @@ -244,7 +244,7 @@ public NullableClass datetimeProp(Date datetimeProp) { * Get arrayNullableProp * @return arrayNullableProp **/ - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNullableProp() { return arrayNullableProp; @@ -253,7 +253,7 @@ public List getArrayNullableProp() { /** * Set arrayNullableProp */ - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNullableProp(List arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; @@ -276,7 +276,7 @@ public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) { * Get arrayAndItemsNullableProp * @return arrayAndItemsNullableProp **/ - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp; @@ -285,7 +285,7 @@ public List getArrayAndItemsNullableProp() { /** * Set arrayAndItemsNullableProp */ - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayAndItemsNullableProp(List arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; @@ -308,7 +308,7 @@ public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullab * Get arrayItemsNullable * @return arrayItemsNullable **/ - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { return arrayItemsNullable; @@ -317,7 +317,7 @@ public List getArrayItemsNullable() { /** * Set arrayItemsNullable */ - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -340,7 +340,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * Get objectNullableProp * @return objectNullableProp **/ - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectNullableProp() { return objectNullableProp; @@ -349,7 +349,7 @@ public Map getObjectNullableProp() { /** * Set objectNullableProp */ - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectNullableProp(Map objectNullableProp) { this.objectNullableProp = objectNullableProp; @@ -372,7 +372,7 @@ public NullableClass putObjectNullablePropItem(String key, Object objectNullable * Get objectAndItemsNullableProp * @return objectAndItemsNullableProp **/ - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp; @@ -381,7 +381,7 @@ public Map getObjectAndItemsNullableProp() { /** * Set objectAndItemsNullableProp */ - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectAndItemsNullableProp(Map objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; @@ -404,7 +404,7 @@ public NullableClass putObjectAndItemsNullablePropItem(String key, Object object * Get objectItemsNullable * @return objectItemsNullable **/ - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { return objectItemsNullable; @@ -413,7 +413,7 @@ public Map getObjectItemsNullable() { /** * Set objectItemsNullable */ - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java index 6a9ffb70ff3c..e2f75eeb1d0c 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -39,7 +39,7 @@ public class NumberOnly { * Get justNumber * @return justNumber **/ - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { return justNumber; @@ -48,7 +48,7 @@ public BigDecimal getJustNumber() { /** * Set justNumber */ - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 226bd6c44c93..66399594b9a8 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -58,7 +58,7 @@ public class ObjectWithDeprecatedFields { * Get uuid * @return uuid **/ - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { return uuid; @@ -67,7 +67,7 @@ public String getUuid() { /** * Set uuid */ - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(String uuid) { this.uuid = uuid; @@ -84,7 +84,7 @@ public ObjectWithDeprecatedFields uuid(String uuid) { * @deprecated **/ @Deprecated - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { return id; @@ -93,7 +93,7 @@ public BigDecimal getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(BigDecimal id) { this.id = id; @@ -110,7 +110,7 @@ public ObjectWithDeprecatedFields id(BigDecimal id) { * @deprecated **/ @Deprecated - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { return deprecatedRef; @@ -119,7 +119,7 @@ public DeprecatedObject getDeprecatedRef() { /** * Set deprecatedRef */ - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -136,7 +136,7 @@ public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) * @deprecated **/ @Deprecated - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { return bars; @@ -145,7 +145,7 @@ public List getBars() { /** * Set bars */ - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java index 271bd025d550..7535ebe03232 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Order.java @@ -99,7 +99,7 @@ public static StatusEnum fromValue(String value) { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -108,7 +108,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -123,7 +123,7 @@ public Order id(Long id) { * Get petId * @return petId **/ - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; @@ -132,7 +132,7 @@ public Long getPetId() { /** * Set petId */ - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; @@ -147,7 +147,7 @@ public Order petId(Long petId) { * Get quantity * @return quantity **/ - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; @@ -156,7 +156,7 @@ public Integer getQuantity() { /** * Set quantity */ - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; @@ -171,7 +171,7 @@ public Order quantity(Integer quantity) { * Get shipDate * @return shipDate **/ - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Date getShipDate() { return shipDate; @@ -180,7 +180,7 @@ public Date getShipDate() { /** * Set shipDate */ - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(Date shipDate) { this.shipDate = shipDate; @@ -195,7 +195,7 @@ public Order shipDate(Date shipDate) { * Order Status * @return status **/ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -204,7 +204,7 @@ public StatusEnum getStatus() { /** * Set status */ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; @@ -219,7 +219,7 @@ public Order status(StatusEnum status) { * Get complete * @return complete **/ - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; @@ -228,7 +228,7 @@ public Boolean getComplete() { /** * Set complete */ - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java index 2c75587b5b34..df7ad0a9bdc2 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -49,7 +49,7 @@ public class OuterComposite { * Get myNumber * @return myNumber **/ - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { return myNumber; @@ -58,7 +58,7 @@ public BigDecimal getMyNumber() { /** * Set myNumber */ - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; @@ -73,7 +73,7 @@ public OuterComposite myNumber(BigDecimal myNumber) { * Get myString * @return myString **/ - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { return myString; @@ -82,7 +82,7 @@ public String getMyString() { /** * Set myString */ - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; @@ -97,7 +97,7 @@ public OuterComposite myString(String myString) { * Get myBoolean * @return myBoolean **/ - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { return myBoolean; @@ -106,7 +106,7 @@ public Boolean getMyBoolean() { /** * Set myBoolean */ - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 8a297681902f..18980e3daa02 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -39,7 +39,7 @@ public class OuterObjectWithEnumProperty { * Get value * @return value **/ - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { return value; @@ -48,7 +48,7 @@ public OuterEnumInteger getValue() { /** * Set value */ - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 657f266e6db5..69ee531af8dc 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -87,7 +87,7 @@ public static TypeEnum fromValue(String value) { * Get type * @return type **/ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; @@ -96,7 +96,7 @@ public TypeEnum getType() { /** * Set type */ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(TypeEnum type) { this.type = type; @@ -111,7 +111,7 @@ public ParentWithNullable type(TypeEnum type) { * Get nullableProperty * @return nullableProperty **/ - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNullableProperty() { return nullableProperty; @@ -120,7 +120,7 @@ public String getNullableProperty() { /** * Set nullableProperty */ - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNullableProperty(String nullableProperty) { this.nullableProperty = nullableProperty; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java index f53d512ee9c2..aead24076af7 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Pet.java @@ -106,7 +106,7 @@ public static StatusEnum fromValue(String value) { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -115,7 +115,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -130,7 +130,7 @@ public Pet id(Long id) { * Get category * @return category **/ - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; @@ -139,7 +139,7 @@ public Category getCategory() { /** * Set category */ - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; @@ -154,7 +154,7 @@ public Pet category(Category category) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -163,7 +163,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; @@ -178,7 +178,7 @@ public Pet name(String name) { * Get photoUrls * @return photoUrls **/ - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { return photoUrls; @@ -188,7 +188,7 @@ public Set getPhotoUrls() { * Set photoUrls */ @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; @@ -211,7 +211,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get tags * @return tags **/ - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; @@ -220,7 +220,7 @@ public List getTags() { /** * Set tags */ - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; @@ -243,7 +243,7 @@ public Pet addTagsItem(Tag tagsItem) { * pet status in the store * @return status **/ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -252,7 +252,7 @@ public StatusEnum getStatus() { /** * Set status */ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 12380db2a61d..8eb2f10ede5c 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -53,7 +53,7 @@ public ReadOnlyFirst( * Get bar * @return bar **/ - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -64,7 +64,7 @@ public String getBar() { * Get baz * @return baz **/ - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { return baz; @@ -73,7 +73,7 @@ public String getBaz() { /** * Set baz */ - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 36ceec5f5489..2fb7d77a2911 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -39,7 +39,7 @@ public class SpecialModelName { * Get $specialPropertyName * @return $specialPropertyName **/ - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { return $specialPropertyName; @@ -48,7 +48,7 @@ public class SpecialModelName { /** * Set $specialPropertyName */ - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java index b7968d2ea3b6..b1cd63a419a7 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/Tag.java @@ -43,7 +43,7 @@ public class Tag { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -52,7 +52,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -67,7 +67,7 @@ public Tag id(Long id) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -76,7 +76,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 27445b752c14..c17dd545f9bf 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -41,7 +41,7 @@ public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap getMapProperty() { return mapProperty; } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -134,14 +134,14 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; @@ -163,7 +163,7 @@ public Object getAnytype1() { return anytype1.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnytype1_JsonNullable() { @@ -190,14 +190,14 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.anno * @return mapWithUndeclaredPropertiesAnytype1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype1() { return mapWithUndeclaredPropertiesAnytype1; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; @@ -214,14 +214,14 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.anno * @return mapWithUndeclaredPropertiesAnytype2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype2() { return mapWithUndeclaredPropertiesAnytype2; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; @@ -246,14 +246,14 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri * @return mapWithUndeclaredPropertiesAnytype3 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesAnytype3() { return mapWithUndeclaredPropertiesAnytype3; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; @@ -270,14 +270,14 @@ public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object empt * @return emptyMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getEmptyMap() { return emptyMap; } - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; @@ -302,14 +302,14 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String * @return mapWithUndeclaredPropertiesString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesString() { return mapWithUndeclaredPropertiesString; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java index 3783966b604b..fd60aae7ef64 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java @@ -73,14 +73,14 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -97,14 +97,14 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java index cbc7844c3b3c..abdbea1e5178 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Apple.java @@ -59,14 +59,14 @@ public Apple cultivar(@javax.annotation.Nullable String cultivar) { * @return cultivar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCultivar() { return cultivar; } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; @@ -83,14 +83,14 @@ public Apple origin(@javax.annotation.Nullable String origin) { * @return origin */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrigin() { return origin; } - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java index 12a05a2e8eaf..66256b9d4588 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AppleReq.java @@ -59,14 +59,14 @@ public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { * @return cultivar */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCultivar() { return cultivar; } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; @@ -83,14 +83,14 @@ public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { * @return mealy */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMealy() { return mealy; } - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index d504f8f96d1e..cbd7897dfb90 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -65,14 +65,14 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { return arrayArrayNumber; } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 2b1b38834885..df1c0ee1f9f3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -65,14 +65,14 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { return arrayNumber; } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java index 66d277bef0ce..34d9d603987f 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -75,14 +75,14 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { return arrayOfString; } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -107,14 +107,14 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -139,14 +139,14 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { return arrayArrayOfModel; } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java index ff6f5e34dbe1..19a479041b67 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Banana.java @@ -55,14 +55,14 @@ public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { * @return lengthCm */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getLengthCm() { return lengthCm; } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java index 8b014a829ae8..5d6abdfbb210 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BananaReq.java @@ -60,14 +60,14 @@ public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { * @return lengthCm */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getLengthCm() { return lengthCm; } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; @@ -84,14 +84,14 @@ public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { * @return sweet */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSweet() { return sweet; } - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java index 5c3f9b09330b..3ee654f026b2 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BasquePig.java @@ -54,14 +54,14 @@ public BasquePig className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java index 7403a68f6ba0..c022944ca4f1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java @@ -79,14 +79,14 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { return smallCamel; } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -103,14 +103,14 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { return capitalCamel; } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -127,14 +127,14 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { return smallSnake; } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -151,14 +151,14 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { return capitalSnake; } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -175,14 +175,14 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { return scAETHFlowPoints; } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,14 +199,14 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { return ATT_NAME; } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java index 9078496ae839..f9f4834d970f 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java @@ -66,14 +66,14 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { return declawed; } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java index eea9d796319f..104fb572ca6c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java @@ -59,14 +59,14 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,14 +83,14 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java index 8ed5fa5a8932..0c7ec860dbc1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ChildCat.java @@ -72,14 +72,14 @@ public ChildCat name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -104,14 +104,14 @@ public ChildCat petType(@javax.annotation.Nullable String petType) { * @return petType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPetType() { return petType; } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java index 451d863bdfa5..5fb4a4ef1b54 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java @@ -54,14 +54,14 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java index 1512b5a11568..1381d00bfe7a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java @@ -54,14 +54,14 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { return client; } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index d5c05a97a6b8..fa2d375eabc6 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -59,14 +59,14 @@ public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -83,14 +83,14 @@ public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String q * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java index 4e8f5919f42e..7532dc7a5408 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DanishPig.java @@ -54,14 +54,14 @@ public DanishPig className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java index a6b3730faf10..f4ff53dd9456 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -56,14 +56,14 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java index 1cecd40a8008..069e5d0c721a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java @@ -65,14 +65,14 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { return breed; } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java index 1d263ac2bae8..38c7ad54402c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Drawing.java @@ -84,14 +84,14 @@ public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { * @return mainShape */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Shape getMainShape() { return mainShape; } - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; @@ -108,14 +108,14 @@ public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { * @return shapeOrNull */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonProperty(value = JSON_PROPERTY_SHAPE_OR_NULL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ShapeOrNull getShapeOrNull() { return shapeOrNull; } - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonProperty(value = JSON_PROPERTY_SHAPE_OR_NULL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; @@ -137,7 +137,7 @@ public NullableShape getNullableShape() { return nullableShape.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableShape_JsonNullable() { @@ -172,14 +172,14 @@ public Drawing addShapesItem(Shape shapesItem) { * @return shapes */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getShapes() { return shapes; } - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java index 10031364f2a8..0f6401130e12 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -131,14 +131,14 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { return justSymbol; } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -163,14 +163,14 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { return arrayEnum; } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java index 8b704a506001..e0fdfa51bf94 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java @@ -280,14 +280,14 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { return enumString; } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -304,14 +304,14 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -328,14 +328,14 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { return enumInteger; } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -352,14 +352,14 @@ public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum e * @return enumIntegerOnly */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerOnlyEnum getEnumIntegerOnly() { return enumIntegerOnly; } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; @@ -376,14 +376,14 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { return enumNumber; } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -405,7 +405,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -432,14 +432,14 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -456,14 +456,14 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -480,14 +480,14 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index ac0a016d0aea..b590da26ec44 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -59,14 +59,14 @@ public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -83,14 +83,14 @@ public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangl * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 5b4577092754..17c9fc191ba7 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -62,14 +62,14 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { return someId; } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -94,14 +94,14 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { return someMap; } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 31c62cdd7287..b09369fb7ce4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -62,14 +62,14 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { return _file; } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -94,14 +94,14 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java index a09e3849c52c..2eaafd4631e4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Foo.java @@ -54,14 +54,14 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 8c0facd8753b..22f7c1d5d7d1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -55,14 +55,14 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { return string; } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java index de1723c7001a..37ecf09d42c1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java @@ -136,14 +136,14 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { return integer; } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -162,14 +162,14 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { return int32; } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -186,14 +186,14 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { return int64; } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -212,14 +212,14 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { return number; } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,14 +238,14 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { return _float; } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -264,14 +264,14 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { return _double; } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -288,14 +288,14 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { return decimal; } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -312,14 +312,14 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { return string; } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -336,14 +336,14 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { return _byte; } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -360,14 +360,14 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { return binary; } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -384,14 +384,14 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { return date; } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -408,14 +408,14 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -432,14 +432,14 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -456,14 +456,14 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { return password; } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -480,14 +480,14 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { return patternWithDigits; } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -504,14 +504,14 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 931d8bb0447d..036633558056 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -68,14 +68,14 @@ public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { * @return petType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPetType() { return petType; } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index e2aa3cac46c3..d3d44bb7fdb2 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -64,7 +64,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -78,7 +78,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { return foo; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 6b7d959040f2..216b4bdd97c4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -62,7 +62,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index d738de96fbe5..82ac5a02e37c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -59,14 +59,14 @@ public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -83,14 +83,14 @@ public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleT * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java index 7839a46a1be8..ef0822c56eae 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java @@ -114,14 +114,14 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { return mapMapOfString; } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -146,14 +146,14 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { return mapOfEnumString; } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -178,14 +178,14 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { return directMap; } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -210,14 +210,14 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { return indirectMap; } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index bb6296af1807..2ac43a0dc902 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -69,14 +69,14 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -93,14 +93,14 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -125,14 +125,14 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { return map; } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java index 97bc402c47bd..6fad88b9b323 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java @@ -59,14 +59,14 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -83,14 +83,14 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java index c918cab6bb4f..f58443a997bb 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -64,14 +64,14 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -88,14 +88,14 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -112,14 +112,14 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java index 4a19e50fca83..2f7d82af8172 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelFile.java @@ -54,14 +54,14 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { return sourceURI; } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java index 239e703d06ab..fda9907db102 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelList.java @@ -54,14 +54,14 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { return _123list; } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java index 4829066a7958..5372f0cfc96a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -54,14 +54,14 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { return _return; } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java index 66525a496d15..6debc78299c3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java @@ -79,14 +79,14 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -98,7 +98,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { return snakeCase; @@ -117,14 +117,14 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { return property; } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -136,7 +136,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { return _123number; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java index 2f622a6a830a..2c549f1f512d 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableClass.java @@ -119,7 +119,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -151,7 +151,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -183,7 +183,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -215,7 +215,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -247,7 +247,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -279,7 +279,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -323,7 +323,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -367,7 +367,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -402,14 +402,14 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { return arrayItemsNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -443,7 +443,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -487,7 +487,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -522,14 +522,14 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { return objectItemsNullable; } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java index 9f4a6c45cfdf..fc6f8b5d763a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -55,14 +55,14 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { return justNumber; } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index a1b3074e4291..32cff4c94383 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -73,14 +73,14 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { return uuid; } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -99,14 +99,14 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -125,14 +125,14 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -159,14 +159,14 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { return bars; } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java index 155ea285634f..12fecb624acf 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java @@ -117,14 +117,14 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -141,14 +141,14 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -165,14 +165,14 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -189,14 +189,14 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { return shipDate; } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -213,14 +213,14 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,14 +237,14 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java index c969dea17b9a..e94ef8f1de66 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -65,14 +65,14 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { return myNumber; } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -89,14 +89,14 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { return myString; } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -113,14 +113,14 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { return myBoolean; } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java index b38d39b23379..61ba97b1d10b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java @@ -120,14 +120,14 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,14 +144,14 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -168,14 +168,14 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -200,14 +200,14 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -232,14 +232,14 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -256,14 +256,14 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 065fba773da4..bb7daf4b0ffe 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -54,14 +54,14 @@ public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 47031055d832..59189bcb5fea 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -62,7 +62,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -81,14 +81,14 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { return baz; } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index cc6be1b0d137..8da0a50952cd 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -59,14 +59,14 @@ public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -83,14 +83,14 @@ public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleTyp * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java index fb6055603498..daa533eda4cf 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -54,14 +54,14 @@ public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 80191829c432..bc068a43b1da 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -59,14 +59,14 @@ public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -83,14 +83,14 @@ public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String qu * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java index b6fa732c1da1..85fd5ace318f 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -59,14 +59,14 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { return $specialPropertyName; } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; @@ -83,14 +83,14 @@ public SpecialModelName specialModelName(@javax.annotation.Nullable String speci * @return specialModelName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSpecialModelName() { return specialModelName; } - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java index 5c91186abf0c..078d3cb8fd15 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java @@ -59,14 +59,14 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,14 +83,14 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 0233d93e9bc7..508f5f706ba8 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -60,14 +60,14 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { return someProperty; } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java index f0def5f75312..8f678ada63f5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -54,14 +54,14 @@ public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleT * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java index 794dcaa5f978..65ce875ca8cb 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java @@ -110,14 +110,14 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -134,14 +134,14 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -158,14 +158,14 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -182,14 +182,14 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -206,14 +206,14 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -230,14 +230,14 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -254,14 +254,14 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -278,14 +278,14 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { return userStatus; } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; @@ -302,14 +302,14 @@ public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWi * @return objectWithNoDeclaredProps */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getObjectWithNoDeclaredProps() { return objectWithNoDeclaredProps; } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; @@ -331,7 +331,7 @@ public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getObjectWithNoDeclaredPropsNullable_JsonNullable() { @@ -363,7 +363,7 @@ public Object getAnyTypeProp() { return anyTypeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypeProp_JsonNullable() { @@ -395,7 +395,7 @@ public Object getAnyTypePropNullable() { return anyTypePropNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypePropNullable_JsonNullable() { diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java index f842259ed5b3..bd23bcc672ce 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Whale.java @@ -64,14 +64,14 @@ public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { * @return hasBaleen */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasBaleen() { return hasBaleen; } - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; @@ -88,14 +88,14 @@ public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { * @return hasTeeth */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasTeeth() { return hasTeeth; } - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; @@ -112,14 +112,14 @@ public Whale className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java index d52025677f0b..411e01101126 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java @@ -102,14 +102,14 @@ public Zebra type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -126,14 +126,14 @@ public Zebra className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java index 8d89df6866a5..c3f06e6efe3e 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -59,14 +59,14 @@ public Category id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -83,14 +83,14 @@ public Category name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47fcf7987697..a395a57a737f 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -64,14 +64,14 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * @return code */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -88,14 +88,14 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -112,14 +112,14 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java index 63108cf78894..c827e6db9956 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -117,14 +117,14 @@ public Order id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -141,14 +141,14 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * @return petId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -165,14 +165,14 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * @return quantity */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -189,14 +189,14 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { return shipDate; } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -213,14 +213,14 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,14 +237,14 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * @return complete */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java index f6d37e54532b..95c09760dd31 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -120,14 +120,14 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -144,14 +144,14 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * @return category */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -168,14 +168,14 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -200,14 +200,14 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -232,14 +232,14 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -258,14 +258,14 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java index fb1de24c04a8..9b9f6209c15c 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -59,14 +59,14 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -83,14 +83,14 @@ public Tag name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java index 9fb1ed2b46e1..19696bf575ab 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -89,14 +89,14 @@ public User id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -113,14 +113,14 @@ public User username(@jakarta.annotation.Nullable String username) { * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -137,14 +137,14 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * @return firstName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -161,14 +161,14 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * @return lastName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -185,14 +185,14 @@ public User email(@jakarta.annotation.Nullable String email) { * @return email */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -209,14 +209,14 @@ public User password(@jakarta.annotation.Nullable String password) { * @return password */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -233,14 +233,14 @@ public User phone(@jakarta.annotation.Nullable String phone) { * @return phone */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -257,14 +257,14 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * @return userStatus */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { return userStatus; } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 49f661c4ef24..22eeaf9a7578 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -104,14 +104,14 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { return mapProperty; } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -136,14 +136,14 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { return mapOfMapProperty; } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; @@ -165,7 +165,7 @@ public Object getAnytype1() { return anytype1.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnytype1_JsonNullable() { @@ -192,14 +192,14 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.anno * @return mapWithUndeclaredPropertiesAnytype1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype1() { return mapWithUndeclaredPropertiesAnytype1; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; @@ -216,14 +216,14 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.anno * @return mapWithUndeclaredPropertiesAnytype2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype2() { return mapWithUndeclaredPropertiesAnytype2; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; @@ -248,14 +248,14 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri * @return mapWithUndeclaredPropertiesAnytype3 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesAnytype3() { return mapWithUndeclaredPropertiesAnytype3; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; @@ -272,14 +272,14 @@ public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object empt * @return emptyMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getEmptyMap() { return emptyMap; } - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; @@ -304,14 +304,14 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String * @return mapWithUndeclaredPropertiesString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesString() { return mapWithUndeclaredPropertiesString; } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java index cd1ec8a4a484..e45b71130f3c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java @@ -75,14 +75,14 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -99,14 +99,14 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { return color; } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java index 5c4c6ed03dfa..c2a3676c8f68 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java @@ -61,14 +61,14 @@ public Apple cultivar(@javax.annotation.Nullable String cultivar) { * @return cultivar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCultivar() { return cultivar; } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; @@ -85,14 +85,14 @@ public Apple origin(@javax.annotation.Nullable String origin) { * @return origin */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrigin() { return origin; } - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java index b6eb00b757f5..6c87384b2ca9 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java @@ -61,14 +61,14 @@ public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { * @return cultivar */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCultivar() { return cultivar; } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; @@ -85,14 +85,14 @@ public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { * @return mealy */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMealy() { return mealy; } - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 14b7620863f8..9b0b8be828f4 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -67,14 +67,14 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { return arrayArrayNumber; } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 43edb1b8bf8a..97b355b58990 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -67,14 +67,14 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { return arrayNumber; } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java index 34cf747c2d46..c66a84c35a07 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,14 +77,14 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { return arrayOfString; } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -109,14 +109,14 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { return arrayArrayOfInteger; } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -141,14 +141,14 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { return arrayArrayOfModel; } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java index 41fea114560c..2ef39d87bdc9 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java @@ -57,14 +57,14 @@ public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { * @return lengthCm */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getLengthCm() { return lengthCm; } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java index 2eac6472e4f6..66159756d0f6 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java @@ -62,14 +62,14 @@ public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { * @return lengthCm */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getLengthCm() { return lengthCm; } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; @@ -86,14 +86,14 @@ public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { * @return sweet */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSweet() { return sweet; } - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java index 6bb38b297f8e..006740649100 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java @@ -56,14 +56,14 @@ public BasquePig className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java index 6fa476a244dc..d3df708b7381 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java @@ -81,14 +81,14 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { return smallCamel; } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -105,14 +105,14 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { return capitalCamel; } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -129,14 +129,14 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { return smallSnake; } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -153,14 +153,14 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { return capitalSnake; } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -177,14 +177,14 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { return scAETHFlowPoints; } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -201,14 +201,14 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { return ATT_NAME; } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java index c0524f8e92eb..5581cc6df769 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java @@ -68,14 +68,14 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { return declawed; } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java index 8d118b3e824d..178a5ede9109 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java @@ -61,14 +61,14 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -85,14 +85,14 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java index a2afbae31ba7..0e410465a291 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java @@ -74,14 +74,14 @@ public ChildCat name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -106,14 +106,14 @@ public ChildCat petType(@javax.annotation.Nullable String petType) { * @return petType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPetType() { return petType; } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java index 32b0f2a8b3e2..d7780df6516b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java @@ -56,14 +56,14 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java index 09d797b04470..e109db49d4a8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java @@ -56,14 +56,14 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { return client; } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 81e6650477b1..e34bb045ebab 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -61,14 +61,14 @@ public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -85,14 +85,14 @@ public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String q * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java index fa2efe1fa9a0..0d54335d9dec 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java @@ -56,14 +56,14 @@ public DanishPig className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java index a5960b43eb9e..2b16ac78749b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -58,14 +58,14 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java index 3ac4e5f3afbd..d27f3050d634 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java @@ -67,14 +67,14 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { return breed; } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java index 4e635940328e..bf71bf6e70e8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java @@ -86,14 +86,14 @@ public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { * @return mainShape */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Shape getMainShape() { return mainShape; } - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; @@ -110,14 +110,14 @@ public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { * @return shapeOrNull */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonProperty(value = JSON_PROPERTY_SHAPE_OR_NULL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ShapeOrNull getShapeOrNull() { return shapeOrNull; } - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonProperty(value = JSON_PROPERTY_SHAPE_OR_NULL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; @@ -139,7 +139,7 @@ public NullableShape getNullableShape() { return nullableShape.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableShape_JsonNullable() { @@ -174,14 +174,14 @@ public Drawing addShapesItem(Shape shapesItem) { * @return shapes */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getShapes() { return shapes; } - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java index 689a3c68d1fb..082f172a1227 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,14 +133,14 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { return justSymbol; } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -165,14 +165,14 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { return arrayEnum; } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java index 3f7026b60d94..e5fb788d1df0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java @@ -282,14 +282,14 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { return enumString; } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -306,14 +306,14 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -330,14 +330,14 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { return enumInteger; } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -354,14 +354,14 @@ public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum e * @return enumIntegerOnly */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerOnlyEnum getEnumIntegerOnly() { return enumIntegerOnly; } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; @@ -378,14 +378,14 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { return enumNumber; } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -407,7 +407,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -434,14 +434,14 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { return outerEnumInteger; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -458,14 +458,14 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { return outerEnumDefaultValue; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -482,14 +482,14 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { return outerEnumIntegerDefaultValue; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index 770ce763aa7a..ee4ff2999cd5 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -61,14 +61,14 @@ public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -85,14 +85,14 @@ public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangl * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 8a6ac4345a0c..630ef8f88b0e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -64,14 +64,14 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { return someId; } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -96,14 +96,14 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { return someMap; } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 6bdbe1590b99..66766a396e0f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -64,14 +64,14 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { return _file; } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -96,14 +96,14 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { return files; } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java index 9c667af93193..b91118d5551f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java @@ -56,14 +56,14 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 4194f6cb2871..c935223dd6ba 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -57,14 +57,14 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { return string; } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java index 192c27e80cd9..5e282197f38e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java @@ -138,14 +138,14 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { return integer; } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -164,14 +164,14 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { return int32; } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -188,14 +188,14 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { return int64; } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -214,14 +214,14 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { return number; } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -240,14 +240,14 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { return _float; } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -266,14 +266,14 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { return _double; } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -290,14 +290,14 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { return decimal; } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -314,14 +314,14 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { return string; } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -338,14 +338,14 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { return _byte; } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -362,14 +362,14 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { return binary; } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -386,14 +386,14 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { return date; } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -410,14 +410,14 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -434,14 +434,14 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -458,14 +458,14 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { return password; } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -482,14 +482,14 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { return patternWithDigits; } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -506,14 +506,14 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { return patternWithDigitsAndDelimiter; } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index a797d730f4cd..eaf4a4b12a2c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -70,14 +70,14 @@ public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { * @return petType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPetType() { return petType; } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 92a1fe401524..f2b35871d574 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -66,7 +66,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -80,7 +80,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { return foo; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 0578235c39e0..e79fd8e66617 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -64,7 +64,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index d019b1b87f23..93abd238f97f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -61,14 +61,14 @@ public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -85,14 +85,14 @@ public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleT * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java index 828c1d70d8a2..e43cb165a78f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java @@ -116,14 +116,14 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { return mapMapOfString; } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -148,14 +148,14 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { return mapOfEnumString; } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -180,14 +180,14 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { return directMap; } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -212,14 +212,14 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { return indirectMap; } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index ad82a2c1f8be..73f11aabc760 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,14 +71,14 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { return uuid; } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -95,14 +95,14 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { return dateTime; } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -127,14 +127,14 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { return map; } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java index 14124ff8fcef..a4e48c5c46fb 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java @@ -61,14 +61,14 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -85,14 +85,14 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { return propertyClass; } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 5fd326a90908..42e5766af55c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -66,14 +66,14 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -90,14 +90,14 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -114,14 +114,14 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java index 6fca51fce4fd..b970cde011b5 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelFile.java @@ -56,14 +56,14 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { return sourceURI; } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java index ac97c50ccafa..fee6e4ec982b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelList.java @@ -56,14 +56,14 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { return _123list; } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java index a83d6f6408e1..5bbd397992f2 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -56,14 +56,14 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { return _return; } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java index 80ae78b791aa..4ac44bf65919 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java @@ -81,14 +81,14 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -100,7 +100,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { return snakeCase; @@ -119,14 +119,14 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { return property; } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -138,7 +138,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { return _123number; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java index f4e760fab123..2ea342b91cbe 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java @@ -121,7 +121,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -153,7 +153,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -185,7 +185,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -217,7 +217,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -249,7 +249,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -281,7 +281,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -325,7 +325,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -369,7 +369,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -404,14 +404,14 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { return arrayItemsNullable; } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -445,7 +445,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -489,7 +489,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -524,14 +524,14 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { return objectItemsNullable; } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java index 2304751309ff..ce5f0d3a16d9 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -57,14 +57,14 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { return justNumber; } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index eac3e8579b00..7c6d294ecd01 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -75,14 +75,14 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { return uuid; } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -101,14 +101,14 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -127,14 +127,14 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { return deprecatedRef; } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -161,14 +161,14 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { return bars; } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java index b61f80f7c8f9..f9742e6e39b1 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java @@ -119,14 +119,14 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -143,14 +143,14 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -167,14 +167,14 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -191,14 +191,14 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { return shipDate; } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -215,14 +215,14 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -239,14 +239,14 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java index 1fcf185f0465..29007d6a5d6b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -67,14 +67,14 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { return myNumber; } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -91,14 +91,14 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { return myString; } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -115,14 +115,14 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { return myBoolean; } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java index db02cf0d123d..e107cb2ff9f5 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -122,14 +122,14 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -146,14 +146,14 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -170,14 +170,14 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,14 +202,14 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -234,14 +234,14 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -258,14 +258,14 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 19dceef1bff6..51120b5254fa 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -56,14 +56,14 @@ public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 614a003fe43c..b0c3c72363f8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -64,7 +64,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { return bar; @@ -83,14 +83,14 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { return baz; } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index d8a905d4ff1e..8911dbd28af7 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -61,14 +61,14 @@ public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -85,14 +85,14 @@ public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleTyp * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java index ccf89551f0c9..00c37e3a401f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -56,14 +56,14 @@ public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index b62fc6654d8a..62deb35441bd 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -61,14 +61,14 @@ public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { return shapeType; } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -85,14 +85,14 @@ public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String qu * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { return quadrilateralType; } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java index 1c2100edd187..4cc4c7c55566 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -61,14 +61,14 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { return $specialPropertyName; } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; @@ -85,14 +85,14 @@ public SpecialModelName specialModelName(@javax.annotation.Nullable String speci * @return specialModelName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSpecialModelName() { return specialModelName; } - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java index c6847294be65..e1659060b6df 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -61,14 +61,14 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -85,14 +85,14 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 8615fa68ddbb..cfeb7cbef5f0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -62,14 +62,14 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { return someProperty; } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java index bdf639fc39db..499a84829b1e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -56,14 +56,14 @@ public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleT * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { return triangleType; } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java index 7911ce706268..78bd2e4305ac 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java @@ -112,14 +112,14 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -136,14 +136,14 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -160,14 +160,14 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -184,14 +184,14 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -208,14 +208,14 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -232,14 +232,14 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -256,14 +256,14 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -280,14 +280,14 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { return userStatus; } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; @@ -304,14 +304,14 @@ public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWi * @return objectWithNoDeclaredProps */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getObjectWithNoDeclaredProps() { return objectWithNoDeclaredProps; } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; @@ -333,7 +333,7 @@ public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getObjectWithNoDeclaredPropsNullable_JsonNullable() { @@ -365,7 +365,7 @@ public Object getAnyTypeProp() { return anyTypeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypeProp_JsonNullable() { @@ -397,7 +397,7 @@ public Object getAnyTypePropNullable() { return anyTypePropNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypePropNullable_JsonNullable() { diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java index 0a3cb543b947..55da2d067c89 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java @@ -66,14 +66,14 @@ public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { * @return hasBaleen */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasBaleen() { return hasBaleen; } - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; @@ -90,14 +90,14 @@ public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { * @return hasTeeth */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasTeeth() { return hasTeeth; } - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; @@ -114,14 +114,14 @@ public Whale className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java index 758e13224514..fa8a6ca6683f 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java @@ -104,14 +104,14 @@ public Zebra type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -128,14 +128,14 @@ public Zebra className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { return className; } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index e1ee0706c7b1..5e139136efdf 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -56,7 +56,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 294c1d3cdaf1..72f3ec428ded 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -57,7 +57,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -65,7 +65,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index dbd8bf33ba14..1ef4e0fe24cf 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -56,7 +56,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index a7f638095fb9..a24fdc7a8c73 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -115,7 +115,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -123,7 +123,7 @@ public Map getMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -150,7 +150,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -158,7 +158,7 @@ public Map getMapNumber() { } - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -184,7 +184,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -192,7 +192,7 @@ public Map getMapInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -218,7 +218,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -226,7 +226,7 @@ public Map getMapBoolean() { } - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -253,7 +253,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -261,7 +261,7 @@ public Map> getMapArrayInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -288,7 +288,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -296,7 +296,7 @@ public Map> getMapArrayAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -323,7 +323,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -331,7 +331,7 @@ public Map> getMapMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; @@ -358,7 +358,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -366,7 +366,7 @@ public Map> getMapMapAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -384,7 +384,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -392,7 +392,7 @@ public Object getAnytype1() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -410,7 +410,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -418,7 +418,7 @@ public Object getAnytype2() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -436,7 +436,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -444,7 +444,7 @@ public Object getAnytype3() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8ecf8c4a737e..6d23d383a16f 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -56,7 +56,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index f95aeed78aeb..0c0cd12afb0d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -57,7 +57,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -65,7 +65,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 1539d97cfd37..a1ef2bc902af 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -56,7 +56,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index e9637c427952..ff9221bedb3f 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -56,7 +56,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java index 35c6b38130de..153c9d5b23d4 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java @@ -73,7 +73,7 @@ public Animal className(@javax.annotation.Nonnull String className) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -81,7 +81,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -99,7 +99,7 @@ public Animal color(@javax.annotation.Nullable String color) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -107,7 +107,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 26ed01445efe..176ddc65e3e1 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -66,7 +66,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -74,7 +74,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 35b4240b78e2..0abb9baaff24 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -66,7 +66,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -74,7 +74,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java index a8a0c4b12b56..a2e1db601147 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -75,7 +75,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -83,7 +83,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -110,7 +110,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -118,7 +118,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -145,7 +145,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -153,7 +153,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java index 871a3bc45a5a..d9fd8d20f45d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java @@ -103,7 +103,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { @@ -111,7 +111,7 @@ public KindEnum getKind() { } - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java index f25ca6a66f99..e8bebfd13b9e 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -78,7 +78,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -86,7 +86,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -104,7 +104,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -112,7 +112,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -130,7 +130,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -138,7 +138,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -156,7 +156,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -164,7 +164,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -182,7 +182,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -190,7 +190,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -208,7 +208,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -216,7 +216,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java index ed709c31966d..e6effc92eb41 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java @@ -67,7 +67,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isDeclawed() { @@ -75,7 +75,7 @@ public Boolean isDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java index 7dd75193966a..cac90de6e000 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java @@ -58,7 +58,7 @@ public Category id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -66,7 +66,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -85,7 +85,7 @@ public Category name(@javax.annotation.Nonnull String name) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -93,7 +93,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java index 2983208e7c0a..f9c548de3199 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -53,7 +53,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -61,7 +61,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java index 44ebadd2a849..f26de8431d23 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java @@ -53,7 +53,7 @@ public Client client(@javax.annotation.Nullable String client) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -61,7 +61,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java index b092baf57535..e73c26c3e7d6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java @@ -64,7 +64,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -72,7 +72,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java index c25671d90f78..5df4e3cdbbf4 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -131,7 +131,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -139,7 +139,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -165,7 +165,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -173,7 +173,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java index 4fb0150b7281..9555d3b80198 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -219,7 +219,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -227,7 +227,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -246,7 +246,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -254,7 +254,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -272,7 +272,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -280,7 +280,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -298,7 +298,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -306,7 +306,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -325,7 +325,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -333,7 +333,7 @@ public OuterEnum getOuterEnum() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index ad3a1c257243..9638ba3a52d1 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,7 +63,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -71,7 +71,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -98,7 +98,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<@Valid ModelFile> getFiles() { @@ -106,7 +106,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java index 962e51deb472..a55d59c1e053 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -126,7 +126,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { */ @javax.annotation.Nullable @Min(10) @Max(100) - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -134,7 +134,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -154,7 +154,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { */ @javax.annotation.Nullable @Min(20) @Max(200) - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -162,7 +162,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -180,7 +180,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -188,7 +188,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -210,7 +210,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -218,7 +218,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { */ @javax.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -266,7 +266,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { */ @javax.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -274,7 +274,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -292,7 +292,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { */ @javax.annotation.Nullable @Pattern(regexp="/[a-z]/i") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -300,7 +300,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -319,7 +319,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -327,7 +327,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -346,7 +346,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -354,7 +354,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -374,7 +374,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { @NotNull @Valid - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -382,7 +382,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -401,7 +401,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -409,7 +409,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -428,7 +428,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -436,7 +436,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -455,7 +455,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { @javax.annotation.Nonnull @NotNull @Size(min=10,max=64) - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -463,7 +463,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -482,7 +482,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -490,7 +490,7 @@ public BigDecimal getBigDecimal() { } - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index fd55d0b45c61..f98d5fd128fb 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -51,8 +51,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -65,7 +65,7 @@ public HasOnlyReadOnly( */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -80,7 +80,7 @@ public String getBar() { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java index d617744f80cd..4b3e29cc8158 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java @@ -114,7 +114,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -122,7 +122,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -148,7 +148,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -156,7 +156,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -182,7 +182,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -190,7 +190,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -216,7 +216,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -224,7 +224,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 50045c7bbec4..b4fa4ae066a6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -69,7 +69,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -77,7 +77,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -104,7 +104,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -131,7 +131,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -139,7 +139,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java index def5ec821915..a24ac6aac89b 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -59,7 +59,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -67,7 +67,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -85,7 +85,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -93,7 +93,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index e21ccb9f2f8d..550148ff0073 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -64,7 +64,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -72,7 +72,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -90,7 +90,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -98,7 +98,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -116,7 +116,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -124,7 +124,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java index ab94179544ee..5fe5b0be8a1b 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelFile.java @@ -54,7 +54,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -62,7 +62,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java index 23c3f5f4a6e5..edd49bc08f62 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelList.java @@ -54,7 +54,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -62,7 +62,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java index d18dccabbf63..58ffe2e3e33f 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -54,7 +54,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -62,7 +62,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java index 0a40476e51a9..ab4e804aae1a 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java @@ -60,8 +60,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -81,7 +81,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -89,7 +89,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -101,7 +101,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -122,7 +122,7 @@ public Name property(@javax.annotation.Nullable String property) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -130,7 +130,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -142,7 +142,7 @@ public void setProperty(@javax.annotation.Nullable String property) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java index 259a5c77561b..0d7dac9e078b 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -55,7 +55,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -63,7 +63,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java index 4dc5cb0d53b0..70eefa3d6931 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java @@ -116,7 +116,7 @@ public Order id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -124,7 +124,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -142,7 +142,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -150,7 +150,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -168,7 +168,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -176,7 +176,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -195,7 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -203,7 +203,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -221,7 +221,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -229,7 +229,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -247,7 +247,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isComplete() { @@ -255,7 +255,7 @@ public Boolean isComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java index ea7ca6ce7cc7..3a1d9b030d04 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -65,7 +65,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -73,7 +73,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -91,7 +91,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -99,7 +99,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -117,7 +117,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isMyBoolean() { @@ -125,7 +125,7 @@ public Boolean isMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java index 2f382ea928d8..a01953d4f534 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java @@ -123,7 +123,7 @@ public Pet id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -131,7 +131,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -150,7 +150,7 @@ public Pet category(@javax.annotation.Nullable Category category) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -158,7 +158,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -177,7 +177,7 @@ public Pet name(@javax.annotation.Nonnull String name) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -185,7 +185,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -212,7 +212,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -221,7 +221,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -248,7 +248,7 @@ public Pet addTagsItem(Tag tagsItem) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<@Valid Tag> getTags() { @@ -256,7 +256,7 @@ public Pet addTagsItem(Tag tagsItem) { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; @@ -274,7 +274,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -282,7 +282,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 98ef88193a89..c32ede66fc2a 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -50,7 +50,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -62,7 +62,7 @@ public ReadOnlyFirst( */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -83,7 +83,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -91,7 +91,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 4893e577f56c..1c7699c3db4b 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -54,7 +54,7 @@ public SpecialModelName() { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -62,7 +62,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java index fb6758c7c31b..d382389c89a2 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java @@ -58,7 +58,7 @@ public Tag id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -66,7 +66,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -84,7 +84,7 @@ public Tag name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -92,7 +92,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 13b1701514f7..f31505437096 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -78,7 +78,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -86,7 +86,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -106,7 +106,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -114,7 +114,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -133,7 +133,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -141,7 +141,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -160,7 +160,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean isBoolItem() { @@ -168,7 +168,7 @@ public Boolean isBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -195,7 +195,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -203,7 +203,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 238572385ad2..8e4c66770d80 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -83,7 +83,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -91,7 +91,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -111,7 +111,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -119,7 +119,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -138,7 +138,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -146,7 +146,7 @@ public Float getFloatItem() { } - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -165,7 +165,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -173,7 +173,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -192,7 +192,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean isBoolItem() { @@ -200,7 +200,7 @@ public Boolean isBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -227,7 +227,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @javax.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -235,7 +235,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java index f6a91950e5d6..bf9eb55c3e08 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java @@ -88,7 +88,7 @@ public User id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -96,7 +96,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -114,7 +114,7 @@ public User username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -122,7 +122,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -140,7 +140,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -148,7 +148,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -166,7 +166,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -174,7 +174,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -192,7 +192,7 @@ public User email(@javax.annotation.Nullable String email) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -200,7 +200,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -218,7 +218,7 @@ public User password(@javax.annotation.Nullable String password) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -226,7 +226,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -244,7 +244,7 @@ public User phone(@javax.annotation.Nullable String phone) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -252,7 +252,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -270,7 +270,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -278,7 +278,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java index 5094e5a61f52..de520be8ccda 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java @@ -197,7 +197,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -205,7 +205,7 @@ public String getAttributeString() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -224,7 +224,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -232,7 +232,7 @@ public BigDecimal getAttributeNumber() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -250,7 +250,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -258,7 +258,7 @@ public Integer getAttributeInteger() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -276,7 +276,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isAttributeBoolean() { @@ -284,7 +284,7 @@ public Boolean isAttributeBoolean() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -310,7 +310,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -318,7 +318,7 @@ public List getWrappedArray() { } - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -336,7 +336,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -344,7 +344,7 @@ public String getNameString() { } - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; @@ -363,7 +363,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -371,7 +371,7 @@ public BigDecimal getNameNumber() { } - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -389,7 +389,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -397,7 +397,7 @@ public Integer getNameInteger() { } - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -415,7 +415,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNameBoolean() { @@ -423,7 +423,7 @@ public Boolean isNameBoolean() { } - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -449,7 +449,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -457,7 +457,7 @@ public List getNameArray() { } - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -483,7 +483,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -491,7 +491,7 @@ public List getNameWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -509,7 +509,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -517,7 +517,7 @@ public String getPrefixString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -536,7 +536,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -544,7 +544,7 @@ public BigDecimal getPrefixNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -562,7 +562,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -570,7 +570,7 @@ public Integer getPrefixInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -588,7 +588,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixBoolean() { @@ -596,7 +596,7 @@ public Boolean isPrefixBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -622,7 +622,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -630,7 +630,7 @@ public List getPrefixArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -656,7 +656,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -664,7 +664,7 @@ public List getPrefixWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -682,7 +682,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -690,7 +690,7 @@ public String getNamespaceString() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -709,7 +709,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -717,7 +717,7 @@ public BigDecimal getNamespaceNumber() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -735,7 +735,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -743,7 +743,7 @@ public Integer getNamespaceInteger() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -761,7 +761,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isNamespaceBoolean() { @@ -769,7 +769,7 @@ public Boolean isNamespaceBoolean() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -795,7 +795,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -803,7 +803,7 @@ public List getNamespaceArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -829,7 +829,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -837,7 +837,7 @@ public List getNamespaceWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -855,7 +855,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -863,7 +863,7 @@ public String getPrefixNsString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -882,7 +882,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -890,7 +890,7 @@ public BigDecimal getPrefixNsNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -908,7 +908,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -916,7 +916,7 @@ public Integer getPrefixNsInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -934,7 +934,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isPrefixNsBoolean() { @@ -942,7 +942,7 @@ public Boolean isPrefixNsBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -968,7 +968,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -976,7 +976,7 @@ public List getPrefixNsArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -1002,7 +1002,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -1010,7 +1010,7 @@ public List getPrefixNsWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; diff --git a/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java b/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java index 182819500e4e..c8b4a0c57646 100644 --- a/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java +++ b/samples/client/petstore/java/restclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java @@ -80,14 +80,14 @@ public byte[] getNullableArray() { return nullableArray.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableArray_JsonNullable() { return nullableArray; } - @JsonProperty(JSON_PROPERTY_NULLABLE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_ARRAY, required = false) public void setNullableArray_JsonNullable(JsonNullable nullableArray) { this.nullableArray = nullableArray; } @@ -107,7 +107,7 @@ public ByteArrayObject normalArray(@jakarta.annotation.Nullable byte[] normalArr * @return normalArray */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NORMAL_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getNormalArray() { @@ -115,7 +115,7 @@ public byte[] getNormalArray() { } - @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NORMAL_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNormalArray(@jakarta.annotation.Nullable byte[] normalArray) { this.normalArray = normalArray; @@ -138,14 +138,14 @@ public String getNullableString() { return nullableString.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_STRING) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableString_JsonNullable() { return nullableString; } - @JsonProperty(JSON_PROPERTY_NULLABLE_STRING) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_STRING, required = false) public void setNullableString_JsonNullable(JsonNullable nullableString) { this.nullableString = nullableString; } @@ -165,7 +165,7 @@ public ByteArrayObject stringField(@jakarta.annotation.Nullable String stringFie * @return stringField */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING_FIELD) + @JsonProperty(value = JSON_PROPERTY_STRING_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStringField() { @@ -173,7 +173,7 @@ public String getStringField() { } - @JsonProperty(JSON_PROPERTY_STRING_FIELD) + @JsonProperty(value = JSON_PROPERTY_STRING_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStringField(@jakarta.annotation.Nullable String stringField) { this.stringField = stringField; @@ -190,7 +190,7 @@ public ByteArrayObject intField(@jakarta.annotation.Nullable BigDecimal intField * @return intField */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT_FIELD) + @JsonProperty(value = JSON_PROPERTY_INT_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getIntField() { @@ -198,7 +198,7 @@ public BigDecimal getIntField() { } - @JsonProperty(JSON_PROPERTY_INT_FIELD) + @JsonProperty(value = JSON_PROPERTY_INT_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIntField(@jakarta.annotation.Nullable BigDecimal intField) { this.intField = intField; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b76f213803d4..78de2d4bd385 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -66,7 +66,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -74,7 +74,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -100,7 +100,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -108,7 +108,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 899144ebff6a..37d0f02647dd 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -57,7 +57,7 @@ public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -65,7 +65,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -83,7 +83,7 @@ public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefTy */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -91,7 +91,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java index 6961bea23a1e..35006080c8cd 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java @@ -69,7 +69,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -77,7 +77,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -95,7 +95,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -103,7 +103,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 28c17b82e3c9..828ac5d5510a 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -63,7 +63,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -71,7 +71,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index d2317cddaa6e..72d800a782b3 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -63,7 +63,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -71,7 +71,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java index d59d74aff6a6..a92d75e22427 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -73,7 +73,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -81,7 +81,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -107,7 +107,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -115,7 +115,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -141,7 +141,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -149,7 +149,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java index 06736234c84c..42aab96c9776 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -76,7 +76,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -84,7 +84,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -102,7 +102,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -110,7 +110,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -128,7 +128,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -136,7 +136,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -154,7 +154,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -162,7 +162,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -180,7 +180,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -188,7 +188,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -206,7 +206,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Name of the pet ") - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -214,7 +214,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java index 7f64775e9310..bddff7ea50ad 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java @@ -62,7 +62,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -70,7 +70,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java index 3bf9e6ba18b2..7903dd497c9d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -56,7 +56,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java index a200e9e71207..9c81e3b7d9f7 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -63,7 +63,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -71,7 +71,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java index 6594b8a81407..8f06d75ac937 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -52,7 +52,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -60,7 +60,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java index 08b47be84d82..5f5d454b9d14 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Client.java @@ -51,7 +51,7 @@ public Client client(@jakarta.annotation.Nullable String client) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -59,7 +59,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java index ab553f556a59..19443ccd7361 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -53,7 +53,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -61,7 +61,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java index d723acf0dfd3..780cd1406cf7 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java @@ -62,7 +62,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -70,7 +70,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index 8d3e0ad4761d..e826d8a8faef 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -129,7 +129,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -137,7 +137,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -163,7 +163,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -171,7 +171,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index 0b4febd30a42..73abd4d8aef2 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -239,7 +239,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -247,7 +247,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -265,7 +265,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -273,7 +273,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -291,7 +291,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -299,7 +299,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -317,7 +317,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -325,7 +325,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -349,14 +349,14 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } @@ -377,7 +377,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -385,7 +385,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -403,7 +403,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -411,7 +411,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -429,7 +429,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -437,7 +437,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 216131a443b3..1318b1d2fae9 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -60,7 +60,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -68,7 +68,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -94,7 +94,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -102,7 +102,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index a2a533b8ca8e..58e50940313b 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -60,7 +60,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -68,7 +68,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -94,7 +94,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -102,7 +102,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java index a87cc8312cd8..0eb6ab23e9e9 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java @@ -51,7 +51,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -59,7 +59,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 7f366c2b6b92..afa3697a0a52 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -53,7 +53,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -61,7 +61,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java index 9fa53df387e2..278178683cb5 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -134,7 +134,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -142,7 +142,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -162,7 +162,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -170,7 +170,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -188,7 +188,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -196,7 +196,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; @@ -216,7 +216,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -224,7 +224,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; @@ -244,7 +244,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -252,7 +252,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; @@ -272,7 +272,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -280,7 +280,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -298,7 +298,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -306,7 +306,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -324,7 +324,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -332,7 +332,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable String string) { this.string = string; @@ -350,7 +350,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -358,7 +358,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -376,7 +376,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -384,7 +384,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -402,7 +402,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -410,7 +410,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; @@ -428,7 +428,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -436,7 +436,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -454,7 +454,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { */ @jakarta.annotation.Nullable @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -462,7 +462,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -480,7 +480,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -488,7 +488,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; @@ -506,7 +506,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string that is a 10 digit number. Can have leading zeros.") - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,7 +514,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -532,7 +532,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -540,7 +540,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 059ed484d17a..2f24b66c2901 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -49,8 +49,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -63,7 +63,7 @@ public HasOnlyReadOnly( */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public String getBar() { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 25eb05c4adcc..de2d71e17269 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -62,14 +62,14 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) public void setNullableMessage_JsonNullable(JsonNullable nullableMessage) { this.nullableMessage = nullableMessage; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index 02bdbf0e9179..18dd2dea377e 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -111,7 +111,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -119,7 +119,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -145,7 +145,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -153,7 +153,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -179,7 +179,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -187,7 +187,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -213,7 +213,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -221,7 +221,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 658629f95904..0f658d47c758 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -74,7 +74,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -92,7 +92,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -100,7 +100,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -126,7 +126,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -134,7 +134,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java index 201305fe0cc8..c013a3782def 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -58,7 +58,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -66,7 +66,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -84,7 +84,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -92,7 +92,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index de3da16b0bc5..73910d66b9ea 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -62,7 +62,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -70,7 +70,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -88,7 +88,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -96,7 +96,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -114,7 +114,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -122,7 +122,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java index e896bb11b5fc..a544f487e757 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -53,7 +53,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Test capitalization") - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -61,7 +61,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java index afd9fd555e8a..7c28a4e41379 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java @@ -52,7 +52,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -60,7 +60,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java index efab0f552d90..b6c620af10f1 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -53,7 +53,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -61,7 +61,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java index c8deac2d684b..5704f82f4155 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Name.java @@ -59,8 +59,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -79,7 +79,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -87,7 +87,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; @@ -99,7 +99,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -120,7 +120,7 @@ public Name property(@jakarta.annotation.Nullable String property) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -128,7 +128,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; @@ -140,7 +140,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java index b728b80401d2..52ef36b009fe 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java @@ -125,14 +125,14 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } @@ -159,14 +159,14 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { return numberProp; } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } @@ -193,14 +193,14 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } @@ -227,14 +227,14 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { return stringProp; } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } @@ -261,14 +261,14 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { return dateProp; } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } @@ -295,14 +295,14 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) public void setDatetimeProp_JsonNullable(JsonNullable datetimeProp) { this.datetimeProp = datetimeProp; } @@ -341,14 +341,14 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; } @@ -387,14 +387,14 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } @@ -423,7 +423,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -431,7 +431,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -467,14 +467,14 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) public void setObjectNullableProp_JsonNullable(JsonNullable> objectNullableProp) { this.objectNullableProp = objectNullableProp; } @@ -513,14 +513,14 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable> objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } @@ -549,7 +549,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -557,7 +557,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java index db64d2c453aa..6d3fa4b518c3 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -52,7 +52,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -60,7 +60,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index c51ffd9aa205..78fc3ffb63a5 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -71,7 +71,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -79,7 +79,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; @@ -99,7 +99,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) @Deprecated @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -107,7 +107,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -127,7 +127,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep @Deprecated @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -135,7 +135,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -163,7 +163,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @Deprecated @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -171,7 +171,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index 70c28eab2d63..10bc5e85abe2 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -114,7 +114,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -122,7 +122,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -140,7 +140,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -148,7 +148,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -166,7 +166,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -174,7 +174,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -192,7 +192,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -200,7 +200,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -218,7 +218,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -226,7 +226,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -244,7 +244,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -252,7 +252,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java index bb38603d6199..5e894af1a380 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -62,7 +62,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -70,7 +70,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -88,7 +88,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -96,7 +96,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -114,7 +114,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -122,7 +122,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 5fe9a3405882..f2436c6d1c8c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -52,7 +52,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -60,7 +60,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 90608d1d29e1..12be55146782 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -105,7 +105,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -113,7 +113,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; @@ -137,14 +137,14 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) public void setNullableProperty_JsonNullable(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index c51cfdbd0e9d..394a3d989fb6 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -121,7 +121,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -129,7 +129,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -147,7 +147,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -155,7 +155,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -173,7 +173,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { */ @jakarta.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -181,7 +181,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -207,7 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { */ @jakarta.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -216,7 +216,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -242,7 +242,7 @@ public Pet addTagsItem(Tag tagsItem) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -250,7 +250,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -268,7 +268,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -276,7 +276,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index b6726d56cc03..113432d86f36 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -48,7 +48,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -60,7 +60,7 @@ public ReadOnlyFirst( */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -81,7 +81,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -89,7 +89,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java index facdb1dc752b..2eb2923ae38d 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -52,7 +52,7 @@ public SpecialModelName() { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -60,7 +60,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 56883c60ebd4..fd7800fd5cea 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -56,7 +56,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index e6f40c01ceb9..5535699bc2e8 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -55,7 +55,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -63,7 +63,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java index 60428f12e1b7..f4b32dc9988c 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -86,7 +86,7 @@ public User id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -94,7 +94,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -112,7 +112,7 @@ public User username(@jakarta.annotation.Nullable String username) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -120,7 +120,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -138,7 +138,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -146,7 +146,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -164,7 +164,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -172,7 +172,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -190,7 +190,7 @@ public User email(@jakarta.annotation.Nullable String email) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -198,7 +198,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -216,7 +216,7 @@ public User password(@jakarta.annotation.Nullable String password) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -224,7 +224,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -242,7 +242,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -250,7 +250,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -268,7 +268,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -276,7 +276,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 56f1fe0938fd..774d9b02a9b7 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -97,7 +97,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -105,7 +105,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 9eb8a5828740..533bc0516cf4 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -80,7 +80,7 @@ public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefTy * @return singleRefType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -88,7 +88,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java index 29e7a29744b1..047a851fccf7 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { * @return className */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -92,7 +92,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { * @return color */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -100,7 +100,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 11d53ebba68f..14f834bb4965 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 89737c3a11a3..08f6c05b1967 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java index d13ff4b24037..a13d3314b69d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java index bb010e6733b0..e0a48eaef0d1 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * @return smallCamel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * @return capitalCamel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * @return smallSnake */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * @return capitalSnake */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * @return scAETHFlowPoints */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java index 4773aae3302e..b71fd7840dff 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * @return declawed */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -68,7 +68,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java index f2866299d350..9e6c1ab26a73 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java index a87ebb3f8d4b..f8d891cd768a 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other * @return otherProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java index 593b76dba904..db366f297b8c 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * @return propertyClass */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java index df320aff56c2..97b0281e1432 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * @return client */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 4952170c8278..09e2849033ea 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java index fef00ec1ebe5..c36849edc666 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * @return breed */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java index 4b338bd60054..d2038e29e9bf 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * @return justSymbol */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java index 95f2dbb21bc6..01e8d87d5fc9 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,7 +237,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * @return enumString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -245,7 +245,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * @return enumStringRequired */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -287,7 +287,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * @return enumInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,7 +295,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -312,7 +312,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * @return enumNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -320,7 +320,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -343,14 +343,14 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } @@ -370,7 +370,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o * @return outerEnumInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -378,7 +378,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -395,7 +395,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa * @return outerEnumDefaultValue */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -403,7 +403,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -420,7 +420,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE * @return outerEnumIntegerDefaultValue */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -428,7 +428,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index c8aab786b084..ca6f7ea85a54 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim * @return someId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -91,7 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -99,7 +99,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 70d5cbdc8a12..b01a8cc6a650 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * @return _file */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java index c65cfef18961..a1ed20f42d37 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 566afef3ebf9..f5cbca8e2ebe 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { * @return string */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java index 4a2c7b6f1682..74d5fa6d41ee 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * @return integer */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -159,7 +159,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * @return int32 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -167,7 +167,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * @return int64 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; @@ -211,7 +211,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * @return number */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -219,7 +219,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * @return _float */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * @return _double */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -290,7 +290,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { * @return decimal */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -298,7 +298,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -315,7 +315,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * @return string */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -323,7 +323,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable String string) { this.string = string; @@ -340,7 +340,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * @return _byte */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -348,7 +348,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -365,7 +365,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * @return binary */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -373,7 +373,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -390,7 +390,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * @return date */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -398,7 +398,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; @@ -415,7 +415,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * @return dateTime */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -423,7 +423,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -440,7 +440,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -448,7 +448,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -465,7 +465,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * @return password */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -473,7 +473,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; @@ -490,7 +490,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW * @return patternWithDigits */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -498,7 +498,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -515,7 +515,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str * @return patternWithDigitsAndDelimiter */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -523,7 +523,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 54024338b2be..0f6c6317185e 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -48,8 +48,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 0bdb79a0239f..006694645085 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -59,14 +59,14 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) public void setNullableMessage_JsonNullable(JsonNullable nullableMessage) { this.nullableMessage = nullableMessage; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java index 1c1faf293b63..cf04e1a69181 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 8d2192b55888..b60b24e2ead3 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * @return dateTime */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java index 8b2f988e73ad..dc80a7a4b683 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * @return propertyClass */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ce7319bf809e..a0ef10546fc6 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * @return code */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java index 942c8ffced2b..911e26d08ffa 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * @return sourceURI */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java index 8d69575c669c..04776712bced 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * @return _123list */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java index c23b56609afd..58636ff4976a 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * @return _return */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java index f43a96ccb6b4..bd501b554294 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java @@ -57,8 +57,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -76,7 +76,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * @return snakeCase */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * @return property */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * @return _123number */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java index b9b4dff62870..1ede4cad4fd0 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java @@ -123,14 +123,14 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } @@ -156,14 +156,14 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { return numberProp; } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } @@ -189,14 +189,14 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } @@ -222,14 +222,14 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { return stringProp; } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } @@ -255,14 +255,14 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { return dateProp; } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } @@ -288,14 +288,14 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) public void setDatetimeProp_JsonNullable(JsonNullable datetimeProp) { this.datetimeProp = datetimeProp; } @@ -333,14 +333,14 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; } @@ -378,14 +378,14 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } @@ -413,7 +413,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -421,7 +421,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -456,14 +456,14 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) public void setObjectNullableProp_JsonNullable(JsonNullable> objectNullableProp) { this.objectNullableProp = objectNullableProp; } @@ -501,14 +501,14 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable> objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } @@ -536,7 +536,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -544,7 +544,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java index d08ace18e881..2776b239d592 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * @return justNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index a86ef6439426..27f507e48c46 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -104,7 +104,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -123,7 +123,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -131,7 +131,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -158,7 +158,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -166,7 +166,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java index b2447ba61b13..dbdc4d20d43d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * @return petId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * @return quantity */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * @return complete */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java index 2a671305cc95..679413f53253 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * @return myNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * @return myString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * @return myBoolean */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 3344e37f2645..c5a8a9268376 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn * @return value */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 5c13648a7c28..371bceb9b1dc 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -103,7 +103,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,14 +134,14 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) public void setNullableProperty_JsonNullable(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java index 9d7c0474c81d..cae28aba50e4 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * @return category */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 853c6cf7dc52..0ccd91f0f2b6 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -47,7 +47,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * @return baz */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java index 1c2d80cdc2a9..038228de1113 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java index 829ffea7bbf9..dc7c0c785fd7 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 9ceeaef529fd..6fffe0426b98 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot * @return someProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -61,7 +61,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java index 714d378f69e2..1fc9134e7812 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@jakarta.annotation.Nullable String username) { * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * @return firstName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * @return lastName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@jakarta.annotation.Nullable String email) { * @return email */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@jakarta.annotation.Nullable String password) { * @return password */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * @return phone */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * @return userStatus */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index edf88bff7535..80e59a00a54f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -97,7 +97,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -105,7 +105,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 9eb8a5828740..533bc0516cf4 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -80,7 +80,7 @@ public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefTy * @return singleRefType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -88,7 +88,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java index 29e7a29744b1..047a851fccf7 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { * @return className */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -92,7 +92,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { * @return color */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -100,7 +100,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 1ae03dc36297..a9ed579720c5 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f10faf2542f8..b8dbf6692ba9 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java index b66cc36c42b9..9cdd559053c0 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java index bb010e6733b0..e0a48eaef0d1 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * @return smallCamel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * @return capitalCamel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * @return smallSnake */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * @return capitalSnake */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * @return scAETHFlowPoints */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java index 4773aae3302e..b71fd7840dff 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * @return declawed */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -68,7 +68,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java index f2866299d350..9e6c1ab26a73 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index a87ebb3f8d4b..f8d891cd768a 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other * @return otherProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java index 593b76dba904..db366f297b8c 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * @return propertyClass */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java index df320aff56c2..97b0281e1432 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * @return client */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 4952170c8278..09e2849033ea 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java index fef00ec1ebe5..c36849edc666 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * @return breed */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java index 237e564b4e1a..0949c7299f75 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * @return justSymbol */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java index 95f2dbb21bc6..01e8d87d5fc9 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,7 +237,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * @return enumString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -245,7 +245,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * @return enumStringRequired */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -287,7 +287,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * @return enumInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,7 +295,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -312,7 +312,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * @return enumNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -320,7 +320,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -343,14 +343,14 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } @@ -370,7 +370,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o * @return outerEnumInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -378,7 +378,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -395,7 +395,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa * @return outerEnumDefaultValue */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -403,7 +403,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -420,7 +420,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE * @return outerEnumIntegerDefaultValue */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -428,7 +428,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 90107f0a33e8..0d161fc3c29f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim * @return someId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -91,7 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -99,7 +99,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 89ec88c929cb..c2b3699eac84 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * @return _file */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java index c65cfef18961..a1ed20f42d37 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 566afef3ebf9..f5cbca8e2ebe 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { * @return string */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java index 4a2c7b6f1682..74d5fa6d41ee 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * @return integer */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -159,7 +159,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * @return int32 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -167,7 +167,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * @return int64 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; @@ -211,7 +211,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * @return number */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -219,7 +219,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * @return _float */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * @return _double */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -290,7 +290,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { * @return decimal */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -298,7 +298,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -315,7 +315,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * @return string */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -323,7 +323,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable String string) { this.string = string; @@ -340,7 +340,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * @return _byte */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -348,7 +348,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -365,7 +365,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * @return binary */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -373,7 +373,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -390,7 +390,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * @return date */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -398,7 +398,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; @@ -415,7 +415,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * @return dateTime */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -423,7 +423,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -440,7 +440,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -448,7 +448,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -465,7 +465,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * @return password */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -473,7 +473,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; @@ -490,7 +490,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW * @return patternWithDigits */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -498,7 +498,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -515,7 +515,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str * @return patternWithDigitsAndDelimiter */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -523,7 +523,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 54024338b2be..0f6c6317185e 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -48,8 +48,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 0bdb79a0239f..006694645085 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -59,14 +59,14 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) public void setNullableMessage_JsonNullable(JsonNullable nullableMessage) { this.nullableMessage = nullableMessage; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java index ec11b3125994..1429c150511a 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 190f20d0f81a..13749a9b6cdb 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * @return dateTime */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java index 8b2f988e73ad..dc80a7a4b683 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * @return propertyClass */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index ce7319bf809e..a0ef10546fc6 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * @return code */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java index 942c8ffced2b..911e26d08ffa 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * @return sourceURI */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java index 8d69575c669c..04776712bced 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * @return _123list */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java index c23b56609afd..58636ff4976a 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * @return _return */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java index f43a96ccb6b4..bd501b554294 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Name.java @@ -57,8 +57,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -76,7 +76,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * @return snakeCase */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * @return property */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * @return _123number */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java index d72693492a7f..f9bc553c18b0 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -123,14 +123,14 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } @@ -156,14 +156,14 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { return numberProp; } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } @@ -189,14 +189,14 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } @@ -222,14 +222,14 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { return stringProp; } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } @@ -255,14 +255,14 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { return dateProp; } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } @@ -288,14 +288,14 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) public void setDatetimeProp_JsonNullable(JsonNullable datetimeProp) { this.datetimeProp = datetimeProp; } @@ -333,14 +333,14 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; } @@ -378,14 +378,14 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } @@ -413,7 +413,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -421,7 +421,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -456,14 +456,14 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) public void setObjectNullableProp_JsonNullable(JsonNullable> objectNullableProp) { this.objectNullableProp = objectNullableProp; } @@ -501,14 +501,14 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable> objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } @@ -536,7 +536,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -544,7 +544,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java index d08ace18e881..2776b239d592 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * @return justNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 35014d0ccc6a..4917cb11e91f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -104,7 +104,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -123,7 +123,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -131,7 +131,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -158,7 +158,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -166,7 +166,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java index b2447ba61b13..dbdc4d20d43d 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * @return petId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * @return quantity */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * @return complete */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java index 2a671305cc95..679413f53253 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * @return myNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * @return myString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * @return myBoolean */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 3344e37f2645..c5a8a9268376 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn * @return value */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 5c13648a7c28..371bceb9b1dc 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -103,7 +103,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,14 +134,14 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) public void setNullableProperty_JsonNullable(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index 77ae32aae946..642e316bf873 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * @return category */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 853c6cf7dc52..0ccd91f0f2b6 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -47,7 +47,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * @return baz */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index 1c2d80cdc2a9..038228de1113 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java index 829ffea7bbf9..dc7c0c785fd7 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 9ceeaef529fd..6fffe0426b98 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot * @return someProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -61,7 +61,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java index 714d378f69e2..1fc9134e7812 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@jakarta.annotation.Nullable String username) { * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * @return firstName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * @return lastName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@jakarta.annotation.Nullable String email) { * @return email */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@jakarta.annotation.Nullable String password) { * @return password */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * @return phone */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * @return userStatus */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 01e6dd38c2e2..773fc1ab4e61 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -97,7 +97,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -105,7 +105,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 4369abfbfa8c..44f5d5faa6c1 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -80,7 +80,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -88,7 +88,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java index 76d809224eb5..2456fc0ac448 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -92,7 +92,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -100,7 +100,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9f9230f5c51b..e48bf84ca4cc 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 95eb35a262ca..01c9badd8ece 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java index 6e87eafcc512..006c8ce93a21 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java index dec70966d099..dd08bed9aebb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java index 53bed2e41f6b..3debe07d238a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -68,7 +68,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java index d1fc7b09c499..9e1b7316bbfa 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 557f2f88af9a..5eed020a1cf3 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java index 675e9f398283..e8d8b419f6ab 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java index 434d46ad1b64..2d1ad6833b70 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java index fee5fff083d4..478fce069d5a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java index b62b147f96e1..8787d050632b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java index 96da52dd6a11..2d9895cc3874 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java index 69c3f59d7f9b..9373c81107df 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,7 +237,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -245,7 +245,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -287,7 +287,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,7 +295,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -312,7 +312,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -320,7 +320,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -343,14 +343,14 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } @@ -370,7 +370,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -378,7 +378,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -395,7 +395,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -403,7 +403,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -420,7 +420,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -428,7 +428,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 7eca4111f558..c846c711391a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -91,7 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -99,7 +99,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3231a00ed0f3..39bb17b9ea7b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java index 161a8e206d43..d06e5dfe98a7 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index fb1067ffcb00..c0fcd22a6969 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java index 7577b34cb2d0..c0367124adf5 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -159,7 +159,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -167,7 +167,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -211,7 +211,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -219,7 +219,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -290,7 +290,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -298,7 +298,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -315,7 +315,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -323,7 +323,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -340,7 +340,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -348,7 +348,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -365,7 +365,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -373,7 +373,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -390,7 +390,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -398,7 +398,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -415,7 +415,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -423,7 +423,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -440,7 +440,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -448,7 +448,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -465,7 +465,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -473,7 +473,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -490,7 +490,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -498,7 +498,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -515,7 +515,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -523,7 +523,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index fab16c721c1c..75462506e6c8 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -48,8 +48,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 8780c33267c5..7709e89cc9be 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -59,14 +59,14 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) public void setNullableMessage_JsonNullable(JsonNullable nullableMessage) { this.nullableMessage = nullableMessage; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java index 226af5128b2b..94020730a719 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index be9066f8a227..c515e1506f66 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java index f445295ef573..cc0125122612 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 9fce2e1e3bab..4b9ecc77489a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java index b56cda290634..aafab80e041d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java index d0f770be3bdb..2ac93e97b4c5 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java index a5e4c8656d48..2e06a4c7a467 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java index 7c79599ff5d8..ead2b3b3e5f1 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java @@ -57,8 +57,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java index 44dc3d35a5ac..957da40e0afb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NullableClass.java @@ -123,14 +123,14 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } @@ -156,14 +156,14 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { return numberProp; } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } @@ -189,14 +189,14 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } @@ -222,14 +222,14 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { return stringProp; } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } @@ -255,14 +255,14 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { return dateProp; } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } @@ -288,14 +288,14 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) public void setDatetimeProp_JsonNullable(JsonNullable datetimeProp) { this.datetimeProp = datetimeProp; } @@ -333,14 +333,14 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; } @@ -378,14 +378,14 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } @@ -413,7 +413,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -421,7 +421,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -456,14 +456,14 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) public void setObjectNullableProp_JsonNullable(JsonNullable> objectNullableProp) { this.objectNullableProp = objectNullableProp; } @@ -501,14 +501,14 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable> objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } @@ -536,7 +536,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -544,7 +544,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java index 2b2688a79089..264e825134f1 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 027bfe18ab35..0cc1c49da6cc 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -104,7 +104,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -123,7 +123,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -131,7 +131,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -158,7 +158,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -166,7 +166,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java index 19a6f2e22dd1..075006c47dc6 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java index 7b928ac82f35..14b334e4829a 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index a8d574446886..135239e327cd 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 44d26ee7013f..3715d9705a18 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -103,7 +103,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,14 +134,14 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) public void setNullableProperty_JsonNullable(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index 9c64c19a7c2c..6642f3237661 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 784d47d6a106..eeffca460496 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -47,7 +47,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7e37da197795..59e71d9aff56 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java index fc2ee7bfc564..83ece7141a46 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index b8c473679982..b6f471f25bb2 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -61,7 +61,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java index 4aa0d35c2889..7a457acb78ba 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java index 5a9c45281899..2f55808ebd65 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -62,7 +62,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -70,7 +70,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,7 @@ public Category name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -95,7 +95,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index b1a092209abb..3965edea7df3 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -69,7 +69,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * @return code */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -77,7 +77,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -94,7 +94,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -102,7 +102,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -119,7 +119,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -127,7 +127,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java index 067b163d32b4..215b6e395f59 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -124,7 +124,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -132,7 +132,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -149,7 +149,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * @return petId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -157,7 +157,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -174,7 +174,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * @return quantity */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -182,7 +182,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -199,7 +199,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -207,7 +207,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -224,7 +224,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -232,7 +232,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -249,7 +249,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * @return complete */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -257,7 +257,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java index 9232da8415bd..ad8fe64521f1 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -128,7 +128,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -136,7 +136,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -153,7 +153,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * @return category */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -161,7 +161,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -178,7 +178,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -186,7 +186,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -211,7 +211,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -219,7 +219,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -244,7 +244,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -252,7 +252,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -271,7 +271,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -279,7 +279,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java index 1e5c3f5f2027..b23adc6dc40c 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -62,7 +62,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -70,7 +70,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -95,7 +95,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java index b1f2b94f89eb..5f93ca1b71ce 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -98,7 +98,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -106,7 +106,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -123,7 +123,7 @@ public User username(@jakarta.annotation.Nullable String username) { * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -131,7 +131,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -148,7 +148,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * @return firstName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -156,7 +156,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -173,7 +173,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * @return lastName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -181,7 +181,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -198,7 +198,7 @@ public User email(@jakarta.annotation.Nullable String email) { * @return email */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -206,7 +206,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -223,7 +223,7 @@ public User password(@jakarta.annotation.Nullable String password) { * @return password */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -231,7 +231,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -248,7 +248,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * @return phone */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -256,7 +256,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -273,7 +273,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * @return userStatus */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -281,7 +281,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java index f07ed6f3827a..550ded077343 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -58,7 +58,7 @@ public Category id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -66,7 +66,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -84,7 +84,7 @@ public Category name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -92,7 +92,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 39d5c5617ca0..f0b413d2b970 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -64,7 +64,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -72,7 +72,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -90,7 +90,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -98,7 +98,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -116,7 +116,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -124,7 +124,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java index 69014c229fbf..2e9d3500518a 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -116,7 +116,7 @@ public Order id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -124,7 +124,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -142,7 +142,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -150,7 +150,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -168,7 +168,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -176,7 +176,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -194,7 +194,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -202,7 +202,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -220,7 +220,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -228,7 +228,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -246,7 +246,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -254,7 +254,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java index c45b131e09d5..ff8f48774934 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -120,7 +120,7 @@ public Pet id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -128,7 +128,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -146,7 +146,7 @@ public Pet category(@javax.annotation.Nullable Category category) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -154,7 +154,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -172,7 +172,7 @@ public Pet name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -180,7 +180,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -206,7 +206,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -214,7 +214,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -240,7 +240,7 @@ public Pet addTagsItem(Tag tagsItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -248,7 +248,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -268,7 +268,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { @Deprecated @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -276,7 +276,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 7e984f126f48..3dfb607fc731 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -58,7 +58,7 @@ public Tag id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -66,7 +66,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -84,7 +84,7 @@ public Tag name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -92,7 +92,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java index 95fddc045474..5158eaf8885b 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -88,7 +88,7 @@ public User id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -96,7 +96,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -114,7 +114,7 @@ public User username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -122,7 +122,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -140,7 +140,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -148,7 +148,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -166,7 +166,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -174,7 +174,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -192,7 +192,7 @@ public User email(@javax.annotation.Nullable String email) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -200,7 +200,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -218,7 +218,7 @@ public User password(@javax.annotation.Nullable String password) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -226,7 +226,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -244,7 +244,7 @@ public User phone(@javax.annotation.Nullable String phone) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -252,7 +252,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -270,7 +270,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { */ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -278,7 +278,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java index a9b888dd4cd2..f8c4e529a56c 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -57,7 +57,7 @@ public Category id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,7 +83,7 @@ public Category name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -91,7 +91,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6176c40dadba..997a3e461e6c 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -63,7 +63,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -71,7 +71,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -89,7 +89,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -97,7 +97,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -115,7 +115,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -123,7 +123,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java index 41787142a785..100e757009f7 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -115,7 +115,7 @@ public Order id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -123,7 +123,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -141,7 +141,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -149,7 +149,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -167,7 +167,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -175,7 +175,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -193,7 +193,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -201,7 +201,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -219,7 +219,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -227,7 +227,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -245,7 +245,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -253,7 +253,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 0e128c205cb2..db08e8eda30d 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,7 @@ public Pet category(@javax.annotation.Nullable Category category) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -153,7 +153,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -171,7 +171,7 @@ public Pet name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -179,7 +179,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -205,7 +205,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -213,7 +213,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -239,7 +239,7 @@ public Pet addTagsItem(Tag tagsItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -247,7 +247,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -267,7 +267,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { @Deprecated @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -275,7 +275,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 5216b9cda144..3f85aece796e 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -57,7 +57,7 @@ public Tag id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,7 +83,7 @@ public Tag name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -91,7 +91,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java index c57e57646c12..2b3e483d69b9 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -87,7 +87,7 @@ public User id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -95,7 +95,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -113,7 +113,7 @@ public User username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -121,7 +121,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -139,7 +139,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -147,7 +147,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -165,7 +165,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -173,7 +173,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -191,7 +191,7 @@ public User email(@javax.annotation.Nullable String email) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -199,7 +199,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -217,7 +217,7 @@ public User password(@javax.annotation.Nullable String password) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -225,7 +225,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -243,7 +243,7 @@ public User phone(@javax.annotation.Nullable String phone) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -251,7 +251,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -269,7 +269,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -277,7 +277,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 242d8ca23609..482a138c0d38 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -73,7 +73,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_property") @JacksonXmlElementWrapper(useWrapping = false) @@ -83,7 +83,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_property") @JacksonXmlElementWrapper(useWrapping = false) @@ -110,7 +110,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_of_map_property") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 36eba51343f9..0845f287c3d5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -64,7 +64,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") @@ -73,7 +73,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") public void setUsername(@javax.annotation.Nullable String username) { @@ -91,7 +91,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "SingleRefType") @@ -100,7 +100,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "SingleRefType") public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java index bd3b12b1804d..783832857fff 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java @@ -76,7 +76,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "className") @@ -85,7 +85,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "className") public void setClassName(@javax.annotation.Nonnull String className) { @@ -103,7 +103,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "color") @@ -112,7 +112,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "color") public void setColor(@javax.annotation.Nullable String color) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 177df5610b58..924cd367a4e8 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -69,7 +69,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) @@ -79,7 +79,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index d6f3c47981c6..2ab104858f81 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -69,7 +69,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) @@ -79,7 +79,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ArrayNumber") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java index 13be4100ca53..034a93a516f2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -81,7 +81,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_of_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -91,7 +91,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_of_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -118,7 +118,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_integer") @JacksonXmlElementWrapper(useWrapping = false) @@ -128,7 +128,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_integer") @JacksonXmlElementWrapper(useWrapping = false) @@ -155,7 +155,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_model") @JacksonXmlElementWrapper(useWrapping = false) @@ -165,7 +165,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_array_of_model") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java index c227b022f1d8..acbb13b446ca 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java @@ -87,7 +87,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "smallCamel") @@ -96,7 +96,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "smallCamel") public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { @@ -114,7 +114,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "CapitalCamel") @@ -123,7 +123,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "CapitalCamel") public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { @@ -141,7 +141,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "small_Snake") @@ -150,7 +150,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "small_Snake") public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { @@ -168,7 +168,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Capital_Snake") @@ -177,7 +177,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Capital_Snake") public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { @@ -195,7 +195,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "SCA_ETH_Flow_Points") @@ -204,7 +204,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "SCA_ETH_Flow_Points") public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { @@ -222,7 +222,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ATT_NAME") @@ -231,7 +231,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "ATT_NAME") public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java index c3ae405e068f..23ff83a47582 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java @@ -68,7 +68,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "declawed") @@ -77,7 +77,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "declawed") public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java index 581723fc0d55..8170f1b187dd 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java @@ -63,7 +63,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -72,7 +72,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(@javax.annotation.Nullable Long id) { @@ -90,7 +90,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") @@ -99,7 +99,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") public void setName(@javax.annotation.Nonnull String name) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java index b4baa445d17e..8b6509cb7497 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -69,7 +69,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "otherProperty") @@ -78,7 +78,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "otherProperty") public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java index d75d5dddfcf1..2e8110cefee2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java @@ -57,7 +57,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "_class") @@ -66,7 +66,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "_class") public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java index 3021413ca042..2f91972bcf36 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java @@ -57,7 +57,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "client") @@ -66,7 +66,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "client") public void setClient(@javax.annotation.Nullable String client) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java index b90ba1ce4f91..57691bf0fde7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -59,7 +59,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") @@ -68,7 +68,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") public void setName(@javax.annotation.Nullable String name) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java index 4c8ed978bc48..b13e0a94c174 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java @@ -68,7 +68,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "breed") @@ -77,7 +77,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "breed") public void setBreed(@javax.annotation.Nullable String breed) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java index 6ed3866049ee..e5da7b50a7a1 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -144,7 +144,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "just_symbol") @@ -153,7 +153,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "just_symbol") public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { @@ -179,7 +179,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_enum") @JacksonXmlElementWrapper(useWrapping = false) @@ -189,7 +189,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_enum") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java index 2bdf264bf9af..fd8bda518e1c 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java @@ -270,7 +270,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_string") @@ -279,7 +279,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_string") public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { @@ -297,7 +297,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "enum_string_required") @@ -306,7 +306,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "enum_string_required") public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { @@ -324,7 +324,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_integer") @@ -333,7 +333,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_integer") public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { @@ -351,7 +351,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_number") @@ -360,7 +360,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "enum_number") public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { @@ -384,7 +384,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnum") @@ -412,7 +412,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumInteger") @@ -421,7 +421,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumInteger") public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { @@ -439,7 +439,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumDefaultValue") @@ -448,7 +448,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumDefaultValue") public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { @@ -466,7 +466,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumIntegerDefaultValue") @@ -475,7 +475,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "outerEnumIntegerDefaultValue") public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index e77f92238184..ab4f4b0b7ab4 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -67,7 +67,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someId") @@ -76,7 +76,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someId") public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { @@ -102,7 +102,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someMap") @JacksonXmlElementWrapper(useWrapping = false) @@ -112,7 +112,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someMap") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 1bf99d918592..5ce9247f30f0 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -67,7 +67,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "file") @@ -76,7 +76,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "file") public void setFile(@javax.annotation.Nullable ModelFile _file) { @@ -102,7 +102,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "files") @JacksonXmlElementWrapper(useWrapping = false) @@ -112,7 +112,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "files") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java index 411106f81d3c..464c38350197 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Foo.java @@ -57,7 +57,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") @@ -66,7 +66,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") public void setBar(@javax.annotation.Nullable String bar) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 670fd6be3b71..26535b2afd77 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -59,7 +59,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") @@ -68,7 +68,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") public void setString(@javax.annotation.Nullable Foo string) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java index 583458682cbb..72274f30520b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java @@ -156,7 +156,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "integer") @@ -165,7 +165,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "integer") public void setInteger(@javax.annotation.Nullable Integer integer) { @@ -185,7 +185,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int32") @@ -194,7 +194,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int32") public void setInt32(@javax.annotation.Nullable Integer int32) { @@ -212,7 +212,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int64") @@ -221,7 +221,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "int64") public void setInt64(@javax.annotation.Nullable Long int64) { @@ -241,7 +241,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "number") @@ -250,7 +250,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "number") public void setNumber(@javax.annotation.Nonnull BigDecimal number) { @@ -270,7 +270,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "float") @@ -279,7 +279,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "float") public void setFloat(@javax.annotation.Nullable Float _float) { @@ -299,7 +299,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "double") @@ -308,7 +308,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "double") public void setDouble(@javax.annotation.Nullable Double _double) { @@ -326,7 +326,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "decimal") @@ -335,7 +335,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "decimal") public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { @@ -353,7 +353,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") @@ -362,7 +362,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string") public void setString(@javax.annotation.Nullable String string) { @@ -380,7 +380,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "byte") @@ -389,7 +389,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "byte") public void setByte(@javax.annotation.Nonnull byte[] _byte) { @@ -407,7 +407,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "binary") @@ -416,7 +416,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "binary") public void setBinary(@javax.annotation.Nullable File binary) { @@ -434,7 +434,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "date") @@ -443,7 +443,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "date") public void setDate(@javax.annotation.Nonnull LocalDate date) { @@ -461,7 +461,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") @@ -470,7 +470,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { @@ -488,7 +488,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") @@ -497,7 +497,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") public void setUuid(@javax.annotation.Nullable UUID uuid) { @@ -515,7 +515,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "password") @@ -524,7 +524,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "password") public void setPassword(@javax.annotation.Nonnull String password) { @@ -542,7 +542,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits") @@ -551,7 +551,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits") public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { @@ -569,7 +569,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits_and_delimiter") @@ -578,7 +578,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "pattern_with_digits_and_delimiter") public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 91c183b9106e..b6cb19ab1d88 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -58,7 +58,7 @@ public HasOnlyReadOnly() { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") @@ -73,7 +73,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "foo") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java index e75500ddb99d..a22e31b70776 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -67,7 +67,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "NullableMessage") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java index 2ef7b4272100..78211d03b817 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java @@ -124,7 +124,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_map_of_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -134,7 +134,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_map_of_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -161,7 +161,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_of_enum_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -171,7 +171,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map_of_enum_string") @JacksonXmlElementWrapper(useWrapping = false) @@ -198,7 +198,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "direct_map") @JacksonXmlElementWrapper(useWrapping = false) @@ -208,7 +208,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "direct_map") @JacksonXmlElementWrapper(useWrapping = false) @@ -235,7 +235,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "indirect_map") @JacksonXmlElementWrapper(useWrapping = false) @@ -245,7 +245,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "indirect_map") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index e0ef53a5c0a5..2c01407ff8fc 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -75,7 +75,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") @@ -84,7 +84,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") public void setUuid(@javax.annotation.Nullable UUID uuid) { @@ -102,7 +102,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") @@ -111,7 +111,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "dateTime") public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { @@ -137,7 +137,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map") @JacksonXmlElementWrapper(useWrapping = false) @@ -147,7 +147,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "map") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java index 8bb6b85c8326..7c59aa4dee64 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java @@ -64,7 +64,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") @@ -73,7 +73,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") public void setName(@javax.annotation.Nullable Integer name) { @@ -91,7 +91,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "class") @@ -100,7 +100,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "class") public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 75265236301c..72fdc339cf16 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -70,7 +70,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "code") @@ -79,7 +79,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "code") public void setCode(@javax.annotation.Nullable Integer code) { @@ -97,7 +97,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") @@ -106,7 +106,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") public void setType(@javax.annotation.Nullable String type) { @@ -124,7 +124,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "message") @@ -133,7 +133,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "message") public void setMessage(@javax.annotation.Nullable String message) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java index e56c621e8fd0..416f89fe94fa 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelFile.java @@ -58,7 +58,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "sourceURI") @@ -67,7 +67,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "sourceURI") public void setSourceURI(@javax.annotation.Nullable String sourceURI) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java index e585788deb67..fde96b63116d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelList.java @@ -58,7 +58,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "123-list") @@ -67,7 +67,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "123-list") public void set123list(@javax.annotation.Nullable String _123list) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java index 792eeb6c94bc..4ff53326bc14 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,7 +58,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "return") @@ -67,7 +67,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "return") public void setReturn(@javax.annotation.Nullable Integer _return) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java index 56a9edc536d2..32bed7fb99ff 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java @@ -75,7 +75,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") public void setName(@javax.annotation.Nonnull Integer name) { @@ -96,7 +96,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "snake_case") @@ -117,7 +117,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "property") @@ -126,7 +126,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "property") public void setProperty(@javax.annotation.Nullable String property) { @@ -138,7 +138,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "123Number") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java index f51ea95a1d49..24cb5594c3fc 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NullableClass.java @@ -146,7 +146,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "integer_prop") @@ -180,7 +180,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "number_prop") @@ -214,7 +214,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "boolean_prop") @@ -248,7 +248,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "string_prop") @@ -282,7 +282,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "date_prop") @@ -316,7 +316,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "datetime_prop") @@ -362,7 +362,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) @@ -409,7 +409,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_and_items_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) @@ -446,7 +446,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) @@ -456,7 +456,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "array_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) @@ -493,7 +493,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) @@ -540,7 +540,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_and_items_nullable_prop") @JacksonXmlElementWrapper(useWrapping = false) @@ -577,7 +577,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) @@ -587,7 +587,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "object_items_nullable") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java index ff8bb20ac8ed..36b16a82f79c 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,7 +58,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "JustNumber") @@ -67,7 +67,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "JustNumber") public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index b7363c042b8a..305aac21ad9e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -80,7 +80,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") @@ -89,7 +89,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "uuid") public void setUuid(@javax.annotation.Nullable String uuid) { @@ -109,7 +109,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -118,7 +118,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(@javax.annotation.Nullable BigDecimal id) { @@ -138,7 +138,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "deprecatedRef") @@ -147,7 +147,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "deprecatedRef") public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { @@ -175,7 +175,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bars") @JacksonXmlElementWrapper(useWrapping = false) @@ -185,7 +185,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bars") @JacksonXmlElementWrapper(useWrapping = false) diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java index f46236246c66..1ccc2bd9ea9f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java @@ -131,7 +131,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -140,7 +140,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(@javax.annotation.Nullable Long id) { @@ -158,7 +158,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "petId") @@ -167,7 +167,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "petId") public void setPetId(@javax.annotation.Nullable Long petId) { @@ -185,7 +185,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "quantity") @@ -194,7 +194,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "quantity") public void setQuantity(@javax.annotation.Nullable Integer quantity) { @@ -212,7 +212,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "shipDate") @@ -221,7 +221,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "shipDate") public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { @@ -239,7 +239,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") @@ -248,7 +248,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") public void setStatus(@javax.annotation.Nullable StatusEnum status) { @@ -266,7 +266,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "complete") @@ -275,7 +275,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "complete") public void setComplete(@javax.annotation.Nullable Boolean complete) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java index 28361ae3864e..0e227ada6781 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -70,7 +70,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_number") @@ -79,7 +79,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_number") public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { @@ -97,7 +97,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_string") @@ -106,7 +106,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_string") public void setMyString(@javax.annotation.Nullable String myString) { @@ -124,7 +124,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_boolean") @@ -133,7 +133,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "my_boolean") public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 93d5596d1198..4fefe0603b56 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -58,7 +58,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "value") @@ -67,7 +67,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "value") public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java index d88933b1cfb4..101efbdeac2f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -115,7 +115,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") @@ -124,7 +124,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "type") public void setType(@javax.annotation.Nullable TypeEnum type) { @@ -148,7 +148,7 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "nullableProperty") diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java index 1cf0a2cffca3..fd2f30278a67 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java @@ -139,7 +139,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -148,7 +148,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(@javax.annotation.Nullable Long id) { @@ -166,7 +166,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Category") @@ -175,7 +175,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Category") public void setCategory(@javax.annotation.Nullable Category category) { @@ -193,7 +193,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") @@ -202,7 +202,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "name") public void setName(@javax.annotation.Nonnull String name) { @@ -228,7 +228,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "photoUrl") @JacksonXmlElementWrapper(localName = "photoUrls", useWrapping = true) @@ -239,7 +239,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) @JacksonXmlProperty(localName = "photoUrl") @JacksonXmlElementWrapper(localName = "photoUrls", useWrapping = true) @@ -266,7 +266,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Tag") @JacksonXmlElementWrapper(localName = "tag", useWrapping = true) @@ -276,7 +276,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "Tag") @JacksonXmlElementWrapper(localName = "tag", useWrapping = true) @@ -295,7 +295,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") @@ -304,7 +304,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "status") public void setStatus(@javax.annotation.Nullable StatusEnum status) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index bed675d6c470..7318d3aa2efb 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -57,7 +57,7 @@ public ReadOnlyFirst() { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "bar") @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "baz") @@ -87,7 +87,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "baz") public void setBaz(@javax.annotation.Nullable String baz) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java index 5692a8ffc05a..0180d9b08d52 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -58,7 +58,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "$special[property.name]") @@ -67,7 +67,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "$special[property.name]") public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java index 63deec6aa431..7d2512597fb5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java @@ -63,7 +63,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -72,7 +72,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(@javax.annotation.Nullable Long id) { @@ -90,7 +90,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") @@ -99,7 +99,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "name") public void setName(@javax.annotation.Nullable String name) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 3b9a58e4890e..64966c36c64f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -62,7 +62,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someProperty") @@ -71,7 +71,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "someProperty") public void setSomeProperty(@javax.annotation.Nullable String someProperty) { diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java index ce174a32f859..9ff91f6973f9 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java @@ -99,7 +99,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") @@ -108,7 +108,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "id") public void setId(@javax.annotation.Nullable Long id) { @@ -126,7 +126,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") @@ -135,7 +135,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "username") public void setUsername(@javax.annotation.Nullable String username) { @@ -153,7 +153,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "firstName") @@ -162,7 +162,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "firstName") public void setFirstName(@javax.annotation.Nullable String firstName) { @@ -180,7 +180,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "lastName") @@ -189,7 +189,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "lastName") public void setLastName(@javax.annotation.Nullable String lastName) { @@ -207,7 +207,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "email") @@ -216,7 +216,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "email") public void setEmail(@javax.annotation.Nullable String email) { @@ -234,7 +234,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "password") @@ -243,7 +243,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "password") public void setPassword(@javax.annotation.Nullable String password) { @@ -261,7 +261,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "phone") @@ -270,7 +270,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "phone") public void setPhone(@javax.annotation.Nullable String phone) { @@ -288,7 +288,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "userStatus") @@ -297,7 +297,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @JacksonXmlProperty(localName = "userStatus") public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index d57915554204..25fe9138024f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -72,7 +72,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -80,7 +80,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -105,7 +105,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -113,7 +113,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 0745fd788db2..13fcc5a391c7 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -63,7 +63,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -71,7 +71,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -88,7 +88,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -96,7 +96,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java index e656f84014f8..6fca1d1d2d48 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java @@ -75,7 +75,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -83,7 +83,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -100,7 +100,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -108,7 +108,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 68eaa47867e1..6c667f4b1630 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,7 +68,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -76,7 +76,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 08e45d34fe8a..7685fd169e40 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,7 +68,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -76,7 +76,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java index 75a7a68d82d9..63493fa6c726 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -80,7 +80,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -88,7 +88,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -113,7 +113,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -121,7 +121,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -146,7 +146,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -154,7 +154,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java index 1b196ba18ffe..33761a0eb8a0 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java @@ -86,7 +86,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -94,7 +94,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -111,7 +111,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -119,7 +119,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -136,7 +136,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -144,7 +144,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -161,7 +161,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -169,7 +169,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -186,7 +186,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -194,7 +194,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -211,7 +211,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -219,7 +219,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java index d9f5bdeda776..193241f5e934 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java @@ -68,7 +68,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -76,7 +76,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java index af7da4b3118a..1c7af61053b4 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java @@ -62,7 +62,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -70,7 +70,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -95,7 +95,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java index e71f00c644b0..273810754532 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -69,7 +69,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -77,7 +77,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java index bdd3e146dbba..c32568cd448e 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java @@ -56,7 +56,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -64,7 +64,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java index abc7460a29ec..8c970999d265 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java @@ -56,7 +56,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -64,7 +64,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 447a76daeaeb..fea476cadaa1 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -58,7 +58,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -66,7 +66,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java index be1e97c0b18f..5fa2144cbea5 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java @@ -68,7 +68,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -76,7 +76,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java index a83d6c11f368..73fcd8845c3d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -135,7 +135,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -143,7 +143,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -168,7 +168,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -176,7 +176,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java index 2b8cfa2d739f..b776f50a7869 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java @@ -251,7 +251,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -259,7 +259,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -276,7 +276,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -284,7 +284,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -301,7 +301,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -309,7 +309,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -326,7 +326,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -334,7 +334,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -357,7 +357,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -384,7 +384,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -392,7 +392,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -409,7 +409,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -417,7 +417,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -434,7 +434,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -442,7 +442,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index ccd467ce2676..a56e73a4f001 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -66,7 +66,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -74,7 +74,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -99,7 +99,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -107,7 +107,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index c3648ea18b05..acc073c5dbcd 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -66,7 +66,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -74,7 +74,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -99,7 +99,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -107,7 +107,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java index bbb29bf70e51..9266d04ba8f7 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Foo.java @@ -56,7 +56,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -64,7 +64,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 1d6d2eb9c106..26891b2fb276 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -58,7 +58,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -66,7 +66,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java index f7570a5593e6..08c2f6915102 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java @@ -154,7 +154,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -162,7 +162,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -181,7 +181,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -189,7 +189,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -206,7 +206,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -214,7 +214,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -233,7 +233,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -241,7 +241,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -260,7 +260,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -268,7 +268,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -287,7 +287,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -295,7 +295,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -312,7 +312,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -320,7 +320,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -337,7 +337,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -345,7 +345,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -362,7 +362,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -370,7 +370,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -387,7 +387,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -395,7 +395,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -412,7 +412,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -420,7 +420,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -437,7 +437,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -445,7 +445,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -462,7 +462,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -470,7 +470,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -487,7 +487,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -495,7 +495,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -512,7 +512,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -520,7 +520,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -537,7 +537,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -545,7 +545,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 23c960d80840..5c3c707c5528 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 39f4190d3152..67cd8823790a 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -66,7 +66,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java index 6faa1d336381..815bf57e4f74 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java @@ -119,7 +119,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -127,7 +127,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -152,7 +152,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -160,7 +160,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -185,7 +185,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -193,7 +193,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -218,7 +218,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -226,7 +226,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 2467806f93a9..7b23e5d83834 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -73,7 +73,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -81,7 +81,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -106,7 +106,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -131,7 +131,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -139,7 +139,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java index 4795551603e6..2689a5d2ac38 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java @@ -63,7 +63,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -71,7 +71,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -88,7 +88,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -96,7 +96,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java index b5ed8bc0cd5e..53f9476c1ca4 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -69,7 +69,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -77,7 +77,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -94,7 +94,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -102,7 +102,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -119,7 +119,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -127,7 +127,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java index f96c871d3111..c514bbde62ae 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelFile.java @@ -57,7 +57,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -65,7 +65,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java index 27eef80a4e9c..99043eed4eec 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelList.java @@ -57,7 +57,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -65,7 +65,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java index a66786be5755..f75c6297ec29 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -57,7 +57,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -65,7 +65,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java index 8e88936d6492..fb8a9af54cf2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java @@ -86,7 +86,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -94,7 +94,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -105,7 +105,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -125,7 +125,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -133,7 +133,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -144,7 +144,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java index c5dc6cf09b8d..c42ac07ee879 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NullableClass.java @@ -144,7 +144,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -177,7 +177,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -210,7 +210,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -243,7 +243,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -276,7 +276,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -309,7 +309,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -354,7 +354,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -399,7 +399,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -434,7 +434,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -442,7 +442,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -477,7 +477,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -522,7 +522,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -557,7 +557,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -565,7 +565,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java index 59c0e5c7036d..0614b2dcf73b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -57,7 +57,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -65,7 +65,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index aaf78218292f..05780202b4b9 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -79,7 +79,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -87,7 +87,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -106,7 +106,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -114,7 +114,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -133,7 +133,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -141,7 +141,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -168,7 +168,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -176,7 +176,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java index b3c043ff6851..ed7cf739d160 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java @@ -124,7 +124,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -132,7 +132,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -149,7 +149,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -157,7 +157,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -174,7 +174,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -182,7 +182,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -199,7 +199,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -207,7 +207,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -224,7 +224,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -232,7 +232,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -249,7 +249,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -257,7 +257,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java index 7c3ad3dac7ab..edba33839e2f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -69,7 +69,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -77,7 +77,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -94,7 +94,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -102,7 +102,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -119,7 +119,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -127,7 +127,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 74eea24facd0..e7007add83f2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -57,7 +57,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -65,7 +65,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 0e5b563e2cca..6ebc8691f160 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -111,7 +111,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -119,7 +119,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -142,7 +142,7 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index 0235faf1c895..36b85bc75a55 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -131,7 +131,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -139,7 +139,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -156,7 +156,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -164,7 +164,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -181,7 +181,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -189,7 +189,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -214,7 +214,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -223,7 +223,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -248,7 +248,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -256,7 +256,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -273,7 +273,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -281,7 +281,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 9a8e08ff94b2..f3653c04afa0 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -66,7 +66,7 @@ public ReadOnlyFirst(@JsonProperty(JSON_PROPERTY_BAR) String bar, @JsonProperty( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -86,7 +86,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -94,7 +94,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java index 41dedd77ba06..74eeffc764c7 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,7 +57,7 @@ public SpecialModelName(@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) Lon * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -65,7 +65,7 @@ public SpecialModelName(@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) Lon } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java index 2c8848da5da5..fa47a3127ca2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java @@ -62,7 +62,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -70,7 +70,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -95,7 +95,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 958356694961..b1e4b247a72c 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -61,7 +61,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -69,7 +69,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java index 2cd6c9322dc9..87c10de04ff9 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java @@ -98,7 +98,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -106,7 +106,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -123,7 +123,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -131,7 +131,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -148,7 +148,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -156,7 +156,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -173,7 +173,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -181,7 +181,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -198,7 +198,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -206,7 +206,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -223,7 +223,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -231,7 +231,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -248,7 +248,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -256,7 +256,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -273,7 +273,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -281,7 +281,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 24feb50ff309..ec9fcbf2579f 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -55,7 +55,7 @@ public AdditionalPropertiesAnyType name(@jakarta.annotation.Nullable String name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index e6fdd339e524..b47e8f7a5023 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -56,7 +56,7 @@ public AdditionalPropertiesArray name(@jakarta.annotation.Nullable String name) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index b66bc5c2277a..eb88f2a222fc 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -55,7 +55,7 @@ public AdditionalPropertiesBoolean name(@jakarta.annotation.Nullable String name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 12a9ac9039d3..6fb3b9c3ce09 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -114,7 +114,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -122,7 +122,7 @@ public Map getMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(@jakarta.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -149,7 +149,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -157,7 +157,7 @@ public Map getMapNumber() { } - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(@jakarta.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -183,7 +183,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -191,7 +191,7 @@ public Map getMapInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(@jakarta.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -217,7 +217,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -225,7 +225,7 @@ public Map getMapBoolean() { } - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(@jakarta.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -252,7 +252,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -260,7 +260,7 @@ public Map> getMapArrayInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(@jakarta.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -287,7 +287,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -295,7 +295,7 @@ public Map> getMapArrayAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(@jakarta.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -322,7 +322,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -330,7 +330,7 @@ public Map> getMapMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(@jakarta.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; @@ -357,7 +357,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -365,7 +365,7 @@ public Map> getMapMapAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(@jakarta.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -383,7 +383,7 @@ public AdditionalPropertiesClass anytype1(@jakarta.annotation.Nullable Object an */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -391,7 +391,7 @@ public Object getAnytype1() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(@jakarta.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -409,7 +409,7 @@ public AdditionalPropertiesClass anytype2(@jakarta.annotation.Nullable Object an */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -417,7 +417,7 @@ public Object getAnytype2() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(@jakarta.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -435,7 +435,7 @@ public AdditionalPropertiesClass anytype3(@jakarta.annotation.Nullable Object an */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -443,7 +443,7 @@ public Object getAnytype3() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(@jakarta.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 5d87b096b5fc..baf00deadaa0 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -55,7 +55,7 @@ public AdditionalPropertiesInteger name(@jakarta.annotation.Nullable String name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index cf7f85c42b4d..d286687d7af2 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -56,7 +56,7 @@ public AdditionalPropertiesNumber name(@jakarta.annotation.Nullable String name) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -64,7 +64,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 0c5679817521..07a1dad56de2 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -55,7 +55,7 @@ public AdditionalPropertiesObject name(@jakarta.annotation.Nullable String name) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 7c5100e82a9f..eb087fa6a54e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -55,7 +55,7 @@ public AdditionalPropertiesString name(@jakarta.annotation.Nullable String name) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java index 55c92fadd249..30248aafa25e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java @@ -72,7 +72,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -80,7 +80,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -98,7 +98,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -106,7 +106,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index a94d74245de4..0025e6920f25 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -65,7 +65,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -73,7 +73,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 3ca0ea61fce3..e1c0a9378862 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -65,7 +65,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -73,7 +73,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java index 820f5b225368..416f33120530 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -74,7 +74,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -82,7 +82,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -109,7 +109,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -117,7 +117,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -144,7 +144,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -152,7 +152,7 @@ public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayO } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java index fbe7270c293f..b5c0bb566747 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,7 +102,7 @@ public BigCat kind(@jakarta.annotation.Nullable KindEnum kind) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { @@ -110,7 +110,7 @@ public KindEnum getKind() { } - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(@jakarta.annotation.Nullable KindEnum kind) { this.kind = kind; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java index c5d326f16f18..8a381142e4f8 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,7 +77,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -85,7 +85,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -103,7 +103,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -111,7 +111,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -129,7 +129,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -137,7 +137,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -155,7 +155,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -163,7 +163,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -181,7 +181,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -189,7 +189,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -207,7 +207,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -215,7 +215,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java index 837cadcf8a7e..bef47c3fcba4 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java @@ -66,7 +66,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -74,7 +74,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java index d283446a06aa..63cb6e850427 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java @@ -57,7 +57,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -84,7 +84,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -92,7 +92,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java index a8fea09b4c72..a17bc37ce695 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java @@ -52,7 +52,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -60,7 +60,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java index c90e376b55f9..00437fb62184 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java @@ -52,7 +52,7 @@ public Client client(@jakarta.annotation.Nullable String client) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -60,7 +60,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java index 150e6ff0509e..fb196d343d85 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java @@ -63,7 +63,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -71,7 +71,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java index 3111965bc9b9..73f11a45cd83 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -130,7 +130,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -138,7 +138,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -164,7 +164,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -172,7 +172,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java index a3225f180d63..2e63214f699f 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,7 +218,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -226,7 +226,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -245,7 +245,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -253,7 +253,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -271,7 +271,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -279,7 +279,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -297,7 +297,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -305,7 +305,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -324,7 +324,7 @@ public EnumTest outerEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -332,7 +332,7 @@ public OuterEnum getOuterEnum() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(@jakarta.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 88c48006452a..25f5e6eb7603 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -62,7 +62,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -70,7 +70,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -97,7 +97,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<@Valid ModelFile> getFiles() { @@ -105,7 +105,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List<@Valid ModelFile> files) { this.files = files; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java index 31c52473fcb7..aad6b3217a80 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java @@ -125,7 +125,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { */ @jakarta.annotation.Nullable @Min(10) @Max(100) - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -133,7 +133,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -153,7 +153,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { */ @jakarta.annotation.Nullable @Min(20) @Max(200) - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -161,7 +161,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -179,7 +179,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -187,7 +187,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; @@ -209,7 +209,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2") - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -217,7 +217,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; @@ -237,7 +237,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { */ @jakarta.annotation.Nullable @DecimalMin("54.3") @DecimalMax("987.6") - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -245,7 +245,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { */ @jakarta.annotation.Nullable @DecimalMin("67.8") @DecimalMax("123.4") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -291,7 +291,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { */ @jakarta.annotation.Nullable @Pattern(regexp="/[a-z]/i") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -299,7 +299,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable String string) { this.string = string; @@ -318,7 +318,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -326,7 +326,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -345,7 +345,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -353,7 +353,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -373,7 +373,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { @NotNull @Valid - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -381,7 +381,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; @@ -400,7 +400,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -408,7 +408,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -427,7 +427,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -435,7 +435,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -454,7 +454,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { @jakarta.annotation.Nonnull @NotNull @Size(min=10,max=64) - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -462,7 +462,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; @@ -481,7 +481,7 @@ public FormatTest bigDecimal(@jakarta.annotation.Nullable BigDecimal bigDecimal) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -489,7 +489,7 @@ public BigDecimal getBigDecimal() { } - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(@jakarta.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 5676d4d669b7..3e6e7adf8a20 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -50,8 +50,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -64,7 +64,7 @@ public HasOnlyReadOnly( */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -79,7 +79,7 @@ public String getBar() { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java index d889b61b58e3..9cc93246f239 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java @@ -113,7 +113,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -121,7 +121,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -147,7 +147,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -155,7 +155,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -181,7 +181,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -189,7 +189,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -215,7 +215,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -223,7 +223,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b33039a1c1da..c724e350cf65 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -68,7 +68,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -76,7 +76,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -95,7 +95,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -103,7 +103,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -130,7 +130,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -138,7 +138,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java index 617ca4c8e86b..17ea27c99c45 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java @@ -58,7 +58,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -66,7 +66,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -84,7 +84,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -92,7 +92,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 4b4d8e059ef5..118136a2f96c 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -63,7 +63,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -71,7 +71,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -89,7 +89,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -97,7 +97,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -115,7 +115,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -123,7 +123,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java index 60190106d6ee..d0b112a17a10 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelFile.java @@ -53,7 +53,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -61,7 +61,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java index 2475d341a058..98ebacfd9efb 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelList.java @@ -53,7 +53,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -61,7 +61,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java index 6ee3264789b9..7ae7cbcffa54 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -53,7 +53,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -61,7 +61,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java index f60920627402..2bd3e5492eb2 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java @@ -59,8 +59,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -80,7 +80,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -88,7 +88,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; @@ -100,7 +100,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -121,7 +121,7 @@ public Name property(@jakarta.annotation.Nullable String property) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -129,7 +129,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; @@ -141,7 +141,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java index b3fe88fe6ccc..a2ac58abead2 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -54,7 +54,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -62,7 +62,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java index de7fd78ad083..49a30f7ad99e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java @@ -115,7 +115,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -123,7 +123,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -141,7 +141,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -149,7 +149,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -167,7 +167,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -175,7 +175,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -194,7 +194,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -202,7 +202,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -220,7 +220,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -228,7 +228,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -246,7 +246,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -254,7 +254,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java index f19f97776cb0..4290c145782e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -64,7 +64,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -72,7 +72,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -90,7 +90,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -98,7 +98,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -116,7 +116,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -124,7 +124,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java index 50807a235e00..7fdc844f8522 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java @@ -122,7 +122,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -130,7 +130,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -149,7 +149,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -157,7 +157,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -176,7 +176,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -184,7 +184,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -211,7 +211,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -220,7 +220,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -247,7 +247,7 @@ public Pet addTagsItem(Tag tagsItem) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<@Valid Tag> getTags() { @@ -255,7 +255,7 @@ public Pet addTagsItem(Tag tagsItem) { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; @@ -273,7 +273,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -281,7 +281,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index bde198f2c9d7..aa9a5b04c0f1 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -49,7 +49,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public ReadOnlyFirst( */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -82,7 +82,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -90,7 +90,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java index e540890b87b0..73f86c0b794f 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -53,7 +53,7 @@ public SpecialModelName() { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -61,7 +61,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java index b6339f114da6..9f0e79451b60 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java @@ -57,7 +57,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -65,7 +65,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -83,7 +83,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -91,7 +91,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index b494f6f622cc..918d24154ebe 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -77,7 +77,7 @@ public TypeHolderDefault stringItem(@jakarta.annotation.Nonnull String stringIte @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -85,7 +85,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -105,7 +105,7 @@ public TypeHolderDefault numberItem(@jakarta.annotation.Nonnull BigDecimal numbe @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -113,7 +113,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -132,7 +132,7 @@ public TypeHolderDefault integerItem(@jakarta.annotation.Nonnull Integer integer @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -140,7 +140,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -159,7 +159,7 @@ public TypeHolderDefault boolItem(@jakarta.annotation.Nonnull Boolean boolItem) @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -167,7 +167,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@jakarta.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -194,7 +194,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -202,7 +202,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@jakarta.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 8690d8ae8d78..28b8ac2210a7 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -82,7 +82,7 @@ public TypeHolderExample stringItem(@jakarta.annotation.Nonnull String stringIte @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -90,7 +90,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -110,7 +110,7 @@ public TypeHolderExample numberItem(@jakarta.annotation.Nonnull BigDecimal numbe @NotNull @Valid - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -118,7 +118,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -137,7 +137,7 @@ public TypeHolderExample floatItem(@jakarta.annotation.Nonnull Float floatItem) @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -145,7 +145,7 @@ public Float getFloatItem() { } - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(@jakarta.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -164,7 +164,7 @@ public TypeHolderExample integerItem(@jakarta.annotation.Nonnull Integer integer @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -172,7 +172,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -191,7 +191,7 @@ public TypeHolderExample boolItem(@jakarta.annotation.Nonnull Boolean boolItem) @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -199,7 +199,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@jakarta.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -226,7 +226,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { @jakarta.annotation.Nonnull @NotNull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -234,7 +234,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@jakarta.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java index 66c909d8d20b..6587aaca1662 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java @@ -87,7 +87,7 @@ public User id(@jakarta.annotation.Nullable Long id) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -95,7 +95,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -113,7 +113,7 @@ public User username(@jakarta.annotation.Nullable String username) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -121,7 +121,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -139,7 +139,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -147,7 +147,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -165,7 +165,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -173,7 +173,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -191,7 +191,7 @@ public User email(@jakarta.annotation.Nullable String email) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -199,7 +199,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -217,7 +217,7 @@ public User password(@jakarta.annotation.Nullable String password) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -225,7 +225,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -243,7 +243,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -251,7 +251,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -269,7 +269,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -277,7 +277,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java index 8916fad1acf4..ab284d746cef 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java @@ -196,7 +196,7 @@ public XmlItem attributeString(@jakarta.annotation.Nullable String attributeStri */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -204,7 +204,7 @@ public String getAttributeString() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(@jakarta.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -223,7 +223,7 @@ public XmlItem attributeNumber(@jakarta.annotation.Nullable BigDecimal attribute @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -231,7 +231,7 @@ public BigDecimal getAttributeNumber() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(@jakarta.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -249,7 +249,7 @@ public XmlItem attributeInteger(@jakarta.annotation.Nullable Integer attributeIn */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -257,7 +257,7 @@ public Integer getAttributeInteger() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(@jakarta.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -275,7 +275,7 @@ public XmlItem attributeBoolean(@jakarta.annotation.Nullable Boolean attributeBo */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -283,7 +283,7 @@ public Boolean getAttributeBoolean() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(@jakarta.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -309,7 +309,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -317,7 +317,7 @@ public List getWrappedArray() { } - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(@jakarta.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -335,7 +335,7 @@ public XmlItem nameString(@jakarta.annotation.Nullable String nameString) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -343,7 +343,7 @@ public String getNameString() { } - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(@jakarta.annotation.Nullable String nameString) { this.nameString = nameString; @@ -362,7 +362,7 @@ public XmlItem nameNumber(@jakarta.annotation.Nullable BigDecimal nameNumber) { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -370,7 +370,7 @@ public BigDecimal getNameNumber() { } - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(@jakarta.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -388,7 +388,7 @@ public XmlItem nameInteger(@jakarta.annotation.Nullable Integer nameInteger) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -396,7 +396,7 @@ public Integer getNameInteger() { } - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(@jakarta.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -414,7 +414,7 @@ public XmlItem nameBoolean(@jakarta.annotation.Nullable Boolean nameBoolean) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -422,7 +422,7 @@ public Boolean getNameBoolean() { } - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(@jakarta.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -448,7 +448,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -456,7 +456,7 @@ public List getNameArray() { } - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(@jakarta.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -482,7 +482,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -490,7 +490,7 @@ public List getNameWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(@jakarta.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -508,7 +508,7 @@ public XmlItem prefixString(@jakarta.annotation.Nullable String prefixString) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -516,7 +516,7 @@ public String getPrefixString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(@jakarta.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -535,7 +535,7 @@ public XmlItem prefixNumber(@jakarta.annotation.Nullable BigDecimal prefixNumber @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -543,7 +543,7 @@ public BigDecimal getPrefixNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(@jakarta.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -561,7 +561,7 @@ public XmlItem prefixInteger(@jakarta.annotation.Nullable Integer prefixInteger) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -569,7 +569,7 @@ public Integer getPrefixInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(@jakarta.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -587,7 +587,7 @@ public XmlItem prefixBoolean(@jakarta.annotation.Nullable Boolean prefixBoolean) */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -595,7 +595,7 @@ public Boolean getPrefixBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(@jakarta.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -621,7 +621,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -629,7 +629,7 @@ public List getPrefixArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(@jakarta.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -655,7 +655,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -663,7 +663,7 @@ public List getPrefixWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(@jakarta.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -681,7 +681,7 @@ public XmlItem namespaceString(@jakarta.annotation.Nullable String namespaceStri */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -689,7 +689,7 @@ public String getNamespaceString() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(@jakarta.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -708,7 +708,7 @@ public XmlItem namespaceNumber(@jakarta.annotation.Nullable BigDecimal namespace @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -716,7 +716,7 @@ public BigDecimal getNamespaceNumber() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(@jakarta.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -734,7 +734,7 @@ public XmlItem namespaceInteger(@jakarta.annotation.Nullable Integer namespaceIn */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -742,7 +742,7 @@ public Integer getNamespaceInteger() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(@jakarta.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -760,7 +760,7 @@ public XmlItem namespaceBoolean(@jakarta.annotation.Nullable Boolean namespaceBo */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -768,7 +768,7 @@ public Boolean getNamespaceBoolean() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(@jakarta.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -794,7 +794,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -802,7 +802,7 @@ public List getNamespaceArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(@jakarta.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -828,7 +828,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -836,7 +836,7 @@ public List getNamespaceWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(@jakarta.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -854,7 +854,7 @@ public XmlItem prefixNsString(@jakarta.annotation.Nullable String prefixNsString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -862,7 +862,7 @@ public String getPrefixNsString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(@jakarta.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -881,7 +881,7 @@ public XmlItem prefixNsNumber(@jakarta.annotation.Nullable BigDecimal prefixNsNu @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -889,7 +889,7 @@ public BigDecimal getPrefixNsNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(@jakarta.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -907,7 +907,7 @@ public XmlItem prefixNsInteger(@jakarta.annotation.Nullable Integer prefixNsInte */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -915,7 +915,7 @@ public Integer getPrefixNsInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(@jakarta.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -933,7 +933,7 @@ public XmlItem prefixNsBoolean(@jakarta.annotation.Nullable Boolean prefixNsBool */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -941,7 +941,7 @@ public Boolean getPrefixNsBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(@jakarta.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -967,7 +967,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -975,7 +975,7 @@ public List getPrefixNsArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(@jakarta.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -1001,7 +1001,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -1009,7 +1009,7 @@ public List getPrefixNsWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(@jakarta.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index bee74a4c8118..89864f827112 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -52,7 +52,7 @@ public AdditionalPropertiesAnyType name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 5aba7267a12a..dfd23375dc01 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -53,7 +53,7 @@ public AdditionalPropertiesArray name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -61,7 +61,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8114cd21193f..506a41488de9 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -52,7 +52,7 @@ public AdditionalPropertiesBoolean name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 581c2fbe1407..8044ecbab6ea 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -111,7 +111,7 @@ public AdditionalPropertiesClass putMapStringItem(String key, String mapStringIt * @return mapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapString() { @@ -119,7 +119,7 @@ public Map getMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -144,7 +144,7 @@ public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumb * @return mapNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapNumber() { @@ -152,7 +152,7 @@ public Map getMapNumber() { } - @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MAP_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(@javax.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -177,7 +177,7 @@ public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntege * @return mapInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapInteger() { @@ -185,7 +185,7 @@ public Map getMapInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(@javax.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -210,7 +210,7 @@ public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBoolea * @return mapBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapBoolean() { @@ -218,7 +218,7 @@ public Map getMapBoolean() { } - @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MAP_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(@javax.annotation.Nullable Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -243,7 +243,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -251,7 +251,7 @@ public Map> getMapArrayInteger() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(@javax.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -276,7 +276,7 @@ public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List * @return mapArrayAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayAnytype() { @@ -284,7 +284,7 @@ public Map> getMapArrayAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(@javax.annotation.Nullable Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -309,7 +309,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -317,7 +317,7 @@ public Map> getMapMapString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(@javax.annotation.Nullable Map> mapMapString) { this.mapMapString = mapMapString; @@ -342,7 +342,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -350,7 +350,7 @@ public Map> getMapMapAnytype() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(@javax.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -367,7 +367,7 @@ public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anyt * @return anytype1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype1() { @@ -375,7 +375,7 @@ public Object getAnytype1() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(@javax.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -392,7 +392,7 @@ public AdditionalPropertiesClass anytype2(@javax.annotation.Nullable Object anyt * @return anytype2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype2() { @@ -400,7 +400,7 @@ public Object getAnytype2() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(@javax.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -417,7 +417,7 @@ public AdditionalPropertiesClass anytype3(@javax.annotation.Nullable Object anyt * @return anytype3 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getAnytype3() { @@ -425,7 +425,7 @@ public Object getAnytype3() { } - @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE3, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(@javax.annotation.Nullable Object anytype3) { this.anytype3 = anytype3; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index cd225fac1575..613f96692a46 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -52,7 +52,7 @@ public AdditionalPropertiesInteger name(@javax.annotation.Nullable String name) * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 5ef408e04c4c..0c00ee724427 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -53,7 +53,7 @@ public AdditionalPropertiesNumber name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -61,7 +61,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 3a313e40fe2b..524112e88a91 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -52,7 +52,7 @@ public AdditionalPropertiesObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 4a834585bfe1..7b418b7c87e8 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -52,7 +52,7 @@ public AdditionalPropertiesString name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -60,7 +60,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index e88053cfbca1..eaa5c323d7fe 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -68,7 +68,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -76,7 +76,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -93,7 +93,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -101,7 +101,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9f9230f5c51b..e48bf84ca4cc 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 95eb35a262ca..01c9badd8ece 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index 6e87eafcc512..006c8ce93a21 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index d72c2a445010..cdf37400e42c 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -99,7 +99,7 @@ public BigCat kind(@javax.annotation.Nullable KindEnum kind) { * @return kind */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public KindEnum getKind() { @@ -107,7 +107,7 @@ public KindEnum getKind() { } - @JsonProperty(JSON_PROPERTY_KIND) + @JsonProperty(value = JSON_PROPERTY_KIND, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(@javax.annotation.Nullable KindEnum kind) { this.kind = kind; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java index dec70966d099..dd08bed9aebb 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java index 66109a131e1a..ff3c8f5bc560 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java @@ -63,7 +63,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -71,7 +71,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java index d1fc7b09c499..9e1b7316bbfa 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java index 675e9f398283..e8d8b419f6ab 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java index 434d46ad1b64..2d1ad6833b70 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java index b62b147f96e1..8787d050632b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index 96da52dd6a11..2d9895cc3874 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index f9183223c201..591077e5a260 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -215,7 +215,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -223,7 +223,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -240,7 +240,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -248,7 +248,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -265,7 +265,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -273,7 +273,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -290,7 +290,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -298,7 +298,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -315,7 +315,7 @@ public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) { * @return outerEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnum getOuterEnum() { @@ -323,7 +323,7 @@ public OuterEnum getOuterEnum() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) { this.outerEnum = outerEnum; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3231a00ed0f3..39bb17b9ea7b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index 9bcb85530170..25d42b7f1c3f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -122,7 +122,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -130,7 +130,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -149,7 +149,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -157,7 +157,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -174,7 +174,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -182,7 +182,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -201,7 +201,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -209,7 +209,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -228,7 +228,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -236,7 +236,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -255,7 +255,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -263,7 +263,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -280,7 +280,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -288,7 +288,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -305,7 +305,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -313,7 +313,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -330,7 +330,7 @@ public FormatTest binary(@javax.annotation.Nullable AsyncFile binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AsyncFile getBinary() { @@ -338,7 +338,7 @@ public AsyncFile getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable AsyncFile binary) { this.binary = binary; @@ -355,7 +355,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -363,7 +363,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -380,7 +380,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -388,7 +388,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -405,7 +405,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -413,7 +413,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -430,7 +430,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -438,7 +438,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -455,7 +455,7 @@ public FormatTest bigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { * @return bigDecimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getBigDecimal() { @@ -463,7 +463,7 @@ public BigDecimal getBigDecimal() { } - @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_BIG_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(@javax.annotation.Nullable BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index fab16c721c1c..75462506e6c8 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -48,8 +48,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 226af5128b2b..94020730a719 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index be9066f8a227..c515e1506f66 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index f445295ef573..cc0125122612 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 9fce2e1e3bab..4b9ecc77489a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java index b56cda290634..aafab80e041d 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java index d0f770be3bdb..2ac93e97b4c5 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index a5e4c8656d48..2e06a4c7a467 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java index 7c79599ff5d8..ead2b3b3e5f1 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -57,8 +57,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index 2b2688a79089..264e825134f1 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java index 19a6f2e22dd1..075006c47dc6 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index 7b928ac82f35..14b334e4829a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 9c64c19a7c2c..6642f3237661 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 784d47d6a106..eeffca460496 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -47,7 +47,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index 62f2544da2d3..4d2bf7518e90 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index fc2ee7bfc564..83ece7141a46 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 59435e41e0bd..c34d335d9a53 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -73,7 +73,7 @@ public TypeHolderDefault stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -81,7 +81,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -98,7 +98,7 @@ public TypeHolderDefault numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -106,7 +106,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -123,7 +123,7 @@ public TypeHolderDefault integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -131,7 +131,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -148,7 +148,7 @@ public TypeHolderDefault boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -156,7 +156,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -181,7 +181,7 @@ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -189,7 +189,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 952e5a73f2ef..c170ffebe32b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -78,7 +78,7 @@ public TypeHolderExample stringItem(@javax.annotation.Nonnull String stringItem) * @return stringItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStringItem() { @@ -86,7 +86,7 @@ public String getStringItem() { } - @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonProperty(value = JSON_PROPERTY_STRING_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(@javax.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -103,7 +103,7 @@ public TypeHolderExample numberItem(@javax.annotation.Nonnull BigDecimal numberI * @return numberItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumberItem() { @@ -111,7 +111,7 @@ public BigDecimal getNumberItem() { } - @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonProperty(value = JSON_PROPERTY_NUMBER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -128,7 +128,7 @@ public TypeHolderExample floatItem(@javax.annotation.Nonnull Float floatItem) { * @return floatItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Float getFloatItem() { @@ -136,7 +136,7 @@ public Float getFloatItem() { } - @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonProperty(value = JSON_PROPERTY_FLOAT_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(@javax.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -153,7 +153,7 @@ public TypeHolderExample integerItem(@javax.annotation.Nonnull Integer integerIt * @return integerItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getIntegerItem() { @@ -161,7 +161,7 @@ public Integer getIntegerItem() { } - @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonProperty(value = JSON_PROPERTY_INTEGER_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(@javax.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -178,7 +178,7 @@ public TypeHolderExample boolItem(@javax.annotation.Nonnull Boolean boolItem) { * @return boolItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getBoolItem() { @@ -186,7 +186,7 @@ public Boolean getBoolItem() { } - @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonProperty(value = JSON_PROPERTY_BOOL_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(@javax.annotation.Nonnull Boolean boolItem) { this.boolItem = boolItem; @@ -211,7 +211,7 @@ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { * @return arrayItem */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getArrayItem() { @@ -219,7 +219,7 @@ public List getArrayItem() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(@javax.annotation.Nonnull List arrayItem) { this.arrayItem = arrayItem; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java index 4aa0d35c2889..7a457acb78ba 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index af00bcc3538b..cdb509cf8e06 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -193,7 +193,7 @@ public XmlItem attributeString(@javax.annotation.Nullable String attributeString * @return attributeString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAttributeString() { @@ -201,7 +201,7 @@ public String getAttributeString() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(@javax.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -218,7 +218,7 @@ public XmlItem attributeNumber(@javax.annotation.Nullable BigDecimal attributeNu * @return attributeNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getAttributeNumber() { @@ -226,7 +226,7 @@ public BigDecimal getAttributeNumber() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(@javax.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -243,7 +243,7 @@ public XmlItem attributeInteger(@javax.annotation.Nullable Integer attributeInte * @return attributeInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAttributeInteger() { @@ -251,7 +251,7 @@ public Integer getAttributeInteger() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(@javax.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -268,7 +268,7 @@ public XmlItem attributeBoolean(@javax.annotation.Nullable Boolean attributeBool * @return attributeBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAttributeBoolean() { @@ -276,7 +276,7 @@ public Boolean getAttributeBoolean() { } - @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_ATTRIBUTE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(@javax.annotation.Nullable Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -301,7 +301,7 @@ public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { * @return wrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWrappedArray() { @@ -309,7 +309,7 @@ public List getWrappedArray() { } - @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(@javax.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -326,7 +326,7 @@ public XmlItem nameString(@javax.annotation.Nullable String nameString) { * @return nameString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNameString() { @@ -334,7 +334,7 @@ public String getNameString() { } - @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonProperty(value = JSON_PROPERTY_NAME_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(@javax.annotation.Nullable String nameString) { this.nameString = nameString; @@ -351,7 +351,7 @@ public XmlItem nameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { * @return nameNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNameNumber() { @@ -359,7 +359,7 @@ public BigDecimal getNameNumber() { } - @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAME_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(@javax.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -376,7 +376,7 @@ public XmlItem nameInteger(@javax.annotation.Nullable Integer nameInteger) { * @return nameInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNameInteger() { @@ -384,7 +384,7 @@ public Integer getNameInteger() { } - @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAME_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(@javax.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -401,7 +401,7 @@ public XmlItem nameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { * @return nameBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNameBoolean() { @@ -409,7 +409,7 @@ public Boolean getNameBoolean() { } - @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAME_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(@javax.annotation.Nullable Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -434,7 +434,7 @@ public XmlItem addNameArrayItem(Integer nameArrayItem) { * @return nameArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameArray() { @@ -442,7 +442,7 @@ public List getNameArray() { } - @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(@javax.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -467,7 +467,7 @@ public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { * @return nameWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNameWrappedArray() { @@ -475,7 +475,7 @@ public List getNameWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAME_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(@javax.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -492,7 +492,7 @@ public XmlItem prefixString(@javax.annotation.Nullable String prefixString) { * @return prefixString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixString() { @@ -500,7 +500,7 @@ public String getPrefixString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(@javax.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -517,7 +517,7 @@ public XmlItem prefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) * @return prefixNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNumber() { @@ -525,7 +525,7 @@ public BigDecimal getPrefixNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(@javax.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -542,7 +542,7 @@ public XmlItem prefixInteger(@javax.annotation.Nullable Integer prefixInteger) { * @return prefixInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixInteger() { @@ -550,7 +550,7 @@ public Integer getPrefixInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(@javax.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -567,7 +567,7 @@ public XmlItem prefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { * @return prefixBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixBoolean() { @@ -575,7 +575,7 @@ public Boolean getPrefixBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(@javax.annotation.Nullable Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -600,7 +600,7 @@ public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { * @return prefixArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixArray() { @@ -608,7 +608,7 @@ public List getPrefixArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(@javax.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -633,7 +633,7 @@ public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { * @return prefixWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixWrappedArray() { @@ -641,7 +641,7 @@ public List getPrefixWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(@javax.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -658,7 +658,7 @@ public XmlItem namespaceString(@javax.annotation.Nullable String namespaceString * @return namespaceString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getNamespaceString() { @@ -666,7 +666,7 @@ public String getNamespaceString() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(@javax.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -683,7 +683,7 @@ public XmlItem namespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNu * @return namespaceNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getNamespaceNumber() { @@ -691,7 +691,7 @@ public BigDecimal getNamespaceNumber() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(@javax.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -708,7 +708,7 @@ public XmlItem namespaceInteger(@javax.annotation.Nullable Integer namespaceInte * @return namespaceInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNamespaceInteger() { @@ -716,7 +716,7 @@ public Integer getNamespaceInteger() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(@javax.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -733,7 +733,7 @@ public XmlItem namespaceBoolean(@javax.annotation.Nullable Boolean namespaceBool * @return namespaceBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getNamespaceBoolean() { @@ -741,7 +741,7 @@ public Boolean getNamespaceBoolean() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(@javax.annotation.Nullable Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -766,7 +766,7 @@ public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { * @return namespaceArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceArray() { @@ -774,7 +774,7 @@ public List getNamespaceArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(@javax.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -799,7 +799,7 @@ public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { * @return namespaceWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getNamespaceWrappedArray() { @@ -807,7 +807,7 @@ public List getNamespaceWrappedArray() { } - @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(@javax.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -824,7 +824,7 @@ public XmlItem prefixNsString(@javax.annotation.Nullable String prefixNsString) * @return prefixNsString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrefixNsString() { @@ -832,7 +832,7 @@ public String getPrefixNsString() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(@javax.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -849,7 +849,7 @@ public XmlItem prefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumb * @return prefixNsNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPrefixNsNumber() { @@ -857,7 +857,7 @@ public BigDecimal getPrefixNsNumber() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(@javax.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -874,7 +874,7 @@ public XmlItem prefixNsInteger(@javax.annotation.Nullable Integer prefixNsIntege * @return prefixNsInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getPrefixNsInteger() { @@ -882,7 +882,7 @@ public Integer getPrefixNsInteger() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(@javax.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -899,7 +899,7 @@ public XmlItem prefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolea * @return prefixNsBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getPrefixNsBoolean() { @@ -907,7 +907,7 @@ public Boolean getPrefixNsBoolean() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(@javax.annotation.Nullable Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -932,7 +932,7 @@ public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { * @return prefixNsArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsArray() { @@ -940,7 +940,7 @@ public List getPrefixNsArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(@javax.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -965,7 +965,7 @@ public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { * @return prefixNsWrappedArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getPrefixNsWrappedArray() { @@ -973,7 +973,7 @@ public List getPrefixNsWrappedArray() { } - @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonProperty(value = JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(@javax.annotation.Nullable List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 01e6dd38c2e2..773fc1ab4e61 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -97,7 +97,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -105,7 +105,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 4369abfbfa8c..44f5d5faa6c1 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -80,7 +80,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -88,7 +88,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java index 76d809224eb5..2456fc0ac448 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -92,7 +92,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -100,7 +100,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9f9230f5c51b..e48bf84ca4cc 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 95eb35a262ca..01c9badd8ece 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java index 6e87eafcc512..006c8ce93a21 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java index dec70966d099..dd08bed9aebb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java index 53bed2e41f6b..3debe07d238a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -68,7 +68,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java index d1fc7b09c499..9e1b7316bbfa 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 557f2f88af9a..5eed020a1cf3 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java index 675e9f398283..e8d8b419f6ab 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java index 434d46ad1b64..2d1ad6833b70 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java index fee5fff083d4..478fce069d5a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java index b62b147f96e1..8787d050632b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java index 96da52dd6a11..2d9895cc3874 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java index 69c3f59d7f9b..9373c81107df 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,7 +237,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -245,7 +245,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -287,7 +287,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,7 +295,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -312,7 +312,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -320,7 +320,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -343,14 +343,14 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { return outerEnum; } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) public void setOuterEnum_JsonNullable(JsonNullable outerEnum) { this.outerEnum = outerEnum; } @@ -370,7 +370,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -378,7 +378,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -395,7 +395,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -403,7 +403,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -420,7 +420,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -428,7 +428,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 7eca4111f558..c846c711391a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -91,7 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -99,7 +99,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 3231a00ed0f3..39bb17b9ea7b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java index 161a8e206d43..d06e5dfe98a7 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index fb1067ffcb00..c0fcd22a6969 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java index 22fbd79aa7d6..a4f69066e009 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -159,7 +159,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -167,7 +167,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -211,7 +211,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -219,7 +219,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -290,7 +290,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -298,7 +298,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -315,7 +315,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -323,7 +323,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -340,7 +340,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -348,7 +348,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -365,7 +365,7 @@ public FormatTest binary(@javax.annotation.Nullable AsyncFile binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public AsyncFile getBinary() { @@ -373,7 +373,7 @@ public AsyncFile getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable AsyncFile binary) { this.binary = binary; @@ -390,7 +390,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -398,7 +398,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -415,7 +415,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -423,7 +423,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -440,7 +440,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -448,7 +448,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -465,7 +465,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -473,7 +473,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -490,7 +490,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -498,7 +498,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -515,7 +515,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -523,7 +523,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index fab16c721c1c..75462506e6c8 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -48,8 +48,8 @@ public HasOnlyReadOnly() { */ @JsonCreator public HasOnlyReadOnly( - @JsonProperty(JSON_PROPERTY_BAR) String bar, - @JsonProperty(JSON_PROPERTY_FOO) String foo + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar, + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) String foo ) { this(); this.bar = bar; @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 8780c33267c5..7709e89cc9be 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -59,14 +59,14 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { return nullableMessage; } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) public void setNullableMessage_JsonNullable(JsonNullable nullableMessage) { this.nullableMessage = nullableMessage; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java index 226af5128b2b..94020730a719 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index be9066f8a227..c515e1506f66 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java index f445295ef573..cc0125122612 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 9fce2e1e3bab..4b9ecc77489a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java index b56cda290634..aafab80e041d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java index d0f770be3bdb..2ac93e97b4c5 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java index a5e4c8656d48..2e06a4c7a467 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java index 7c79599ff5d8..ead2b3b3e5f1 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java @@ -57,8 +57,8 @@ public Name() { */ @JsonCreator public Name( - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase, - @JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) Integer snakeCase, + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) Integer _123number ) { this(); this.snakeCase = snakeCase; @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java index 44dc3d35a5ac..957da40e0afb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NullableClass.java @@ -123,14 +123,14 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { return integerProp; } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) public void setIntegerProp_JsonNullable(JsonNullable integerProp) { this.integerProp = integerProp; } @@ -156,14 +156,14 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { return numberProp; } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) public void setNumberProp_JsonNullable(JsonNullable numberProp) { this.numberProp = numberProp; } @@ -189,14 +189,14 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { return booleanProp; } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) public void setBooleanProp_JsonNullable(JsonNullable booleanProp) { this.booleanProp = booleanProp; } @@ -222,14 +222,14 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { return stringProp; } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) public void setStringProp_JsonNullable(JsonNullable stringProp) { this.stringProp = stringProp; } @@ -255,14 +255,14 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { return dateProp; } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) public void setDateProp_JsonNullable(JsonNullable dateProp) { this.dateProp = dateProp; } @@ -288,14 +288,14 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { return datetimeProp; } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) public void setDatetimeProp_JsonNullable(JsonNullable datetimeProp) { this.datetimeProp = datetimeProp; } @@ -333,14 +333,14 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { return arrayNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) public void setArrayNullableProp_JsonNullable(JsonNullable> arrayNullableProp) { this.arrayNullableProp = arrayNullableProp; } @@ -378,14 +378,14 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { return arrayAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable> arrayAndItemsNullableProp) { this.arrayAndItemsNullableProp = arrayAndItemsNullableProp; } @@ -413,7 +413,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -421,7 +421,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -456,14 +456,14 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { return objectNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) public void setObjectNullableProp_JsonNullable(JsonNullable> objectNullableProp) { this.objectNullableProp = objectNullableProp; } @@ -501,14 +501,14 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { return objectAndItemsNullableProp; } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable> objectAndItemsNullableProp) { this.objectAndItemsNullableProp = objectAndItemsNullableProp; } @@ -536,7 +536,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -544,7 +544,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java index 2b2688a79089..264e825134f1 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 027bfe18ab35..0cc1c49da6cc 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -104,7 +104,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -123,7 +123,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -131,7 +131,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -158,7 +158,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -166,7 +166,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java index 19a6f2e22dd1..075006c47dc6 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java index 7b928ac82f35..14b334e4829a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index a8d574446886..135239e327cd 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 44d26ee7013f..3715d9705a18 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -103,7 +103,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,14 +134,14 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { return nullableProperty; } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) public void setNullableProperty_JsonNullable(JsonNullable nullableProperty) { this.nullableProperty = nullableProperty; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java index 9c64c19a7c2c..6642f3237661 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 784d47d6a106..eeffca460496 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -47,7 +47,7 @@ public ReadOnlyFirst() { */ @JsonCreator public ReadOnlyFirst( - @JsonProperty(JSON_PROPERTY_BAR) String bar + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) String bar ) { this(); this.bar = bar; @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java index 7e37da197795..59e71d9aff56 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java index fc2ee7bfc564..83ece7141a46 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index b8c473679982..b6f471f25bb2 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -61,7 +61,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java index 4aa0d35c2889..7a457acb78ba 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 50012bf36e00..2ec227110a06 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -97,7 +97,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -105,7 +105,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 2157a4ba6b42..5429da5b41bc 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@jakarta.annotation.Nullable String username) * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -80,7 +80,7 @@ public AllOfWithSingleRef singleRefType(@jakarta.annotation.Nullable SingleRefTy * @return singleRefType */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -88,7 +88,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java index 3274f77cbd1b..74d5ec2c0dd5 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@jakarta.annotation.Nonnull String className) { * @return className */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -92,7 +92,7 @@ public Animal color(@jakarta.annotation.Nullable String color) { * @return color */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -100,7 +100,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index cec6f26d43e1..40f5d22205f2 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 0c7c87d51c0a..9f31976efebb 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java index 544b8b8c96c0..0bcdf9063c53 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java index a753be1304e5..22b9a68f8c05 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@jakarta.annotation.Nullable String smallCamel) * @return smallCamel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@jakarta.annotation.Nullable String capitalCa * @return capitalCamel */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@jakarta.annotation.Nullable String smallSnake) * @return smallSnake */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@jakarta.annotation.Nullable String capitalSn * @return capitalSnake */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@jakarta.annotation.Nullable String scAET * @return scAETHFlowPoints */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@jakarta.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@jakarta.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java index 5ff82fe97cd7..d4359a4ee859 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@jakarta.annotation.Nullable Boolean declawed) { * @return declawed */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -68,7 +68,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java index 48db624380a2..824db05eebb2 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 21d3eda8510a..9125a5d412b7 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@jakarta.annotation.Nullable String other * @return otherProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@jakarta.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java index 2d4ce856a48c..a0bb6e7714ea 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@jakarta.annotation.Nullable String propertyClas * @return propertyClass */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java index aaa5d5bc5cb1..b85db3275d5d 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@jakarta.annotation.Nullable String client) { * @return client */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@jakarta.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 4b3e7e3cc82f..db6d1a31352b 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java index ebb51c2380db..61e0481db5e8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@jakarta.annotation.Nullable String breed) { * @return breed */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@jakarta.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java index a8f3109c530c..eca986e96ae3 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSym * @return justSymbol */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java index 6c590326e29a..9c6a97f8cac2 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,7 +237,7 @@ public EnumTest enumString(@jakarta.annotation.Nullable EnumStringEnum enumStrin * @return enumString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -245,7 +245,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@jakarta.annotation.Nonnull EnumStringRequire * @return enumStringRequired */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -287,7 +287,7 @@ public EnumTest enumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInt * @return enumInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,7 +295,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -312,7 +312,7 @@ public EnumTest enumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumbe * @return enumNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -320,7 +320,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -343,7 +343,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -370,7 +370,7 @@ public EnumTest outerEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger o * @return outerEnumInteger */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -378,7 +378,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@jakarta.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -395,7 +395,7 @@ public EnumTest outerEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefa * @return outerEnumDefaultValue */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -403,7 +403,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@jakarta.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -420,7 +420,7 @@ public EnumTest outerEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterE * @return outerEnumIntegerDefaultValue */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -428,7 +428,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@jakarta.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 0040ba872d12..57eb9dd857b5 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@jakarta.annotation.Nullable BigDecim * @return someId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -91,7 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -99,7 +99,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 20bf48a4fbf8..eecdfc9fce05 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@jakarta.annotation.Nullable ModelFile _file) { * @return _file */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@jakarta.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java index 3148863d4f4d..80df9e1cb925 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@jakarta.annotation.Nullable String bar) { * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@jakarta.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 6ac11e76f1c7..0f8c77a62cd7 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@jakarta.annotation.Nullable Foo string) { * @return string */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java index f3ae59dd0eff..de091792eb7b 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@jakarta.annotation.Nullable Integer integer) { * @return integer */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -159,7 +159,7 @@ public FormatTest int32(@jakarta.annotation.Nullable Integer int32) { * @return int32 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -167,7 +167,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@jakarta.annotation.Nullable Long int64) { * @return int64 */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; @@ -211,7 +211,7 @@ public FormatTest number(@jakarta.annotation.Nonnull BigDecimal number) { * @return number */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -219,7 +219,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@jakarta.annotation.Nullable Float _float) { * @return _float */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@jakarta.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@jakarta.annotation.Nullable Double _double) { * @return _double */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -290,7 +290,7 @@ public FormatTest decimal(@jakarta.annotation.Nullable BigDecimal decimal) { * @return decimal */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -298,7 +298,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@jakarta.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -315,7 +315,7 @@ public FormatTest string(@jakarta.annotation.Nullable String string) { * @return string */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -323,7 +323,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@jakarta.annotation.Nullable String string) { this.string = string; @@ -340,7 +340,7 @@ public FormatTest _byte(@jakarta.annotation.Nonnull byte[] _byte) { * @return _byte */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -348,7 +348,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -365,7 +365,7 @@ public FormatTest binary(@jakarta.annotation.Nullable File binary) { * @return binary */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -373,7 +373,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -390,7 +390,7 @@ public FormatTest date(@jakarta.annotation.Nonnull LocalDate date) { * @return date */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -398,7 +398,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; @@ -415,7 +415,7 @@ public FormatTest dateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) * @return dateTime */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -423,7 +423,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -440,7 +440,7 @@ public FormatTest uuid(@jakarta.annotation.Nullable UUID uuid) { * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -448,7 +448,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -465,7 +465,7 @@ public FormatTest password(@jakarta.annotation.Nonnull String password) { * @return password */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -473,7 +473,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@jakarta.annotation.Nonnull String password) { this.password = password; @@ -490,7 +490,7 @@ public FormatTest patternWithDigits(@jakarta.annotation.Nullable String patternW * @return patternWithDigits */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -498,7 +498,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@jakarta.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -515,7 +515,7 @@ public FormatTest patternWithDigitsAndDelimiter(@jakarta.annotation.Nullable Str * @return patternWithDigitsAndDelimiter */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -523,7 +523,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@jakarta.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 6bea63e846c5..f61355aa4a31 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java index b76b927d3712..3d3e903fa7d3 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -59,7 +59,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java index 37b4b8ab0534..0b46bbf13ab7 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@jakarta.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 44989079af56..b0e481f072ed 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@jakarta.annotation.Null * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@jakarta.annotation. * @return dateTime */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@jakarta.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java index 0d7e33e689d8..3cbc04abee52 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@jakarta.annotation.Nullable Integer name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@jakarta.annotation.Nullable String proper * @return propertyClass */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 906c779a9463..b7a2f7c875a6 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@jakarta.annotation.Nullable Integer code) { * @return code */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@jakarta.annotation.Nullable String type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@jakarta.annotation.Nullable String message) { * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@jakarta.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java index 121184edefe7..a650da26059a 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@jakarta.annotation.Nullable String sourceURI) { * @return sourceURI */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@jakarta.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java index 9edd6c3af92c..b91216af7693 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@jakarta.annotation.Nullable String _123list) { * @return _123list */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@jakarta.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java index 3d34003aa76f..c1b66567ebc3 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@jakarta.annotation.Nullable Integer _return) { * @return _return */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@jakarta.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java index 0a5893c68eb6..0b472aabaad8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Name.java @@ -76,7 +76,7 @@ public Name name(@jakarta.annotation.Nonnull Integer name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@jakarta.annotation.Nonnull Integer name) { * @return snakeCase */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@jakarta.annotation.Nullable String property) { * @return property */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@jakarta.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@jakarta.annotation.Nullable String property) { * @return _123number */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java index cd7720c77a2a..cad6af5dea7b 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NullableClass.java @@ -126,7 +126,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -159,7 +159,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -192,7 +192,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -225,7 +225,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -258,7 +258,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -291,7 +291,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -336,7 +336,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -381,7 +381,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -416,7 +416,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -424,7 +424,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@jakarta.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -459,7 +459,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -504,7 +504,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -539,7 +539,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -547,7 +547,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java index 2a5a8ce402cd..58e4348268f8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@jakarta.annotation.Nullable BigDecimal justNumber) * @return justNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@jakarta.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index e57217ff8558..a34d4294a435 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@jakarta.annotation.Nullable String uuid) * @return uuid */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public ObjectWithDeprecatedFields id(@jakarta.annotation.Nullable BigDecimal id) */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -104,7 +104,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -123,7 +123,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@jakarta.annotation.Nullable Dep */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -131,7 +131,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@jakarta.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -158,7 +158,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -166,7 +166,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@jakarta.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java index a56e4ae44164..eb074141df95 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@jakarta.annotation.Nullable Long petId) { * @return petId */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@jakarta.annotation.Nullable Integer quantity) { * @return quantity */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@jakarta.annotation.Nullable Boolean complete) { * @return complete */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@jakarta.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java index b7c13c4419c3..e1355c3c059f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@jakarta.annotation.Nullable BigDecimal myNumber) * @return myNumber */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@jakarta.annotation.Nullable String myString) { * @return myString */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@jakarta.annotation.Nullable Boolean myBoolean) * @return myBoolean */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@jakarta.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index b8a916d18bc9..38ae05820a92 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@jakarta.annotation.Nonnull OuterEnumIn * @return value */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@jakarta.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java index b73a8442f484..e1fe5924b621 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -103,7 +103,7 @@ public ParentWithNullable type(@jakarta.annotation.Nullable TypeEnum type) { * @return type */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,7 +134,7 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java index 72970e8e30e8..6b0eea88165d 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@jakarta.annotation.Nullable Category category) { * @return category */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@jakarta.annotation.Nonnull String name) { * @return name */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@jakarta.annotation.Nullable StatusEnum status) { * @return status */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index c0c19abefdc2..0850de61e5d8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@jakarta.annotation.Nullable String baz) { * @return baz */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@jakarta.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java index 165ddaf59557..abbe5c8625f4 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@jakarta.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java index 8cd92ee44667..38b6df8923ef 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@jakarta.annotation.Nullable String name) { * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index ac4219746a5b..68df1383aee0 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -54,7 +54,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@jakarta.annot * @return someProperty */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -62,7 +62,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@jakarta.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java index 4797773fc12d..0a9c70b92ba8 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@jakarta.annotation.Nullable Long id) { * @return id */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@jakarta.annotation.Nullable String username) { * @return username */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@jakarta.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@jakarta.annotation.Nullable String firstName) { * @return firstName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@jakarta.annotation.Nullable String lastName) { * @return lastName */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@jakarta.annotation.Nullable String email) { * @return email */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@jakarta.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@jakarta.annotation.Nullable String password) { * @return password */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@jakarta.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@jakarta.annotation.Nullable String phone) { * @return phone */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@jakarta.annotation.Nullable Integer userStatus) { * @return userStatus */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java index 3f0e6c36f70a..daa131005c2b 100644 --- a/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java +++ b/samples/client/petstore/java/webclient-nullable-arrays/src/main/java/org/openapitools/client/model/ByteArrayObject.java @@ -80,7 +80,7 @@ public byte[] getNullableArray() { return nullableArray.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableArray_JsonNullable() { @@ -107,7 +107,7 @@ public ByteArrayObject normalArray(@javax.annotation.Nullable byte[] normalArray * @return normalArray */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NORMAL_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public byte[] getNormalArray() { @@ -115,7 +115,7 @@ public byte[] getNormalArray() { } - @JsonProperty(JSON_PROPERTY_NORMAL_ARRAY) + @JsonProperty(value = JSON_PROPERTY_NORMAL_ARRAY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNormalArray(@javax.annotation.Nullable byte[] normalArray) { this.normalArray = normalArray; @@ -138,7 +138,7 @@ public String getNullableString() { return nullableString.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_STRING) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableString_JsonNullable() { @@ -165,7 +165,7 @@ public ByteArrayObject stringField(@javax.annotation.Nullable String stringField * @return stringField */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING_FIELD) + @JsonProperty(value = JSON_PROPERTY_STRING_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStringField() { @@ -173,7 +173,7 @@ public String getStringField() { } - @JsonProperty(JSON_PROPERTY_STRING_FIELD) + @JsonProperty(value = JSON_PROPERTY_STRING_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStringField(@javax.annotation.Nullable String stringField) { this.stringField = stringField; @@ -190,7 +190,7 @@ public ByteArrayObject intField(@javax.annotation.Nullable BigDecimal intField) * @return intField */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT_FIELD) + @JsonProperty(value = JSON_PROPERTY_INT_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getIntField() { @@ -198,7 +198,7 @@ public BigDecimal getIntField() { } - @JsonProperty(JSON_PROPERTY_INT_FIELD) + @JsonProperty(value = JSON_PROPERTY_INT_FIELD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIntField(@javax.annotation.Nullable BigDecimal intField) { this.intField = intField; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 534e9862e670..4c919d5a73eb 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -66,7 +66,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -74,7 +74,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -100,7 +100,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -108,7 +108,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 81549920d87b..1ae03ab05b69 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -57,7 +57,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -65,7 +65,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -83,7 +83,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -91,7 +91,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java index c99a6ed66710..72e9fdfd07b1 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java @@ -69,7 +69,7 @@ public Animal className(@javax.annotation.Nonnull String className) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -77,7 +77,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -95,7 +95,7 @@ public Animal color(@javax.annotation.Nullable String color) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -103,7 +103,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index e19536894673..c5c1722cbdd2 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -63,7 +63,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -71,7 +71,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index c60ef597ba24..1a6503f77ccc 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -63,7 +63,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -71,7 +71,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java index a80ea07ff1dd..5dce463a8a9d 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -73,7 +73,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -81,7 +81,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -107,7 +107,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -115,7 +115,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -141,7 +141,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -149,7 +149,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java index b303e786914a..e219d1621bd6 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -76,7 +76,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -84,7 +84,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -102,7 +102,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -110,7 +110,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -128,7 +128,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -136,7 +136,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -154,7 +154,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -162,7 +162,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -180,7 +180,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -188,7 +188,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -206,7 +206,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Name of the pet ") - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -214,7 +214,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java index c0c03ddf058b..1812480147c9 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Cat.java @@ -62,7 +62,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -70,7 +70,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java index d34d45f294e1..95a618e267d6 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -56,7 +56,7 @@ public Category id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Category name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java index be6a2e370fe4..7199994e2c6c 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -63,7 +63,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -71,7 +71,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java index 8eced1e66aca..0c6a6a802f7b 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -52,7 +52,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -60,7 +60,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java index 50d3d26c2cb6..28e7093b8581 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Client.java @@ -51,7 +51,7 @@ public Client client(@javax.annotation.Nullable String client) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -59,7 +59,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 607e97de8aaa..7ce058e4bda3 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -53,7 +53,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -61,7 +61,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java index 4bb464f329a5..70cb2a1435c5 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Dog.java @@ -62,7 +62,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -70,7 +70,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index 8694502d213b..5571fbac601e 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -129,7 +129,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -137,7 +137,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -163,7 +163,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -171,7 +171,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index 2bc1205e57ed..5df9500c79eb 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -239,7 +239,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -247,7 +247,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -265,7 +265,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -273,7 +273,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -291,7 +291,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -299,7 +299,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -317,7 +317,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -325,7 +325,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -349,7 +349,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -377,7 +377,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -385,7 +385,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -403,7 +403,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -411,7 +411,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -429,7 +429,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -437,7 +437,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 7d6df589c8c4..0cba1fe1eea0 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -60,7 +60,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -68,7 +68,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -94,7 +94,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -102,7 +102,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 8a872bf0fe64..581a22ffac14 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -60,7 +60,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -68,7 +68,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -94,7 +94,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -102,7 +102,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java index f6283fed9d88..91796375cd14 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Foo.java @@ -51,7 +51,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -59,7 +59,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 360c097b6285..626dc5c8db4f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -53,7 +53,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -61,7 +61,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java index fe77850ae67c..c54d93bf5316 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -134,7 +134,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -142,7 +142,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -162,7 +162,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -170,7 +170,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -188,7 +188,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -196,7 +196,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -216,7 +216,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -224,7 +224,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -244,7 +244,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -252,7 +252,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -272,7 +272,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -280,7 +280,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -298,7 +298,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -306,7 +306,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -324,7 +324,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -332,7 +332,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -350,7 +350,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -358,7 +358,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -376,7 +376,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -384,7 +384,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -402,7 +402,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -410,7 +410,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -428,7 +428,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -436,7 +436,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -454,7 +454,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { */ @javax.annotation.Nullable @Schema(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -462,7 +462,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -480,7 +480,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -488,7 +488,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -506,7 +506,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string that is a 10 digit number. Can have leading zeros.") - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -514,7 +514,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -532,7 +532,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -540,7 +540,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 63d52d72f861..f2c424518833 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -63,7 +63,7 @@ public HasOnlyReadOnly( */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public String getBar() { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 21537f960dfd..b6325092ce99 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -62,7 +62,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index 64252cb56297..41700849ffc6 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -111,7 +111,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -119,7 +119,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -145,7 +145,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -153,7 +153,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -179,7 +179,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -187,7 +187,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -213,7 +213,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -221,7 +221,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 7a95242d32e2..294f634f6b17 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -66,7 +66,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -74,7 +74,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -92,7 +92,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -100,7 +100,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -126,7 +126,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -134,7 +134,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java index e5db6fbce524..b65c9a6a5075 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -58,7 +58,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -66,7 +66,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -84,7 +84,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -92,7 +92,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index e830adbf21e7..b3eb11aa06ad 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -62,7 +62,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -70,7 +70,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -88,7 +88,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -96,7 +96,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -114,7 +114,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -122,7 +122,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java index c1a983e07fdc..6ca67972e1a2 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelFile.java @@ -53,7 +53,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Test capitalization") - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -61,7 +61,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java index 4a56c386c5a4..3464b87b4ac3 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelList.java @@ -52,7 +52,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -60,7 +60,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java index 1670a06a3ba0..4a2555c76c9c 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -53,7 +53,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -61,7 +61,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java index 936f3ec7594d..421d86fc3bee 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Name.java @@ -79,7 +79,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -87,7 +87,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -99,7 +99,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -120,7 +120,7 @@ public Name property(@javax.annotation.Nullable String property) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -128,7 +128,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -140,7 +140,7 @@ public void setProperty(@javax.annotation.Nullable String property) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java index a6632dd803f8..f34e4272d1ff 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NullableClass.java @@ -128,7 +128,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -162,7 +162,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -196,7 +196,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -230,7 +230,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -264,7 +264,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -298,7 +298,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -344,7 +344,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -390,7 +390,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -426,7 +426,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -434,7 +434,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -470,7 +470,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -516,7 +516,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -552,7 +552,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -560,7 +560,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java index 99d626925883..d675fa2b1f45 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -52,7 +52,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -60,7 +60,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index a352710b5fe9..7ce3ce9d4a8f 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -71,7 +71,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -79,7 +79,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -99,7 +99,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { @Deprecated @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -107,7 +107,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -127,7 +127,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre @Deprecated @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -135,7 +135,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -163,7 +163,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { @Deprecated @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -171,7 +171,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index 15b992739d51..885e6ae07157 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -114,7 +114,7 @@ public Order id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -122,7 +122,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -140,7 +140,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -148,7 +148,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -166,7 +166,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -174,7 +174,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -192,7 +192,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -200,7 +200,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -218,7 +218,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -226,7 +226,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -244,7 +244,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -252,7 +252,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java index 5e986616fdf9..c4c09af0f6ad 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -62,7 +62,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -70,7 +70,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -88,7 +88,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -96,7 +96,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -114,7 +114,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -122,7 +122,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 88dd092d08be..e38810695c75 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -52,7 +52,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -60,7 +60,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index ef6689411775..9d0b99669409 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -105,7 +105,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -113,7 +113,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -137,7 +137,7 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 899b69d7cc26..177ab18f9ae9 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -121,7 +121,7 @@ public Pet id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -129,7 +129,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -147,7 +147,7 @@ public Pet category(@javax.annotation.Nullable Category category) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -155,7 +155,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -173,7 +173,7 @@ public Pet name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -181,7 +181,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -207,7 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -216,7 +216,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -242,7 +242,7 @@ public Pet addTagsItem(Tag tagsItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -250,7 +250,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -268,7 +268,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -276,7 +276,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 27ddac6e50bb..3b6743c0a48c 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -60,7 +60,7 @@ public ReadOnlyFirst( */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -81,7 +81,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -89,7 +89,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java index 38e8046cbc35..a04b124afe70 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -52,7 +52,7 @@ public SpecialModelName() { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -60,7 +60,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 90f1b852e660..b8a69877b444 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -56,7 +56,7 @@ public Tag id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -64,7 +64,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -82,7 +82,7 @@ public Tag name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -90,7 +90,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 581d4fdd05ba..32053fe5915b 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -56,7 +56,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -64,7 +64,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java index 2c61e09279b4..c71723cd2997 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -86,7 +86,7 @@ public User id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -94,7 +94,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -112,7 +112,7 @@ public User username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -120,7 +120,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -138,7 +138,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -146,7 +146,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -164,7 +164,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -172,7 +172,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -190,7 +190,7 @@ public User email(@javax.annotation.Nullable String email) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -198,7 +198,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -216,7 +216,7 @@ public User password(@javax.annotation.Nullable String password) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -224,7 +224,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -242,7 +242,7 @@ public User phone(@javax.annotation.Nullable String phone) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -250,7 +250,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -268,7 +268,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -276,7 +276,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index fdc44b60f0f7..a7573de7902c 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -97,7 +97,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -105,7 +105,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index c86bfacdf4b8..9159beb3fa4c 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -80,7 +80,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -88,7 +88,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java index c280ab08fc35..854d8571ac02 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -92,7 +92,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -100,7 +100,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index ddbdf87f33fd..6bd84bd2af24 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index d68310c80773..f6ec8bd3f5aa 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java index 2be4f3a1a5c3..e4f67c8b9fe8 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java index c80a4d3fe9d5..a4b5fca4a065 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java index 99c23772ffd0..6bf164358dcf 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -68,7 +68,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java index 68c5075d0c7a..9e2efe73e7b8 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 364e90a3d339..92c7dc31cb75 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java index b0ee79bf0a2c..8bbff8268c14 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java index 36b415404a71..b98ab5c2e070 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 3401d0a58ced..03b3fab5be8b 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java index b447af5483e1..a93f2110c63b 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java index 6c22fd8c5a45..03edca375b92 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java index eca8c5b92932..a1ee88ac3639 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,7 +237,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -245,7 +245,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -287,7 +287,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,7 +295,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -312,7 +312,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -320,7 +320,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -343,7 +343,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -370,7 +370,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -378,7 +378,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -395,7 +395,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -403,7 +403,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -420,7 +420,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -428,7 +428,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 14d27da26818..6165bd0da8c5 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -91,7 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -99,7 +99,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index a1da5b8ff057..9cfc462d013c 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java index 463ae01d5cea..4846b6d1ea72 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 43c21b188db5..1b077747099e 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java index 8db5e5775e49..5bbcdce25f6a 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -159,7 +159,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -167,7 +167,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -211,7 +211,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -219,7 +219,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -290,7 +290,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -298,7 +298,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -315,7 +315,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -323,7 +323,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -340,7 +340,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -348,7 +348,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -365,7 +365,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -373,7 +373,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -390,7 +390,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -398,7 +398,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -415,7 +415,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -423,7 +423,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -440,7 +440,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -448,7 +448,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -465,7 +465,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -473,7 +473,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -490,7 +490,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -498,7 +498,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -515,7 +515,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -523,7 +523,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 616a44324341..577f3b25610f 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 07881cfbc5f8..c2792ca9686b 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -59,7 +59,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java index 6b4146cdf59e..b6f977fb6562 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index f2ecc68966d7..766a3039de0c 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java index bafffc39584e..a11e27a61fb3 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f19581e362d5..de11b6d4d866 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java index c5869603b0cd..96c0e48aa4b4 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java index 2c483607d79c..e5321f45292b 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java index 9be47ab8e0bf..48898b8c24d6 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java index 8d485dd72e7a..364429426f64 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Name.java @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java index 16b8c3e97f40..38c87267332e 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NullableClass.java @@ -126,7 +126,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -159,7 +159,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -192,7 +192,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -225,7 +225,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -258,7 +258,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -291,7 +291,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -336,7 +336,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -381,7 +381,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -416,7 +416,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -424,7 +424,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -459,7 +459,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -504,7 +504,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -539,7 +539,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -547,7 +547,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java index 5320c0ba1199..5de3c5578f81 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index e8ae8cd2ff93..a973edff1d43 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -104,7 +104,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -123,7 +123,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -131,7 +131,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -158,7 +158,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -166,7 +166,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java index 1c927825d17e..6828975e3f1d 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java index d8771cd04386..6cb8fc785226 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 5488479ce207..dcabc1b57ead 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java index ac4a3d84eac5..6ca568397834 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -103,7 +103,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,7 +134,7 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java index e413a5d946e0..c8b62cb4bd0d 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 67692e6726e2..fc4146eb8770 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java index 16b10bc50579..fa900aef3f54 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java index b6aefd1fe91d..199624ca2618 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d6419a7ed19f..de4a70be1e11 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -54,7 +54,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -62,7 +62,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java index ba33386e72f3..e96f8c20ef9d 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index cb275491a142..711daaaebd0e 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -72,7 +72,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -97,7 +97,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -105,7 +105,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index c86bfacdf4b8..9159beb3fa4c 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -55,7 +55,7 @@ public AllOfWithSingleRef username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -63,7 +63,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -80,7 +80,7 @@ public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType * @return singleRefType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SingleRefType getSingleRefType() { @@ -88,7 +88,7 @@ public SingleRefType getSingleRefType() { } - @JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE) + @JsonProperty(value = JSON_PROPERTY_SINGLE_REF_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java index c280ab08fc35..854d8571ac02 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java @@ -67,7 +67,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -75,7 +75,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -92,7 +92,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -100,7 +100,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 081a316f9b19..98b98ed0e8cf 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -69,7 +69,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 1f7deeee1680..ff2992a16b5f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -61,7 +61,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -69,7 +69,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java index 86b6316ee425..f1b979b178bb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -71,7 +71,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -79,7 +79,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -104,7 +104,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -112,7 +112,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -137,7 +137,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -145,7 +145,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java index c80a4d3fe9d5..a4b5fca4a065 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -74,7 +74,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -82,7 +82,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -99,7 +99,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -107,7 +107,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -124,7 +124,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -132,7 +132,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -149,7 +149,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -157,7 +157,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -174,7 +174,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -182,7 +182,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -199,7 +199,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -207,7 +207,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java index 99c23772ffd0..6bf164358dcf 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java @@ -60,7 +60,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -68,7 +68,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java index 68c5075d0c7a..9e2efe73e7b8 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java @@ -54,7 +54,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 364e90a3d339..92c7dc31cb75 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -61,7 +61,7 @@ public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherPr * @return otherProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOtherProperty() { @@ -69,7 +69,7 @@ public String getOtherProperty() { } - @JsonProperty(JSON_PROPERTY_OTHER_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_OTHER_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOtherProperty(@javax.annotation.Nullable String otherProperty) { this.otherProperty = otherProperty; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java index b0ee79bf0a2c..8bbff8268c14 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -49,7 +49,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -57,7 +57,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java index 36b415404a71..b98ab5c2e070 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java @@ -49,7 +49,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -57,7 +57,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 3401d0a58ced..03b3fab5be8b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -51,7 +51,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -59,7 +59,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java index b447af5483e1..a93f2110c63b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java @@ -60,7 +60,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -68,7 +68,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java index e5917de84136..ba9cb7f0a40b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -127,7 +127,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -135,7 +135,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -160,7 +160,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -168,7 +168,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java index eca8c5b92932..a1ee88ac3639 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,7 +237,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -245,7 +245,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -262,7 +262,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -270,7 +270,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -287,7 +287,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -295,7 +295,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -312,7 +312,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -320,7 +320,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -343,7 +343,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -370,7 +370,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -378,7 +378,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -395,7 +395,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -403,7 +403,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -420,7 +420,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -428,7 +428,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index bff30aab52d4..6c3f9e22acdb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -58,7 +58,7 @@ public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal * @return someId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getSomeId() { @@ -66,7 +66,7 @@ public BigDecimal getSomeId() { } - @JsonProperty(JSON_PROPERTY_SOME_ID) + @JsonProperty(value = JSON_PROPERTY_SOME_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeId(@javax.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -91,7 +91,7 @@ public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMa * @return someMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getSomeMap() { @@ -99,7 +99,7 @@ public Map getSomeMap() { } - @JsonProperty(JSON_PROPERTY_SOME_MAP) + @JsonProperty(value = JSON_PROPERTY_SOME_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeMap(@javax.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 5556c2323af6..33d3c3318fee 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -58,7 +58,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -66,7 +66,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -91,7 +91,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -99,7 +99,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java index 463ae01d5cea..4846b6d1ea72 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Foo.java @@ -49,7 +49,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -57,7 +57,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 43c21b188db5..1b077747099e 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -51,7 +51,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -59,7 +59,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java index 8db5e5775e49..5bbcdce25f6a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -132,7 +132,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -140,7 +140,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -159,7 +159,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -167,7 +167,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -184,7 +184,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -192,7 +192,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -211,7 +211,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -219,7 +219,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -246,7 +246,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -265,7 +265,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -273,7 +273,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -290,7 +290,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -298,7 +298,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -315,7 +315,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -323,7 +323,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -340,7 +340,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -348,7 +348,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -365,7 +365,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -373,7 +373,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -390,7 +390,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -398,7 +398,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -415,7 +415,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -423,7 +423,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -440,7 +440,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -448,7 +448,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -465,7 +465,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -473,7 +473,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -490,7 +490,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -498,7 +498,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -515,7 +515,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -523,7 +523,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 616a44324341..577f3b25610f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -61,7 +61,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -75,7 +75,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 07881cfbc5f8..c2792ca9686b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -59,7 +59,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java index 46f8502bc9cf..a987adf00006 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -109,7 +109,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -117,7 +117,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -142,7 +142,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -150,7 +150,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -175,7 +175,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -183,7 +183,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -208,7 +208,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -216,7 +216,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index f2cda4eef0c9..e3a98b9897ff 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -64,7 +64,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -72,7 +72,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -89,7 +89,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -97,7 +97,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -122,7 +122,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -130,7 +130,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java index bafffc39584e..a11e27a61fb3 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -55,7 +55,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -63,7 +63,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -80,7 +80,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -88,7 +88,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f19581e362d5..de11b6d4d866 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -60,7 +60,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -68,7 +68,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -85,7 +85,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -93,7 +93,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -110,7 +110,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -118,7 +118,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java index c5869603b0cd..96c0e48aa4b4 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelFile.java @@ -50,7 +50,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -58,7 +58,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java index 2c483607d79c..e5321f45292b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelList.java @@ -50,7 +50,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -58,7 +58,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java index 9be47ab8e0bf..48898b8c24d6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -50,7 +50,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -58,7 +58,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java index 8d485dd72e7a..364429426f64 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java @@ -76,7 +76,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -84,7 +84,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -95,7 +95,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -115,7 +115,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -123,7 +123,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -134,7 +134,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java index fe298f107ecc..f48920c6aafe 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NullableClass.java @@ -126,7 +126,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -159,7 +159,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -192,7 +192,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -225,7 +225,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -258,7 +258,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -291,7 +291,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -336,7 +336,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -381,7 +381,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -416,7 +416,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -424,7 +424,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -459,7 +459,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -504,7 +504,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -539,7 +539,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -547,7 +547,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java index 5320c0ba1199..5de3c5578f81 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -50,7 +50,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -58,7 +58,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 35077ef231f1..ae988a7e7a24 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -69,7 +69,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -77,7 +77,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -96,7 +96,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -104,7 +104,7 @@ public BigDecimal getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -123,7 +123,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -131,7 +131,7 @@ public DeprecatedObject getDeprecatedRef() { } - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -158,7 +158,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -166,7 +166,7 @@ public List getBars() { } - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java index 1c927825d17e..6828975e3f1d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java @@ -112,7 +112,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -120,7 +120,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -137,7 +137,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -145,7 +145,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -162,7 +162,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -170,7 +170,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -187,7 +187,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -195,7 +195,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -212,7 +212,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -220,7 +220,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -237,7 +237,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -245,7 +245,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java index d8771cd04386..6cb8fc785226 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -60,7 +60,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -68,7 +68,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -85,7 +85,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -93,7 +93,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -110,7 +110,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -118,7 +118,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 5488479ce207..dcabc1b57ead 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -50,7 +50,7 @@ public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInte * @return value */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public OuterEnumInteger getValue() { @@ -58,7 +58,7 @@ public OuterEnumInteger getValue() { } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(value = JSON_PROPERTY_VALUE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) { this.value = value; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index ac4a3d84eac5..6ca568397834 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -103,7 +103,7 @@ public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -111,7 +111,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -134,7 +134,7 @@ public String getNullableProperty() { return nullableProperty.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableProperty_JsonNullable() { diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java index d76b98ba9e57..a71cf7dc83b5 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Set getPhotoUrls() { @@ -211,7 +211,7 @@ public Set getPhotoUrls() { @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -236,7 +236,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -244,7 +244,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -261,7 +261,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -269,7 +269,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 67692e6726e2..fc4146eb8770 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -58,7 +58,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -78,7 +78,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -86,7 +86,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index 16b10bc50579..fa900aef3f54 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -50,7 +50,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -58,7 +58,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java index b6aefd1fe91d..199624ca2618 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java @@ -54,7 +54,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -62,7 +62,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -79,7 +79,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -87,7 +87,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index d6419a7ed19f..de4a70be1e11 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -54,7 +54,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -62,7 +62,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java index ba33386e72f3..e96f8c20ef9d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java @@ -84,7 +84,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -92,7 +92,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -109,7 +109,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -117,7 +117,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -134,7 +134,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -142,7 +142,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -159,7 +159,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -167,7 +167,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -184,7 +184,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -192,7 +192,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -209,7 +209,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -217,7 +217,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -234,7 +234,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -242,7 +242,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -259,7 +259,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -267,7 +267,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java index cac9f0b8d3d9..eea50d1fd6b3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java @@ -65,7 +65,7 @@ public ChildSchema prop1(@javax.annotation.Nullable String prop1) { * @return prop1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROP1) + @JsonProperty(value = JSON_PROPERTY_PROP1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProp1() { @@ -73,7 +73,7 @@ public String getProp1() { } - @JsonProperty(JSON_PROPERTY_PROP1) + @JsonProperty(value = JSON_PROPERTY_PROP1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProp1(@javax.annotation.Nullable String prop1) { this.prop1 = prop1; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java index 7e99aaad0bfb..3bbccd807308 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java @@ -66,7 +66,7 @@ public MySchemaNameCharacters prop2(@javax.annotation.Nullable String prop2) { * @return prop2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROP2) + @JsonProperty(value = JSON_PROPERTY_PROP2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProp2() { @@ -74,7 +74,7 @@ public String getProp2() { } - @JsonProperty(JSON_PROPERTY_PROP2) + @JsonProperty(value = JSON_PROPERTY_PROP2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProp2(@javax.annotation.Nullable String prop2) { this.prop2 = prop2; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java index f779797a9c25..3b5812fad6c6 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java @@ -64,7 +64,7 @@ public Parent objectType(@javax.annotation.Nullable String objectType) { * @return objectType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_TYPE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getObjectType() { @@ -72,7 +72,7 @@ public String getObjectType() { } - @JsonProperty(JSON_PROPERTY_OBJECT_TYPE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectType(@javax.annotation.Nullable String objectType) { this.objectType = objectType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java index 1efaa96a6b91..e3494eed4162 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Category.java @@ -60,7 +60,7 @@ public Category id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -68,7 +68,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -86,7 +86,7 @@ public Category name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -94,7 +94,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 2cb2f9d1553f..00096b3a0ba5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -66,7 +66,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -74,7 +74,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -92,7 +92,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -100,7 +100,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -118,7 +118,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -126,7 +126,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java index c395167a92b8..38777f879fc1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -118,7 +118,7 @@ public Order id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -126,7 +126,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -152,7 +152,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -170,7 +170,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -178,7 +178,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -196,7 +196,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -204,7 +204,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -222,7 +222,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Order Status") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -230,7 +230,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -248,7 +248,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -256,7 +256,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java index 99af4f2e3e33..f87f20bbc7fa 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -122,7 +122,7 @@ public Pet id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -130,7 +130,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -148,7 +148,7 @@ public Pet category(@javax.annotation.Nullable Category category) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -156,7 +156,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -174,7 +174,7 @@ public Pet name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -182,7 +182,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -208,7 +208,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { */ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -216,7 +216,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -242,7 +242,7 @@ public Pet addTagsItem(Tag tagsItem) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -250,7 +250,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -271,7 +271,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { @Deprecated @javax.annotation.Nullable @ApiModelProperty(value = "pet status in the store") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -280,7 +280,7 @@ public StatusEnum getStatus() { @Deprecated - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java index 6e329abeaf00..747900a1477f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Tag.java @@ -60,7 +60,7 @@ public Tag id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -68,7 +68,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -86,7 +86,7 @@ public Tag name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -94,7 +94,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java index cca2b165fed7..92530d631817 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/User.java @@ -90,7 +90,7 @@ public User id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -98,7 +98,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -116,7 +116,7 @@ public User username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -124,7 +124,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -142,7 +142,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -150,7 +150,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -168,7 +168,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -176,7 +176,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -194,7 +194,7 @@ public User email(@javax.annotation.Nullable String email) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -202,7 +202,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -220,7 +220,7 @@ public User password(@javax.annotation.Nullable String password) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -228,7 +228,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -246,7 +246,7 @@ public User phone(@javax.annotation.Nullable String phone) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -254,7 +254,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -272,7 +272,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { */ @javax.annotation.Nullable @ApiModelProperty(value = "User Status") - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -280,7 +280,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java index 0dd73911e6bc..3d1d2a008109 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Category.java @@ -59,7 +59,7 @@ public Category id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -67,7 +67,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -85,7 +85,7 @@ public Category name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -93,7 +93,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 4063008a149f..dc9d7d5a2c84 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,7 +65,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -73,7 +73,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -91,7 +91,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -99,7 +99,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -117,7 +117,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -125,7 +125,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java index b7d17a1ff9fa..6ab43bd15685 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -117,7 +117,7 @@ public Order id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -125,7 +125,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -143,7 +143,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -151,7 +151,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -169,7 +169,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -177,7 +177,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -195,7 +195,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -203,7 +203,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -221,7 +221,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "Order Status") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -229,7 +229,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -247,7 +247,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -255,7 +255,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 505e2e42e1a6..90e702ac7fd5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -121,7 +121,7 @@ public Pet id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -129,7 +129,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -147,7 +147,7 @@ public Pet category(@javax.annotation.Nullable Category category) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -155,7 +155,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -173,7 +173,7 @@ public Pet name(@javax.annotation.Nonnull String name) { */ @javax.annotation.Nonnull @Schema(example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -181,7 +181,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -207,7 +207,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { */ @javax.annotation.Nonnull @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -215,7 +215,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -241,7 +241,7 @@ public Pet addTagsItem(Tag tagsItem) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -249,7 +249,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -270,7 +270,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { @Deprecated @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "pet status in the store") - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -279,7 +279,7 @@ public StatusEnum getStatus() { @Deprecated - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java index 3d12170f0b3b..bfebe491081b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Tag.java @@ -59,7 +59,7 @@ public Tag id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -67,7 +67,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -85,7 +85,7 @@ public Tag name(@javax.annotation.Nullable String name) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -93,7 +93,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java index 58cb38b18cdb..930d0eee8f2d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/User.java @@ -89,7 +89,7 @@ public User id(@javax.annotation.Nullable Long id) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -97,7 +97,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -115,7 +115,7 @@ public User username(@javax.annotation.Nullable String username) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -123,7 +123,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -141,7 +141,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -149,7 +149,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -167,7 +167,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -175,7 +175,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -193,7 +193,7 @@ public User email(@javax.annotation.Nullable String email) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -201,7 +201,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -219,7 +219,7 @@ public User password(@javax.annotation.Nullable String password) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -227,7 +227,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -245,7 +245,7 @@ public User phone(@javax.annotation.Nullable String phone) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -253,7 +253,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -271,7 +271,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "User Status") - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -279,7 +279,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index bf572de7dc8b..b2c3ddb91e55 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -101,7 +101,7 @@ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapProper * @return mapProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapProperty() { @@ -109,7 +109,7 @@ public Map getMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(@javax.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -134,7 +134,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -142,7 +142,7 @@ public Map> getMapOfMapProperty() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_MAP_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(@javax.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; @@ -165,7 +165,7 @@ public Object getAnytype1() { return anytype1.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnytype1_JsonNullable() { @@ -192,7 +192,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.anno * @return mapWithUndeclaredPropertiesAnytype1 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype1() { @@ -200,7 +200,7 @@ public Object getMapWithUndeclaredPropertiesAnytype1() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; @@ -217,7 +217,7 @@ public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.anno * @return mapWithUndeclaredPropertiesAnytype2 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMapWithUndeclaredPropertiesAnytype2() { @@ -225,7 +225,7 @@ public Object getMapWithUndeclaredPropertiesAnytype2() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; @@ -250,7 +250,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesAnytype3Item(Stri * @return mapWithUndeclaredPropertiesAnytype3 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesAnytype3() { @@ -258,7 +258,7 @@ public Map getMapWithUndeclaredPropertiesAnytype3() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; @@ -275,7 +275,7 @@ public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object empt * @return emptyMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getEmptyMap() { @@ -283,7 +283,7 @@ public Object getEmptyMap() { } - @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonProperty(value = JSON_PROPERTY_EMPTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) { this.emptyMap = emptyMap; @@ -308,7 +308,7 @@ public AdditionalPropertiesClass putMapWithUndeclaredPropertiesStringItem(String * @return mapWithUndeclaredPropertiesString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapWithUndeclaredPropertiesString() { @@ -316,7 +316,7 @@ public Map getMapWithUndeclaredPropertiesString() { } - @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index 1711795f4a07..e96de54900e0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java @@ -71,7 +71,7 @@ public Animal className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -79,7 +79,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; @@ -96,7 +96,7 @@ public Animal color(@javax.annotation.Nullable String color) { * @return color */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getColor() { @@ -104,7 +104,7 @@ public String getColor() { } - @JsonProperty(JSON_PROPERTY_COLOR) + @JsonProperty(value = JSON_PROPERTY_COLOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(@javax.annotation.Nullable String color) { this.color = color; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java index 4851eb69bdd2..ef16ea3cdbe4 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java @@ -59,7 +59,7 @@ public Apple cultivar(@javax.annotation.Nullable String cultivar) { * @return cultivar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCultivar() { @@ -67,7 +67,7 @@ public String getCultivar() { } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCultivar(@javax.annotation.Nullable String cultivar) { this.cultivar = cultivar; @@ -84,7 +84,7 @@ public Apple origin(@javax.annotation.Nullable String origin) { * @return origin */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getOrigin() { @@ -92,7 +92,7 @@ public String getOrigin() { } - @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonProperty(value = JSON_PROPERTY_ORIGIN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrigin(@javax.annotation.Nullable String origin) { this.origin = origin; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java index 96d8487b83d0..af6fc5580f90 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java @@ -59,7 +59,7 @@ public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) { * @return cultivar */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCultivar() { @@ -67,7 +67,7 @@ public String getCultivar() { } - @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonProperty(value = JSON_PROPERTY_CULTIVAR, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCultivar(@javax.annotation.Nonnull String cultivar) { this.cultivar = cultivar; @@ -84,7 +84,7 @@ public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) { * @return mealy */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMealy() { @@ -92,7 +92,7 @@ public Boolean getMealy() { } - @JsonProperty(JSON_PROPERTY_MEALY) + @JsonProperty(value = JSON_PROPERTY_MEALY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMealy(@javax.annotation.Nullable Boolean mealy) { this.mealy = mealy; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index feb4a08e0dae..da399b6d0e0b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -64,7 +64,7 @@ public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayAr * @return arrayArrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayNumber() { @@ -72,7 +72,7 @@ public List> getArrayArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(@javax.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 2373bdb25573..6849db0e043f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -64,7 +64,7 @@ public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { * @return arrayNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayNumber() { @@ -72,7 +72,7 @@ public List getArrayNumber() { } - @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(@javax.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java index 0c8231beefbb..353421338dbd 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -74,7 +74,7 @@ public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { * @return arrayOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayOfString() { @@ -82,7 +82,7 @@ public List getArrayOfString() { } - @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_ARRAY_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(@javax.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -107,7 +107,7 @@ public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) * @return arrayArrayOfInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfInteger() { @@ -115,7 +115,7 @@ public List> getArrayArrayOfInteger() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(@javax.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -140,7 +140,7 @@ public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelI * @return arrayArrayOfModel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List> getArrayArrayOfModel() { @@ -148,7 +148,7 @@ public List> getArrayArrayOfModel() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(@javax.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java index 8836bd274ffa..6e095e5204dc 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java @@ -55,7 +55,7 @@ public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { * @return lengthCm */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getLengthCm() { @@ -63,7 +63,7 @@ public BigDecimal getLengthCm() { } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) { this.lengthCm = lengthCm; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java index afcf1039cf11..b38bbf20df74 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java @@ -60,7 +60,7 @@ public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { * @return lengthCm */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getLengthCm() { @@ -68,7 +68,7 @@ public BigDecimal getLengthCm() { } - @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonProperty(value = JSON_PROPERTY_LENGTH_CM, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) { this.lengthCm = lengthCm; @@ -85,7 +85,7 @@ public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) { * @return sweet */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSweet() { @@ -93,7 +93,7 @@ public Boolean getSweet() { } - @JsonProperty(JSON_PROPERTY_SWEET) + @JsonProperty(value = JSON_PROPERTY_SWEET, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSweet(@javax.annotation.Nullable Boolean sweet) { this.sweet = sweet; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java index 94494c919ac8..d940919779d7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java @@ -53,7 +53,7 @@ public BasquePig className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -61,7 +61,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java index b89b1c4eaa1b..25686fd39235 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java @@ -78,7 +78,7 @@ public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) { * @return smallCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallCamel() { @@ -86,7 +86,7 @@ public String getSmallCamel() { } - @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_SMALL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -103,7 +103,7 @@ public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCame * @return capitalCamel */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalCamel() { @@ -111,7 +111,7 @@ public String getCapitalCamel() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_CAMEL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -128,7 +128,7 @@ public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) { * @return smallSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSmallSnake() { @@ -136,7 +136,7 @@ public String getSmallSnake() { } - @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_SMALL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -153,7 +153,7 @@ public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnak * @return capitalSnake */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCapitalSnake() { @@ -161,7 +161,7 @@ public String getCapitalSnake() { } - @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonProperty(value = JSON_PROPERTY_CAPITAL_SNAKE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -178,7 +178,7 @@ public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHF * @return scAETHFlowPoints */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getScAETHFlowPoints() { @@ -186,7 +186,7 @@ public String getScAETHFlowPoints() { } - @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonProperty(value = JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -203,7 +203,7 @@ public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) { * @return ATT_NAME */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getATTNAME() { @@ -211,7 +211,7 @@ public String getATTNAME() { } - @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonProperty(value = JSON_PROPERTY_A_T_T_N_A_M_E, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) { this.ATT_NAME = ATT_NAME; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java index 7d55d47c4c06..32ab4aa99588 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java @@ -68,7 +68,7 @@ public Cat declawed(@javax.annotation.Nullable Boolean declawed) { * @return declawed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getDeclawed() { @@ -76,7 +76,7 @@ public Boolean getDeclawed() { } - @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(@javax.annotation.Nullable Boolean declawed) { this.declawed = declawed; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java index 99dbcd6b8e61..f56c9c236707 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java @@ -58,7 +58,7 @@ public Category id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -66,7 +66,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,7 +83,7 @@ public Category name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -91,7 +91,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java index 1da24ccbd0c0..b65a2c26d169 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java @@ -74,7 +74,7 @@ public ChildCat name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -82,7 +82,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; @@ -107,7 +107,7 @@ public ChildCat petType(@javax.annotation.Nullable String petType) { * @return petType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPetType() { @@ -115,7 +115,7 @@ public String getPetType() { } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetType(@javax.annotation.Nullable String petType) { if (!PET_TYPE_VALUES.contains(petType)) { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java index 9a896c1ab2ec..42a8632bf4d8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java @@ -53,7 +53,7 @@ public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -61,7 +61,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java index 1551d58a18fd..f13962270b04 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java @@ -53,7 +53,7 @@ public Client client(@javax.annotation.Nullable String client) { * @return client */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getClient() { @@ -61,7 +61,7 @@ public String getClient() { } - @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonProperty(value = JSON_PROPERTY_CLIENT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(@javax.annotation.Nullable String client) { this.client = client; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 94ec4c3e0dd8..acac2c3882ca 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -62,7 +62,7 @@ public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -70,7 +70,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -87,7 +87,7 @@ public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String q * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { @@ -95,7 +95,7 @@ public String getQuadrilateralType() { } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java index facb225e795a..b71a823d3a45 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java @@ -53,7 +53,7 @@ public DanishPig className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -61,7 +61,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 0aed1fe812ba..cdf85acfd8c1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -55,7 +55,7 @@ public DeprecatedObject name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -63,7 +63,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java index 277e01974853..30d21963b254 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java @@ -67,7 +67,7 @@ public Dog breed(@javax.annotation.Nullable String breed) { * @return breed */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBreed() { @@ -75,7 +75,7 @@ public String getBreed() { } - @JsonProperty(JSON_PROPERTY_BREED) + @JsonProperty(value = JSON_PROPERTY_BREED, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(@javax.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java index 5899ee0b9afb..cf4f6a92d195 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java @@ -80,7 +80,7 @@ public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) { * @return mainShape */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Shape getMainShape() { @@ -88,7 +88,7 @@ public Shape getMainShape() { } - @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonProperty(value = JSON_PROPERTY_MAIN_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMainShape(@javax.annotation.Nullable Shape mainShape) { this.mainShape = mainShape; @@ -111,7 +111,7 @@ public ShapeOrNull getShapeOrNull() { return shapeOrNull.orElse(null); } - @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonProperty(value = JSON_PROPERTY_SHAPE_OR_NULL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getShapeOrNull_JsonNullable() { @@ -144,7 +144,7 @@ public NullableShape getNullableShape() { return nullableShape.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_SHAPE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_SHAPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableShape_JsonNullable() { @@ -179,7 +179,7 @@ public Drawing addShapesItem(Shape shapesItem) { * @return shapes */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getShapes() { @@ -187,7 +187,7 @@ public List getShapes() { } - @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonProperty(value = JSON_PROPERTY_SHAPES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapes(@javax.annotation.Nullable List shapes) { this.shapes = shapes; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 0d6bec95c7ef..b00f1405ac42 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -130,7 +130,7 @@ public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbo * @return justSymbol */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JustSymbolEnum getJustSymbol() { @@ -138,7 +138,7 @@ public JustSymbolEnum getJustSymbol() { } - @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonProperty(value = JSON_PROPERTY_JUST_SYMBOL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -163,7 +163,7 @@ public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { * @return arrayEnum */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayEnum() { @@ -171,7 +171,7 @@ public List getArrayEnum() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(@javax.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index 381ddcc06cfe..82c10e220e64 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -280,7 +280,7 @@ public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) * @return enumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumStringEnum getEnumString() { @@ -288,7 +288,7 @@ public EnumStringEnum getEnumString() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -305,7 +305,7 @@ public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredE * @return enumStringRequired */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public EnumStringRequiredEnum getEnumStringRequired() { @@ -313,7 +313,7 @@ public EnumStringRequiredEnum getEnumStringRequired() { } - @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonProperty(value = JSON_PROPERTY_ENUM_STRING_REQUIRED, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -330,7 +330,7 @@ public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteg * @return enumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerEnum getEnumInteger() { @@ -338,7 +338,7 @@ public EnumIntegerEnum getEnumInteger() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -355,7 +355,7 @@ public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum e * @return enumIntegerOnly */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumIntegerOnlyEnum getEnumIntegerOnly() { @@ -363,7 +363,7 @@ public EnumIntegerOnlyEnum getEnumIntegerOnly() { } - @JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY) + @JsonProperty(value = JSON_PROPERTY_ENUM_INTEGER_ONLY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) { this.enumIntegerOnly = enumIntegerOnly; @@ -380,7 +380,7 @@ public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) * @return enumNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EnumNumberEnum getEnumNumber() { @@ -388,7 +388,7 @@ public EnumNumberEnum getEnumNumber() { } - @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonProperty(value = JSON_PROPERTY_ENUM_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -411,7 +411,7 @@ public OuterEnum getOuterEnum() { return outerEnum.orElse(null); } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getOuterEnum_JsonNullable() { @@ -438,7 +438,7 @@ public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger out * @return outerEnumInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumInteger getOuterEnumInteger() { @@ -446,7 +446,7 @@ public OuterEnumInteger getOuterEnumInteger() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; @@ -463,7 +463,7 @@ public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaul * @return outerEnumDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumDefaultValue getOuterEnumDefaultValue() { @@ -471,7 +471,7 @@ public OuterEnumDefaultValue getOuterEnumDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; @@ -488,7 +488,7 @@ public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnu * @return outerEnumIntegerDefaultValue */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { @@ -496,7 +496,7 @@ public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() { } - @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonProperty(value = JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index b8d65bed7ee0..8c3af8f9b634 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -62,7 +62,7 @@ public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -70,7 +70,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -87,7 +87,7 @@ public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangl * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -95,7 +95,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 077db931248e..9e1c04700815 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -61,7 +61,7 @@ public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) { * @return _file */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ModelFile getFile() { @@ -69,7 +69,7 @@ public ModelFile getFile() { } - @JsonProperty(JSON_PROPERTY_FILE) + @JsonProperty(value = JSON_PROPERTY_FILE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -94,7 +94,7 @@ public FileSchemaTestClass addFilesItem(ModelFile filesItem) { * @return files */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getFiles() { @@ -102,7 +102,7 @@ public List getFiles() { } - @JsonProperty(JSON_PROPERTY_FILES) + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(@javax.annotation.Nullable List files) { this.files = files; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java index b7260018dc49..8ff07fe3ee61 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java @@ -53,7 +53,7 @@ public Foo bar(@javax.annotation.Nullable String bar) { * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -61,7 +61,7 @@ public String getBar() { } - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(@javax.annotation.Nullable String bar) { this.bar = bar; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index c46163825953..74da7f77136e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -55,7 +55,7 @@ public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Foo getString() { @@ -63,7 +63,7 @@ public Foo getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable Foo string) { this.string = string; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index f562f7f131b7..856ee4b25366 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -136,7 +136,7 @@ public FormatTest integer(@javax.annotation.Nullable Integer integer) { * @return integer */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInteger() { @@ -144,7 +144,7 @@ public Integer getInteger() { } - @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -163,7 +163,7 @@ public FormatTest int32(@javax.annotation.Nullable Integer int32) { * @return int32 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getInt32() { @@ -171,7 +171,7 @@ public Integer getInt32() { } - @JsonProperty(JSON_PROPERTY_INT32) + @JsonProperty(value = JSON_PROPERTY_INT32, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(@javax.annotation.Nullable Integer int32) { this.int32 = int32; @@ -188,7 +188,7 @@ public FormatTest int64(@javax.annotation.Nullable Long int64) { * @return int64 */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getInt64() { @@ -196,7 +196,7 @@ public Long getInt64() { } - @JsonProperty(JSON_PROPERTY_INT64) + @JsonProperty(value = JSON_PROPERTY_INT64, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(@javax.annotation.Nullable Long int64) { this.int64 = int64; @@ -215,7 +215,7 @@ public FormatTest number(@javax.annotation.Nonnull BigDecimal number) { * @return number */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getNumber() { @@ -223,7 +223,7 @@ public BigDecimal getNumber() { } - @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_NUMBER, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(@javax.annotation.Nonnull BigDecimal number) { this.number = number; @@ -242,7 +242,7 @@ public FormatTest _float(@javax.annotation.Nullable Float _float) { * @return _float */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Float getFloat() { @@ -250,7 +250,7 @@ public Float getFloat() { } - @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonProperty(value = JSON_PROPERTY_FLOAT, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(@javax.annotation.Nullable Float _float) { this._float = _float; @@ -269,7 +269,7 @@ public FormatTest _double(@javax.annotation.Nullable Double _double) { * @return _double */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getDouble() { @@ -277,7 +277,7 @@ public Double getDouble() { } - @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonProperty(value = JSON_PROPERTY_DOUBLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(@javax.annotation.Nullable Double _double) { this._double = _double; @@ -294,7 +294,7 @@ public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) { * @return decimal */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getDecimal() { @@ -302,7 +302,7 @@ public BigDecimal getDecimal() { } - @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonProperty(value = JSON_PROPERTY_DECIMAL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) { this.decimal = decimal; @@ -319,7 +319,7 @@ public FormatTest string(@javax.annotation.Nullable String string) { * @return string */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getString() { @@ -327,7 +327,7 @@ public String getString() { } - @JsonProperty(JSON_PROPERTY_STRING) + @JsonProperty(value = JSON_PROPERTY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(@javax.annotation.Nullable String string) { this.string = string; @@ -344,7 +344,7 @@ public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) { * @return _byte */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getByte() { @@ -352,7 +352,7 @@ public byte[] getByte() { } - @JsonProperty(JSON_PROPERTY_BYTE) + @JsonProperty(value = JSON_PROPERTY_BYTE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(@javax.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -369,7 +369,7 @@ public FormatTest binary(@javax.annotation.Nullable File binary) { * @return binary */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public File getBinary() { @@ -377,7 +377,7 @@ public File getBinary() { } - @JsonProperty(JSON_PROPERTY_BINARY) + @JsonProperty(value = JSON_PROPERTY_BINARY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(@javax.annotation.Nullable File binary) { this.binary = binary; @@ -394,7 +394,7 @@ public FormatTest date(@javax.annotation.Nonnull LocalDate date) { * @return date */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public LocalDate getDate() { @@ -402,7 +402,7 @@ public LocalDate getDate() { } - @JsonProperty(JSON_PROPERTY_DATE) + @JsonProperty(value = JSON_PROPERTY_DATE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(@javax.annotation.Nonnull LocalDate date) { this.date = date; @@ -419,7 +419,7 @@ public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -427,7 +427,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -444,7 +444,7 @@ public FormatTest uuid(@javax.annotation.Nullable UUID uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -452,7 +452,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -469,7 +469,7 @@ public FormatTest password(@javax.annotation.Nonnull String password) { * @return password */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPassword() { @@ -477,7 +477,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(@javax.annotation.Nonnull String password) { this.password = password; @@ -494,7 +494,7 @@ public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWit * @return patternWithDigits */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigits() { @@ -502,7 +502,7 @@ public String getPatternWithDigits() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) { this.patternWithDigits = patternWithDigits; @@ -519,7 +519,7 @@ public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable Strin * @return patternWithDigitsAndDelimiter */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPatternWithDigitsAndDelimiter() { @@ -527,7 +527,7 @@ public String getPatternWithDigitsAndDelimiter() { } - @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonProperty(value = JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index f6b8fa19ee4d..d066005fb403 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -66,7 +66,7 @@ public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) { * @return petType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPetType() { @@ -74,7 +74,7 @@ public String getPetType() { } - @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonProperty(value = JSON_PROPERTY_PET_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(@javax.annotation.Nonnull String petType) { this.petType = petType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 4ff9644c2645..81bbd03244cb 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -64,7 +64,7 @@ public HasOnlyReadOnly( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -79,7 +79,7 @@ public String getBar() { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoo() { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 25e8d959ea40..c16a435942ec 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -62,7 +62,7 @@ public String getNullableMessage() { return nullableMessage.orElse(null); } - @JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_NULLABLE_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNullableMessage_JsonNullable() { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 019aac26ae7e..773cc4753b41 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -58,7 +58,7 @@ public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -66,7 +66,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -83,7 +83,7 @@ public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleT * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -91,7 +91,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index ebdd881ece8a..b62b4bfea3e0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -113,7 +113,7 @@ public MapTest putMapMapOfStringItem(String key, Map mapMapOfStr * @return mapMapOfString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapOfString() { @@ -121,7 +121,7 @@ public Map> getMapMapOfString() { } - @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_OF_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(@javax.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -146,7 +146,7 @@ public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) * @return mapOfEnumString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMapOfEnumString() { @@ -154,7 +154,7 @@ public Map getMapOfEnumString() { } - @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_OF_ENUM_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -179,7 +179,7 @@ public MapTest putDirectMapItem(String key, Boolean directMapItem) { * @return directMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getDirectMap() { @@ -187,7 +187,7 @@ public Map getDirectMap() { } - @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_DIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(@javax.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -212,7 +212,7 @@ public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { * @return indirectMap */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getIndirectMap() { @@ -220,7 +220,7 @@ public Map getIndirectMap() { } - @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonProperty(value = JSON_PROPERTY_INDIRECT_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(@javax.annotation.Nullable Map indirectMap) { this.indirectMap = indirectMap; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 1b865b9cbfaf..1d842664b34d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -68,7 +68,7 @@ public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullab * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public UUID getUuid() { @@ -76,7 +76,7 @@ public UUID getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -93,7 +93,7 @@ public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nu * @return dateTime */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getDateTime() { @@ -101,7 +101,7 @@ public OffsetDateTime getDateTime() { } - @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonProperty(value = JSON_PROPERTY_DATE_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -126,7 +126,7 @@ public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal * @return map */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map getMap() { @@ -134,7 +134,7 @@ public Map getMap() { } - @JsonProperty(JSON_PROPERTY_MAP) + @JsonProperty(value = JSON_PROPERTY_MAP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(@javax.annotation.Nullable Map map) { this.map = map; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java index 451787519c0c..7a01b45d581e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java @@ -59,7 +59,7 @@ public Model200Response name(@javax.annotation.Nullable Integer name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getName() { @@ -67,7 +67,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable Integer name) { this.name = name; @@ -84,7 +84,7 @@ public Model200Response propertyClass(@javax.annotation.Nullable String property * @return propertyClass */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPropertyClass() { @@ -92,7 +92,7 @@ public String getPropertyClass() { } - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonProperty(value = JSON_PROPERTY_PROPERTY_CLASS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(@javax.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java index e5c01fc23150..249bd01c88e5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -64,7 +64,7 @@ public ModelApiResponse code(@javax.annotation.Nullable Integer code) { * @return code */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { @@ -72,7 +72,7 @@ public Integer getCode() { } - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(@javax.annotation.Nullable Integer code) { this.code = code; @@ -89,7 +89,7 @@ public ModelApiResponse type(@javax.annotation.Nullable String type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { @@ -97,7 +97,7 @@ public String getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable String type) { this.type = type; @@ -114,7 +114,7 @@ public ModelApiResponse message(@javax.annotation.Nullable String message) { * @return message */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { @@ -122,7 +122,7 @@ public String getMessage() { } - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(@javax.annotation.Nullable String message) { this.message = message; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java index 429624d218d8..388ca564e6f4 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelFile.java @@ -54,7 +54,7 @@ public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) { * @return sourceURI */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSourceURI() { @@ -62,7 +62,7 @@ public String getSourceURI() { } - @JsonProperty(JSON_PROPERTY_SOURCE_U_R_I) + @JsonProperty(value = JSON_PROPERTY_SOURCE_U_R_I, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSourceURI(@javax.annotation.Nullable String sourceURI) { this.sourceURI = sourceURI; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java index d6b556b0f990..fa41cb6b8dd8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelList.java @@ -54,7 +54,7 @@ public ModelList _123list(@javax.annotation.Nullable String _123list) { * @return _123list */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String get123list() { @@ -62,7 +62,7 @@ public String get123list() { } - @JsonProperty(JSON_PROPERTY_123LIST) + @JsonProperty(value = JSON_PROPERTY_123LIST, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set123list(@javax.annotation.Nullable String _123list) { this._123list = _123list; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java index bb90eb857fcd..1266e788d2f4 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -54,7 +54,7 @@ public ModelReturn _return(@javax.annotation.Nullable Integer _return) { * @return _return */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getReturn() { @@ -62,7 +62,7 @@ public Integer getReturn() { } - @JsonProperty(JSON_PROPERTY_RETURN) + @JsonProperty(value = JSON_PROPERTY_RETURN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(@javax.annotation.Nullable Integer _return) { this._return = _return; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java index 0686b25f5433..23e683decdc8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java @@ -78,7 +78,7 @@ public Name name(@javax.annotation.Nonnull Integer name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getName() { @@ -86,7 +86,7 @@ public Integer getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -98,7 +98,7 @@ public void setName(@javax.annotation.Nonnull Integer name) { * @return snakeCase */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAKE_CASE) + @JsonProperty(value = JSON_PROPERTY_SNAKE_CASE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getSnakeCase() { @@ -118,7 +118,7 @@ public Name property(@javax.annotation.Nullable String property) { * @return property */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProperty() { @@ -126,7 +126,7 @@ public String getProperty() { } - @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(@javax.annotation.Nullable String property) { this.property = property; @@ -138,7 +138,7 @@ public void setProperty(@javax.annotation.Nullable String property) { * @return _123number */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_123NUMBER) + @JsonProperty(value = JSON_PROPERTY_123NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer get123number() { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java index 2de6c519b628..66ad30793669 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java @@ -119,7 +119,7 @@ public Integer getIntegerProp() { return integerProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_INTEGER_PROP) + @JsonProperty(value = JSON_PROPERTY_INTEGER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getIntegerProp_JsonNullable() { @@ -152,7 +152,7 @@ public BigDecimal getNumberProp() { return numberProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_NUMBER_PROP) + @JsonProperty(value = JSON_PROPERTY_NUMBER_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getNumberProp_JsonNullable() { @@ -185,7 +185,7 @@ public Boolean getBooleanProp() { return booleanProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_BOOLEAN_PROP) + @JsonProperty(value = JSON_PROPERTY_BOOLEAN_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getBooleanProp_JsonNullable() { @@ -218,7 +218,7 @@ public String getStringProp() { return stringProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_STRING_PROP) + @JsonProperty(value = JSON_PROPERTY_STRING_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getStringProp_JsonNullable() { @@ -251,7 +251,7 @@ public LocalDate getDateProp() { return dateProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATE_PROP) + @JsonProperty(value = JSON_PROPERTY_DATE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDateProp_JsonNullable() { @@ -284,7 +284,7 @@ public OffsetDateTime getDatetimeProp() { return datetimeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_DATETIME_PROP) + @JsonProperty(value = JSON_PROPERTY_DATETIME_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getDatetimeProp_JsonNullable() { @@ -329,7 +329,7 @@ public List getArrayNullableProp() { return arrayNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayNullableProp_JsonNullable() { @@ -374,7 +374,7 @@ public List getArrayAndItemsNullableProp() { return arrayAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getArrayAndItemsNullableProp_JsonNullable() { @@ -409,7 +409,7 @@ public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) { * @return arrayItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getArrayItemsNullable() { @@ -417,7 +417,7 @@ public List getArrayItemsNullable() { } - @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ARRAY_ITEMS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(@javax.annotation.Nullable List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; @@ -452,7 +452,7 @@ public Map getObjectNullableProp() { return objectNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_NULLABLE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectNullableProp_JsonNullable() { @@ -497,7 +497,7 @@ public Map getObjectAndItemsNullableProp() { return objectAndItemsNullableProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP) + @JsonProperty(value = JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable> getObjectAndItemsNullableProp_JsonNullable() { @@ -532,7 +532,7 @@ public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNu * @return objectItemsNullable */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map getObjectItemsNullable() { @@ -540,7 +540,7 @@ public Map getObjectItemsNullable() { } - @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_ITEMS_NULLABLE, required = false) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(@javax.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java index 875690a616f0..ece5b833abc0 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -54,7 +54,7 @@ public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) { * @return justNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getJustNumber() { @@ -62,7 +62,7 @@ public BigDecimal getJustNumber() { } - @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonProperty(value = JSON_PROPERTY_JUST_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) { this.justNumber = justNumber; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 50f7351f251f..ef57eac59dca 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -75,7 +75,7 @@ public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) { * @return uuid */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUuid() { @@ -83,7 +83,7 @@ public String getUuid() { } - @JsonProperty(JSON_PROPERTY_UUID) + @JsonProperty(value = JSON_PROPERTY_UUID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(@javax.annotation.Nullable String uuid) { this.uuid = uuid; @@ -103,7 +103,7 @@ public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getId() { @@ -112,7 +112,7 @@ public BigDecimal getId() { @Deprecated - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable BigDecimal id) { this.id = id; @@ -132,7 +132,7 @@ public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable Depre */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DeprecatedObject getDeprecatedRef() { @@ -141,7 +141,7 @@ public DeprecatedObject getDeprecatedRef() { @Deprecated - @JsonProperty(JSON_PROPERTY_DEPRECATED_REF) + @JsonProperty(value = JSON_PROPERTY_DEPRECATED_REF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) { this.deprecatedRef = deprecatedRef; @@ -169,7 +169,7 @@ public ObjectWithDeprecatedFields addBarsItem(String barsItem) { */ @Deprecated @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getBars() { @@ -178,7 +178,7 @@ public List getBars() { @Deprecated - @JsonProperty(JSON_PROPERTY_BARS) + @JsonProperty(value = JSON_PROPERTY_BARS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBars(@javax.annotation.Nullable List bars) { this.bars = bars; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 6358806cdc9a..aa4397eb480e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -116,7 +116,7 @@ public Order id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -124,7 +124,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -141,7 +141,7 @@ public Order petId(@javax.annotation.Nullable Long petId) { * @return petId */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { @@ -149,7 +149,7 @@ public Long getPetId() { } - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(@javax.annotation.Nullable Long petId) { this.petId = petId; @@ -166,7 +166,7 @@ public Order quantity(@javax.annotation.Nullable Integer quantity) { * @return quantity */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { @@ -174,7 +174,7 @@ public Integer getQuantity() { } - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -191,7 +191,7 @@ public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { * @return shipDate */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OffsetDateTime getShipDate() { @@ -199,7 +199,7 @@ public OffsetDateTime getShipDate() { } - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -216,7 +216,7 @@ public Order status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -224,7 +224,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; @@ -241,7 +241,7 @@ public Order complete(@javax.annotation.Nullable Boolean complete) { * @return complete */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { @@ -249,7 +249,7 @@ public Boolean getComplete() { } - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(@javax.annotation.Nullable Boolean complete) { this.complete = complete; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java index 5460a140352e..0ebef71b6e23 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -64,7 +64,7 @@ public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) { * @return myNumber */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getMyNumber() { @@ -72,7 +72,7 @@ public BigDecimal getMyNumber() { } - @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonProperty(value = JSON_PROPERTY_MY_NUMBER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -89,7 +89,7 @@ public OuterComposite myString(@javax.annotation.Nullable String myString) { * @return myString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMyString() { @@ -97,7 +97,7 @@ public String getMyString() { } - @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonProperty(value = JSON_PROPERTY_MY_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -114,7 +114,7 @@ public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) { * @return myBoolean */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getMyBoolean() { @@ -122,7 +122,7 @@ public Boolean getMyBoolean() { } - @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonProperty(value = JSON_PROPERTY_MY_BOOLEAN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) { this.myBoolean = myBoolean; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index 16a903b6a46f..b42708602291 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -119,7 +119,7 @@ public Pet id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -127,7 +127,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -144,7 +144,7 @@ public Pet category(@javax.annotation.Nullable Category category) { * @return category */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { @@ -152,7 +152,7 @@ public Category getCategory() { } - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(@javax.annotation.Nullable Category category) { this.category = category; @@ -169,7 +169,7 @@ public Pet name(@javax.annotation.Nonnull String name) { * @return name */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { @@ -177,7 +177,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull String name) { this.name = name; @@ -202,7 +202,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * @return photoUrls */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { @@ -210,7 +210,7 @@ public List getPhotoUrls() { } - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(@javax.annotation.Nonnull List photoUrls) { this.photoUrls = photoUrls; @@ -235,7 +235,7 @@ public Pet addTagsItem(Tag tagsItem) { * @return tags */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { @@ -243,7 +243,7 @@ public List getTags() { } - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(@javax.annotation.Nullable List tags) { this.tags = tags; @@ -260,7 +260,7 @@ public Pet status(@javax.annotation.Nullable StatusEnum status) { * @return status */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { @@ -268,7 +268,7 @@ public StatusEnum getStatus() { } - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(@javax.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index d5fb200130a9..9186103a8e6c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -53,7 +53,7 @@ public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { @@ -61,7 +61,7 @@ public String getQuadrilateralType() { } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 886ae398cbb9..b5542848af95 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -61,7 +61,7 @@ public ReadOnlyFirst( * @return bar */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR) + @JsonProperty(value = JSON_PROPERTY_BAR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBar() { @@ -81,7 +81,7 @@ public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) { * @return baz */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBaz() { @@ -89,7 +89,7 @@ public String getBaz() { } - @JsonProperty(JSON_PROPERTY_BAZ) + @JsonProperty(value = JSON_PROPERTY_BAZ, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(@javax.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 41608ebae8c0..20dcabb04260 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -62,7 +62,7 @@ public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -70,7 +70,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -87,7 +87,7 @@ public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleTyp * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -95,7 +95,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java index 3895b0948f3c..1bad9d0f94b5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -53,7 +53,7 @@ public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) { * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -61,7 +61,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 5e97a946c774..4f1d3610b59b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -62,7 +62,7 @@ public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) * @return shapeType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getShapeType() { @@ -70,7 +70,7 @@ public String getShapeType() { } - @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonProperty(value = JSON_PROPERTY_SHAPE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(@javax.annotation.Nonnull String shapeType) { this.shapeType = shapeType; @@ -87,7 +87,7 @@ public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String qu * @return quadrilateralType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getQuadrilateralType() { @@ -95,7 +95,7 @@ public String getQuadrilateralType() { } - @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonProperty(value = JSON_PROPERTY_QUADRILATERAL_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) { this.quadrilateralType = quadrilateralType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java index ae07c6cc97e6..78ace4950169 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -59,7 +59,7 @@ public SpecialModelName() { * @return $specialPropertyName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long get$SpecialPropertyName() { @@ -67,7 +67,7 @@ public SpecialModelName() { } - @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; @@ -84,7 +84,7 @@ public SpecialModelName specialModelName(@javax.annotation.Nullable String speci * @return specialModelName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSpecialModelName() { @@ -92,7 +92,7 @@ public String getSpecialModelName() { } - @JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME) + @JsonProperty(value = JSON_PROPERTY_SPECIAL_MODEL_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) { this.specialModelName = specialModelName; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java index 16088fc01723..bbcdb303f4a3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java @@ -58,7 +58,7 @@ public Tag id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -66,7 +66,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -83,7 +83,7 @@ public Tag name(@javax.annotation.Nullable String name) { * @return name */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { @@ -91,7 +91,7 @@ public String getName() { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(@javax.annotation.Nullable String name) { this.name = name; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 90e79bacf742..b204e3875d84 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -58,7 +58,7 @@ public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotat * @return someProperty */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { @@ -66,7 +66,7 @@ public String getSomeProperty() { } - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java index 138e05555e30..531a6f1b26b7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -53,7 +53,7 @@ public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleT * @return triangleType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTriangleType() { @@ -61,7 +61,7 @@ public String getTriangleType() { } - @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonProperty(value = JSON_PROPERTY_TRIANGLE_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(@javax.annotation.Nonnull String triangleType) { this.triangleType = triangleType; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java index 4417d0e7c0ee..c4be8b975194 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java @@ -109,7 +109,7 @@ public User id(@javax.annotation.Nullable Long id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { @@ -117,7 +117,7 @@ public Long getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable Long id) { this.id = id; @@ -134,7 +134,7 @@ public User username(@javax.annotation.Nullable String username) { * @return username */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { @@ -142,7 +142,7 @@ public String getUsername() { } - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(@javax.annotation.Nullable String username) { this.username = username; @@ -159,7 +159,7 @@ public User firstName(@javax.annotation.Nullable String firstName) { * @return firstName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { @@ -167,7 +167,7 @@ public String getFirstName() { } - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(@javax.annotation.Nullable String firstName) { this.firstName = firstName; @@ -184,7 +184,7 @@ public User lastName(@javax.annotation.Nullable String lastName) { * @return lastName */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { @@ -192,7 +192,7 @@ public String getLastName() { } - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(@javax.annotation.Nullable String lastName) { this.lastName = lastName; @@ -209,7 +209,7 @@ public User email(@javax.annotation.Nullable String email) { * @return email */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { @@ -217,7 +217,7 @@ public String getEmail() { } - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(@javax.annotation.Nullable String email) { this.email = email; @@ -234,7 +234,7 @@ public User password(@javax.annotation.Nullable String password) { * @return password */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { @@ -242,7 +242,7 @@ public String getPassword() { } - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(@javax.annotation.Nullable String password) { this.password = password; @@ -259,7 +259,7 @@ public User phone(@javax.annotation.Nullable String phone) { * @return phone */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { @@ -267,7 +267,7 @@ public String getPhone() { } - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(@javax.annotation.Nullable String phone) { this.phone = phone; @@ -284,7 +284,7 @@ public User userStatus(@javax.annotation.Nullable Integer userStatus) { * @return userStatus */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { @@ -292,7 +292,7 @@ public Integer getUserStatus() { } - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(@javax.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; @@ -309,7 +309,7 @@ public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWi * @return objectWithNoDeclaredProps */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getObjectWithNoDeclaredProps() { @@ -317,7 +317,7 @@ public Object getObjectWithNoDeclaredProps() { } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; @@ -340,7 +340,7 @@ public Object getObjectWithNoDeclaredPropsNullable() { return objectWithNoDeclaredPropsNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getObjectWithNoDeclaredPropsNullable_JsonNullable() { @@ -373,7 +373,7 @@ public Object getAnyTypeProp() { return anyTypeProp.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypeProp_JsonNullable() { @@ -406,7 +406,7 @@ public Object getAnyTypePropNullable() { return anyTypePropNullable.orElse(null); } - @JsonProperty(JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE) + @JsonProperty(value = JSON_PROPERTY_ANY_TYPE_PROP_NULLABLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public JsonNullable getAnyTypePropNullable_JsonNullable() { diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java index c18d31c5c197..0e456c9d1a69 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java @@ -64,7 +64,7 @@ public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { * @return hasBaleen */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasBaleen() { @@ -72,7 +72,7 @@ public Boolean getHasBaleen() { } - @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonProperty(value = JSON_PROPERTY_HAS_BALEEN, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) { this.hasBaleen = hasBaleen; @@ -89,7 +89,7 @@ public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { * @return hasTeeth */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getHasTeeth() { @@ -97,7 +97,7 @@ public Boolean getHasTeeth() { } - @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonProperty(value = JSON_PROPERTY_HAS_TEETH, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) { this.hasTeeth = hasTeeth; @@ -114,7 +114,7 @@ public Whale className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -122,7 +122,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java index 7f20f3cce8bc..acf18a698e3f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java @@ -100,7 +100,7 @@ public Zebra type(@javax.annotation.Nullable TypeEnum type) { * @return type */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { @@ -108,7 +108,7 @@ public TypeEnum getType() { } - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(@javax.annotation.Nullable TypeEnum type) { this.type = type; @@ -125,7 +125,7 @@ public Zebra className(@javax.annotation.Nonnull String className) { * @return className */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getClassName() { @@ -133,7 +133,7 @@ public String getClassName() { } - @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonProperty(value = JSON_PROPERTY_CLASS_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(@javax.annotation.Nonnull String className) { this.className = className; diff --git a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Category.java b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Category.java index 3132b518447e..36b7539dab3c 100644 --- a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Category.java +++ b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Category.java @@ -44,7 +44,7 @@ public class Category { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -53,7 +53,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -68,7 +68,7 @@ public Category id(Long id) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -77,7 +77,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; diff --git a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/ModelApiResponse.java b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/ModelApiResponse.java index 4796b0ec36e5..15795e5234fb 100644 --- a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/ModelApiResponse.java +++ b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/ModelApiResponse.java @@ -50,7 +50,7 @@ public class ModelApiResponse { * Get code * @return code **/ - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getCode() { return code; @@ -59,7 +59,7 @@ public Integer getCode() { /** * Set code */ - @JsonProperty(JSON_PROPERTY_CODE) + @JsonProperty(value = JSON_PROPERTY_CODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; @@ -74,7 +74,7 @@ public ModelApiResponse code(Integer code) { * Get type * @return type **/ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; @@ -83,7 +83,7 @@ public String getType() { /** * Set type */ - @JsonProperty(JSON_PROPERTY_TYPE) + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; @@ -98,7 +98,7 @@ public ModelApiResponse type(String type) { * Get message * @return message **/ - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; @@ -107,7 +107,7 @@ public String getMessage() { /** * Set message */ - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; diff --git a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Order.java b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Order.java index 31031beb5379..565b090bbfc4 100644 --- a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Order.java +++ b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Order.java @@ -100,7 +100,7 @@ public static StatusEnum fromValue(String value) { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -109,7 +109,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -124,7 +124,7 @@ public Order id(Long id) { * Get petId * @return petId **/ - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getPetId() { return petId; @@ -133,7 +133,7 @@ public Long getPetId() { /** * Set petId */ - @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonProperty(value = JSON_PROPERTY_PET_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; @@ -148,7 +148,7 @@ public Order petId(Long petId) { * Get quantity * @return quantity **/ - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getQuantity() { return quantity; @@ -157,7 +157,7 @@ public Integer getQuantity() { /** * Set quantity */ - @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonProperty(value = JSON_PROPERTY_QUANTITY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; @@ -172,7 +172,7 @@ public Order quantity(Integer quantity) { * Get shipDate * @return shipDate **/ - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Date getShipDate() { return shipDate; @@ -181,7 +181,7 @@ public Date getShipDate() { /** * Set shipDate */ - @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonProperty(value = JSON_PROPERTY_SHIP_DATE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(Date shipDate) { this.shipDate = shipDate; @@ -196,7 +196,7 @@ public Order shipDate(Date shipDate) { * Order Status * @return status **/ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -205,7 +205,7 @@ public StatusEnum getStatus() { /** * Set status */ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; @@ -220,7 +220,7 @@ public Order status(StatusEnum status) { * Get complete * @return complete **/ - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getComplete() { return complete; @@ -229,7 +229,7 @@ public Boolean getComplete() { /** * Set complete */ - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; diff --git a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Pet.java b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Pet.java index d1e447e3d9cd..949cb15845b7 100644 --- a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Pet.java +++ b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Pet.java @@ -104,7 +104,7 @@ public static StatusEnum fromValue(String value) { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -113,7 +113,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -128,7 +128,7 @@ public Pet id(Long id) { * Get category * @return category **/ - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Category getCategory() { return category; @@ -137,7 +137,7 @@ public Category getCategory() { /** * Set category */ - @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonProperty(value = JSON_PROPERTY_CATEGORY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; @@ -152,7 +152,7 @@ public Pet category(Category category) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -161,7 +161,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; @@ -176,7 +176,7 @@ public Pet name(String name) { * Get photoUrls * @return photoUrls **/ - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getPhotoUrls() { return photoUrls; @@ -185,7 +185,7 @@ public List getPhotoUrls() { /** * Set photoUrls */ - @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonProperty(value = JSON_PROPERTY_PHOTO_URLS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; @@ -208,7 +208,7 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) { * Get tags * @return tags **/ - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getTags() { return tags; @@ -217,7 +217,7 @@ public List getTags() { /** * Set tags */ - @JsonProperty(JSON_PROPERTY_TAGS) + @JsonProperty(value = JSON_PROPERTY_TAGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; @@ -242,7 +242,7 @@ public Pet addTagsItem(Tag tagsItem) { * @deprecated **/ @Deprecated - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public StatusEnum getStatus() { return status; @@ -251,7 +251,7 @@ public StatusEnum getStatus() { /** * Set status */ - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; diff --git a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Tag.java b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Tag.java index c78aac97c6cc..2e9b77d167eb 100644 --- a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Tag.java +++ b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/Tag.java @@ -44,7 +44,7 @@ public class Tag { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -53,7 +53,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -68,7 +68,7 @@ public Tag id(Long id) { * Get name * @return name **/ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; @@ -77,7 +77,7 @@ public String getName() { /** * Set name */ - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; diff --git a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/User.java b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/User.java index 7bd29b222e4e..a4fb319c8a81 100644 --- a/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/User.java +++ b/samples/server/petstore/java-microprofile/src/main/java/org/openapitools/server/model/User.java @@ -77,7 +77,7 @@ public class User { * Get id * @return id **/ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getId() { return id; @@ -86,7 +86,7 @@ public Long getId() { /** * Set id */ - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; @@ -101,7 +101,7 @@ public User id(Long id) { * Get username * @return username **/ - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUsername() { return username; @@ -110,7 +110,7 @@ public String getUsername() { /** * Set username */ - @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonProperty(value = JSON_PROPERTY_USERNAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; @@ -125,7 +125,7 @@ public User username(String username) { * Get firstName * @return firstName **/ - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFirstName() { return firstName; @@ -134,7 +134,7 @@ public String getFirstName() { /** * Set firstName */ - @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonProperty(value = JSON_PROPERTY_FIRST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; @@ -149,7 +149,7 @@ public User firstName(String firstName) { * Get lastName * @return lastName **/ - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLastName() { return lastName; @@ -158,7 +158,7 @@ public String getLastName() { /** * Set lastName */ - @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonProperty(value = JSON_PROPERTY_LAST_NAME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; @@ -173,7 +173,7 @@ public User lastName(String lastName) { * Get email * @return email **/ - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEmail() { return email; @@ -182,7 +182,7 @@ public String getEmail() { /** * Set email */ - @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonProperty(value = JSON_PROPERTY_EMAIL, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; @@ -197,7 +197,7 @@ public User email(String email) { * Get password * @return password **/ - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPassword() { return password; @@ -206,7 +206,7 @@ public String getPassword() { /** * Set password */ - @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonProperty(value = JSON_PROPERTY_PASSWORD, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; @@ -221,7 +221,7 @@ public User password(String password) { * Get phone * @return phone **/ - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPhone() { return phone; @@ -230,7 +230,7 @@ public String getPhone() { /** * Set phone */ - @JsonProperty(JSON_PROPERTY_PHONE) + @JsonProperty(value = JSON_PROPERTY_PHONE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; @@ -245,7 +245,7 @@ public User phone(String phone) { * User Status * @return userStatus **/ - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getUserStatus() { return userStatus; @@ -254,7 +254,7 @@ public Integer getUserStatus() { /** * Set userStatus */ - @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonProperty(value = JSON_PROPERTY_USER_STATUS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus;