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..08b43352e482 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 = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}) @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 ebdea8b61925..d4133686321f 100644 --- a/modules/openapi-generator/src/main/resources/Java/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/pojo.mustache @@ -115,7 +115,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 = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}} {{/readOnlyVars}} ) { this(); @@ -130,7 +130,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 = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}){{/jackson}} {{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-java-all-args-constructor-vars}}) { {{#parent}} super({{#parentVars}}{{name}}{{^-last}}, {{/-last}}{{/parentVars}}); {{/parent}} @@ -261,7 +261,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 = {{#isNullable}}false{{/isNullable}}{{^isNullable}}{{required}}{{/isNullable}}) {{#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 24d02b510e81..8eed5697e12c 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 @@ -2113,10 +2113,10 @@ public void testDeprecatedPropertyJersey3() { 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 06f845179a20..287ecef8644f 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 @@ -58,7 +58,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() { @@ -66,7 +66,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; @@ -83,7 +83,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() { @@ -91,7 +91,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 7ff4ce49257f..030cf4d7e99a 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 @@ -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.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/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 90b54a66761b..174b0af6b3c6 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 @@ -69,7 +69,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() { @@ -77,7 +77,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; @@ -94,7 +94,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() { @@ -102,7 +102,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; @@ -119,7 +119,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() { @@ -127,7 +127,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 0d7cb986a726..d25c334efe1c 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 @@ -141,7 +141,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() { @@ -149,7 +149,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; @@ -174,7 +174,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() { @@ -182,7 +182,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; @@ -207,7 +207,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() { @@ -215,7 +215,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; @@ -240,7 +240,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() { @@ -248,7 +248,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; @@ -273,7 +273,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() { @@ -281,7 +281,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; @@ -316,14 +316,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; } @@ -361,14 +361,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; } @@ -394,14 +394,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 7ea3b30b998f..106b8e39628a 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 @@ -64,7 +64,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() { @@ -72,7 +72,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; @@ -89,7 +89,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() { @@ -97,7 +97,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; @@ -116,7 +116,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() { @@ -124,7 +124,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 4da18d65512a..7cf1c57c2280 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 @@ -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 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() { @@ -153,7 +153,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; @@ -170,7 +170,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() { @@ -178,7 +178,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; @@ -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 List getPhotoUrls() { @@ -211,7 +211,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; @@ -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/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 dcf399eec9f5..df8b7c3b43bc 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 @@ -98,7 +98,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() { @@ -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; @@ -131,7 +131,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() { @@ -139,7 +139,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 f01968cbe720..46e7343d3f6d 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 @@ -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/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 684501f2e161..1ba68fe32b3c 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 @@ -54,7 +54,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() { @@ -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/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 ecb9756d3205..cb765eb8ac8b 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 @@ -69,7 +69,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() { @@ -77,7 +77,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; @@ -94,7 +94,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() { @@ -102,7 +102,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; @@ -119,7 +119,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() { @@ -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 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() { @@ -152,7 +152,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 7e08f1718797..f488461482ab 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 @@ -65,7 +65,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() { @@ -73,7 +73,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 c9f37623bef0..9a2246b06be2 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 @@ -60,14 +60,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; @@ -84,14 +84,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 c2a9d52f544c..ff125f834305 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 @@ -60,14 +60,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; @@ -84,14 +84,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 cf48072fc785..0fab96204b0f 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 @@ -69,14 +69,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; @@ -93,14 +93,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; @@ -117,14 +117,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 679a8ca4d553..418a35cde77a 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 @@ -139,14 +139,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; @@ -171,14 +171,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; @@ -203,14 +203,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; @@ -235,14 +235,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; @@ -267,14 +267,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; @@ -308,7 +308,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() { @@ -352,7 +352,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() { @@ -384,7 +384,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 db637a9ca167..dd4bcf0d66ad 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 @@ -66,14 +66,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; @@ -90,14 +90,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; @@ -116,14 +116,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 bc3827be1d1a..5971623b8b2f 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 @@ -121,14 +121,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; @@ -145,14 +145,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; @@ -169,14 +169,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; @@ -201,14 +201,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; @@ -233,14 +233,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; @@ -257,14 +257,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 ce8c1ffee8bc..d5f21fb4e84c 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 @@ -99,14 +99,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; @@ -131,14 +131,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 3f6bb18404a2..11c0fcc0d9aa 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 @@ -60,14 +60,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; @@ -84,14 +84,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 24ed53ddf367..af0e0282c128 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 @@ -55,14 +55,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 5a3763185c2f..558b7f67607c 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 @@ -70,14 +70,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; @@ -94,14 +94,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; @@ -118,14 +118,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; @@ -142,14 +142,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 5b7c704af8a6..91f8863eb491 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 @@ -65,14 +65,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 975a9dc431ad..9cf4ddddde5a 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -88,7 +88,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 60c02f39fd26..cfb1aa573e6a 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 bd54ecdb3d1f..ec3e1cafa398 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 @@ -66,7 +66,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() { @@ -74,7 +74,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; @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -116,7 +116,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() { @@ -124,7 +124,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 c766f20bab59..4b3af80aa83f 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 @@ -138,7 +138,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() { @@ -146,7 +146,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; @@ -171,7 +171,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() { @@ -179,7 +179,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; @@ -204,7 +204,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() { @@ -212,7 +212,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; @@ -237,7 +237,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() { @@ -245,7 +245,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; @@ -270,7 +270,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() { @@ -278,7 +278,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; @@ -313,7 +313,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() { @@ -358,7 +358,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() { @@ -391,7 +391,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/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 cbf77a4fabf5..1f9167f5f414 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -94,7 +94,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; @@ -113,7 +113,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() { @@ -121,7 +121,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 53f76bd6635e..f863d56ecdbf 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 @@ -117,7 +117,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -142,7 +142,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() { @@ -150,7 +150,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; @@ -167,7 +167,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() { @@ -175,7 +175,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; @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -233,7 +233,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() { @@ -241,7 +241,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; @@ -258,7 +258,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() { @@ -266,7 +266,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 525097510638..142b9f0744ff 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 @@ -95,7 +95,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() { @@ -103,7 +103,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; @@ -128,7 +128,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() { @@ -136,7 +136,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 562ef208f481..86d03332dd8b 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 024aaf6963fc..b336d2c6c63e 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 @@ -51,7 +51,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() { @@ -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/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 a1db893f4a96..9260a135430b 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 @@ -66,7 +66,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() { @@ -74,7 +74,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; @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -116,7 +116,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() { @@ -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 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() { @@ -149,7 +149,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 aab92b39e28c..1c5990fd0e58 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 92b238e34d83..9927effbdf38 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -88,7 +88,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 9e8695275236..f367d726a60b 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 @@ -55,7 +55,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() { @@ -63,7 +63,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.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/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 5aa8add6f330..3fcaa5787e58 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 @@ -66,7 +66,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() { @@ -74,7 +74,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; @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -116,7 +116,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() { @@ -124,7 +124,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 7af76b56beb8..4ac5da160be7 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 @@ -138,7 +138,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() { @@ -146,7 +146,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; @@ -171,7 +171,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() { @@ -179,7 +179,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; @@ -204,7 +204,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() { @@ -212,7 +212,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; @@ -237,7 +237,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() { @@ -245,7 +245,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; @@ -270,7 +270,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() { @@ -278,7 +278,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; @@ -313,14 +313,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; } @@ -358,14 +358,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; } @@ -391,14 +391,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 14657e0e4e0e..961689a7251b 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -94,7 +94,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; @@ -113,7 +113,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() { @@ -121,7 +121,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 7729a46aa725..0d25b5c89a01 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 @@ -117,7 +117,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() { @@ -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; @@ -142,7 +142,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() { @@ -150,7 +150,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; @@ -167,7 +167,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() { @@ -175,7 +175,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; @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -233,7 +233,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() { @@ -241,7 +241,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; @@ -258,7 +258,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() { @@ -266,7 +266,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 9b7df902f312..aee7a4b741e3 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 @@ -95,7 +95,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() { @@ -103,7 +103,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; @@ -128,7 +128,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() { @@ -136,7 +136,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 b03f91247895..91cbb67fe4df 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 78cedabb311c..afe1c90764df 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 @@ -51,7 +51,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() { @@ -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/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 514b4452f39b..ebd388bc5979 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 @@ -66,7 +66,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() { @@ -74,7 +74,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; @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -116,7 +116,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() { @@ -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 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() { @@ -149,7 +149,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 7ea59823aab7..9285a8e5af9d 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 fc1c8ed702b3..fdc99c7e2e3e 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -88,7 +88,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 af06f2102b30..54489761ada6 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 @@ -55,7 +55,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() { @@ -63,7 +63,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.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/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 bedeac2de31e..d07329c20763 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 @@ -66,7 +66,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() { @@ -74,7 +74,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; @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -116,7 +116,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() { @@ -124,7 +124,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 055b607a4585..6242b44fbe3f 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 @@ -138,7 +138,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() { @@ -146,7 +146,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; @@ -171,7 +171,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() { @@ -179,7 +179,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; @@ -204,7 +204,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() { @@ -212,7 +212,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; @@ -237,7 +237,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() { @@ -245,7 +245,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; @@ -270,7 +270,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() { @@ -278,7 +278,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; @@ -313,7 +313,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() { @@ -358,7 +358,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() { @@ -391,7 +391,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 96f2b15e7dff..e73bb900357e 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -94,7 +94,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; @@ -113,7 +113,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() { @@ -121,7 +121,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 5d5a9fa3328b..2ae97ad1f46b 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 @@ -117,7 +117,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() { @@ -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; @@ -142,7 +142,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() { @@ -150,7 +150,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; @@ -167,7 +167,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() { @@ -175,7 +175,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; @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -233,7 +233,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() { @@ -241,7 +241,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; @@ -258,7 +258,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() { @@ -266,7 +266,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 91067f5033af..b2c48ed0e3d2 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 @@ -95,7 +95,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() { @@ -103,7 +103,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; @@ -128,7 +128,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() { @@ -136,7 +136,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 a64fb501fb85..12b03c2c443d 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 af1486a506e6..64a7ecdf3d03 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 @@ -51,7 +51,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() { @@ -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/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 af4cd985430c..53d9f24c15e4 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 @@ -66,7 +66,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() { @@ -74,7 +74,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; @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -116,7 +116,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() { @@ -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 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() { @@ -149,7 +149,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 d3be005a7fd9..61dcd19032d1 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 @@ -62,7 +62,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() { @@ -70,7 +70,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/others/java/restclient-enum-in-multipart/src/main/java/org/openapitools/client/model/InlineObject.java b/samples/client/others/java/restclient-enum-in-multipart/src/main/java/org/openapitools/client/model/InlineObject.java index c61a3ccf369f..9d9ebad9f2c7 100644 --- a/samples/client/others/java/restclient-enum-in-multipart/src/main/java/org/openapitools/client/model/InlineObject.java +++ b/samples/client/others/java/restclient-enum-in-multipart/src/main/java/org/openapitools/client/model/InlineObject.java @@ -52,7 +52,7 @@ public InlineObject messageId(@jakarta.annotation.Nonnull UUID messageId) { * @return messageId */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE_ID) + @JsonProperty(value = JSON_PROPERTY_MESSAGE_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public UUID getMessageId() { @@ -60,7 +60,7 @@ public UUID getMessageId() { } - @JsonProperty(JSON_PROPERTY_MESSAGE_ID) + @JsonProperty(value = JSON_PROPERTY_MESSAGE_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setMessageId(@jakarta.annotation.Nonnull UUID messageId) { this.messageId = messageId; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Addressable.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Addressable.java index 7320a079ff4c..038f3b1c930c 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Addressable.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Addressable.java @@ -55,7 +55,7 @@ public Addressable href(@javax.annotation.Nullable String href) { * @return href */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HREF) + @JsonProperty(value = JSON_PROPERTY_HREF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHref() { @@ -63,7 +63,7 @@ public String getHref() { } - @JsonProperty(JSON_PROPERTY_HREF) + @JsonProperty(value = JSON_PROPERTY_HREF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHref(@javax.annotation.Nullable String href) { this.href = href; @@ -80,7 +80,7 @@ public Addressable id(@javax.annotation.Nullable String id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { @@ -88,7 +88,7 @@ public String getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable String id) { this.id = id; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Apple.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Apple.java index 7372ae0f0307..43da5bb89f7d 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Apple.java @@ -58,7 +58,7 @@ public Apple seeds(@javax.annotation.Nonnull Integer seeds) { * @return seeds */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SEEDS) + @JsonProperty(value = JSON_PROPERTY_SEEDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getSeeds() { @@ -66,7 +66,7 @@ public Integer getSeeds() { } - @JsonProperty(JSON_PROPERTY_SEEDS) + @JsonProperty(value = JSON_PROPERTY_SEEDS, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSeeds(@javax.annotation.Nonnull Integer seeds) { this.seeds = seeds; @@ -83,7 +83,7 @@ public Apple fruitType(@javax.annotation.Nonnull FruitType fruitType) { * @return fruitType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FRUIT_TYPE) + @JsonProperty(value = JSON_PROPERTY_FRUIT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public FruitType getFruitType() { @@ -91,7 +91,7 @@ public FruitType getFruitType() { } - @JsonProperty(JSON_PROPERTY_FRUIT_TYPE) + @JsonProperty(value = JSON_PROPERTY_FRUIT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFruitType(@javax.annotation.Nonnull FruitType fruitType) { this.fruitType = fruitType; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Banana.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Banana.java index 9eedf912aa3e..ef87516eed71 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Banana.java @@ -58,7 +58,7 @@ public Banana length(@javax.annotation.Nonnull Integer length) { * @return length */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_LENGTH) + @JsonProperty(value = JSON_PROPERTY_LENGTH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getLength() { @@ -66,7 +66,7 @@ public Integer getLength() { } - @JsonProperty(JSON_PROPERTY_LENGTH) + @JsonProperty(value = JSON_PROPERTY_LENGTH, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLength(@javax.annotation.Nonnull Integer length) { this.length = length; @@ -83,7 +83,7 @@ public Banana fruitType(@javax.annotation.Nonnull FruitType fruitType) { * @return fruitType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FRUIT_TYPE) + @JsonProperty(value = JSON_PROPERTY_FRUIT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public FruitType getFruitType() { @@ -91,7 +91,7 @@ public FruitType getFruitType() { } - @JsonProperty(JSON_PROPERTY_FRUIT_TYPE) + @JsonProperty(value = JSON_PROPERTY_FRUIT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFruitType(@javax.annotation.Nonnull FruitType fruitType) { this.fruitType = fruitType; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Bar.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Bar.java index c68aad46c5a5..85849876b368 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Bar.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Bar.java @@ -77,7 +77,7 @@ public Bar id(@javax.annotation.Nonnull String id) { * @return id */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { @@ -85,7 +85,7 @@ public String getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(@javax.annotation.Nonnull String id) { this.id = id; @@ -102,7 +102,7 @@ public Bar barPropA(@javax.annotation.Nullable String barPropA) { * @return barPropA */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR_PROP_A) + @JsonProperty(value = JSON_PROPERTY_BAR_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBarPropA() { @@ -110,7 +110,7 @@ public String getBarPropA() { } - @JsonProperty(JSON_PROPERTY_BAR_PROP_A) + @JsonProperty(value = JSON_PROPERTY_BAR_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBarPropA(@javax.annotation.Nullable String barPropA) { this.barPropA = barPropA; @@ -127,7 +127,7 @@ public Bar fooPropB(@javax.annotation.Nullable String fooPropB) { * @return fooPropB */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO_PROP_B) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_B, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFooPropB() { @@ -135,7 +135,7 @@ public String getFooPropB() { } - @JsonProperty(JSON_PROPERTY_FOO_PROP_B) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_B, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFooPropB(@javax.annotation.Nullable String fooPropB) { this.fooPropB = fooPropB; @@ -152,7 +152,7 @@ public Bar foo(@javax.annotation.Nullable FooRefOrValue foo) { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FooRefOrValue getFoo() { @@ -160,7 +160,7 @@ public FooRefOrValue getFoo() { } - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFoo(@javax.annotation.Nullable FooRefOrValue foo) { this.foo = foo; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/BarCreate.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/BarCreate.java index dc8b590e4e7d..bde7fe3bdefd 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/BarCreate.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/BarCreate.java @@ -73,7 +73,7 @@ public BarCreate barPropA(@javax.annotation.Nullable String barPropA) { * @return barPropA */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BAR_PROP_A) + @JsonProperty(value = JSON_PROPERTY_BAR_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBarPropA() { @@ -81,7 +81,7 @@ public String getBarPropA() { } - @JsonProperty(JSON_PROPERTY_BAR_PROP_A) + @JsonProperty(value = JSON_PROPERTY_BAR_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBarPropA(@javax.annotation.Nullable String barPropA) { this.barPropA = barPropA; @@ -98,7 +98,7 @@ public BarCreate fooPropB(@javax.annotation.Nullable String fooPropB) { * @return fooPropB */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO_PROP_B) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_B, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFooPropB() { @@ -106,7 +106,7 @@ public String getFooPropB() { } - @JsonProperty(JSON_PROPERTY_FOO_PROP_B) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_B, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFooPropB(@javax.annotation.Nullable String fooPropB) { this.fooPropB = fooPropB; @@ -123,7 +123,7 @@ public BarCreate foo(@javax.annotation.Nullable FooRefOrValue foo) { * @return foo */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public FooRefOrValue getFoo() { @@ -131,7 +131,7 @@ public FooRefOrValue getFoo() { } - @JsonProperty(JSON_PROPERTY_FOO) + @JsonProperty(value = JSON_PROPERTY_FOO, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFoo(@javax.annotation.Nullable FooRefOrValue foo) { this.foo = foo; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Entity.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Entity.java index 01290f52d135..a60e9b783b86 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Entity.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Entity.java @@ -87,7 +87,7 @@ public Entity href(@javax.annotation.Nullable String href) { * @return href */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HREF) + @JsonProperty(value = JSON_PROPERTY_HREF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHref() { @@ -95,7 +95,7 @@ public String getHref() { } - @JsonProperty(JSON_PROPERTY_HREF) + @JsonProperty(value = JSON_PROPERTY_HREF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHref(@javax.annotation.Nullable String href) { this.href = href; @@ -112,7 +112,7 @@ public Entity id(@javax.annotation.Nullable String id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { @@ -120,7 +120,7 @@ public String getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable String id) { this.id = id; @@ -137,7 +137,7 @@ public Entity atSchemaLocation(@javax.annotation.Nullable String atSchemaLocatio * @return atSchemaLocation */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AT_SCHEMA_LOCATION) + @JsonProperty(value = JSON_PROPERTY_AT_SCHEMA_LOCATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAtSchemaLocation() { @@ -145,7 +145,7 @@ public String getAtSchemaLocation() { } - @JsonProperty(JSON_PROPERTY_AT_SCHEMA_LOCATION) + @JsonProperty(value = JSON_PROPERTY_AT_SCHEMA_LOCATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAtSchemaLocation(@javax.annotation.Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; @@ -162,7 +162,7 @@ public Entity atBaseType(@javax.annotation.Nullable String atBaseType) { * @return atBaseType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AT_BASE_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_BASE_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAtBaseType() { @@ -170,7 +170,7 @@ public String getAtBaseType() { } - @JsonProperty(JSON_PROPERTY_AT_BASE_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_BASE_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAtBaseType(@javax.annotation.Nullable String atBaseType) { this.atBaseType = atBaseType; @@ -187,7 +187,7 @@ public Entity atType(@javax.annotation.Nonnull String atType) { * @return atType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AT_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getAtType() { @@ -195,7 +195,7 @@ public String getAtType() { } - @JsonProperty(JSON_PROPERTY_AT_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAtType(@javax.annotation.Nonnull String atType) { this.atType = atType; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/EntityRef.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/EntityRef.java index bd81921d4a51..0ba18979052d 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/EntityRef.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/EntityRef.java @@ -93,7 +93,7 @@ public EntityRef 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() { @@ -101,7 +101,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; @@ -118,7 +118,7 @@ public EntityRef atReferredType(@javax.annotation.Nullable String atReferredType * @return atReferredType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AT_REFERRED_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_REFERRED_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAtReferredType() { @@ -126,7 +126,7 @@ public String getAtReferredType() { } - @JsonProperty(JSON_PROPERTY_AT_REFERRED_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_REFERRED_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAtReferredType(@javax.annotation.Nullable String atReferredType) { this.atReferredType = atReferredType; @@ -143,7 +143,7 @@ public EntityRef href(@javax.annotation.Nullable String href) { * @return href */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HREF) + @JsonProperty(value = JSON_PROPERTY_HREF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getHref() { @@ -151,7 +151,7 @@ public String getHref() { } - @JsonProperty(JSON_PROPERTY_HREF) + @JsonProperty(value = JSON_PROPERTY_HREF, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHref(@javax.annotation.Nullable String href) { this.href = href; @@ -168,7 +168,7 @@ public EntityRef id(@javax.annotation.Nullable String id) { * @return id */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { @@ -176,7 +176,7 @@ public String getId() { } - @JsonProperty(JSON_PROPERTY_ID) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(@javax.annotation.Nullable String id) { this.id = id; @@ -193,7 +193,7 @@ public EntityRef atSchemaLocation(@javax.annotation.Nullable String atSchemaLoca * @return atSchemaLocation */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AT_SCHEMA_LOCATION) + @JsonProperty(value = JSON_PROPERTY_AT_SCHEMA_LOCATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAtSchemaLocation() { @@ -201,7 +201,7 @@ public String getAtSchemaLocation() { } - @JsonProperty(JSON_PROPERTY_AT_SCHEMA_LOCATION) + @JsonProperty(value = JSON_PROPERTY_AT_SCHEMA_LOCATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAtSchemaLocation(@javax.annotation.Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; @@ -218,7 +218,7 @@ public EntityRef atBaseType(@javax.annotation.Nullable String atBaseType) { * @return atBaseType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AT_BASE_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_BASE_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAtBaseType() { @@ -226,7 +226,7 @@ public String getAtBaseType() { } - @JsonProperty(JSON_PROPERTY_AT_BASE_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_BASE_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAtBaseType(@javax.annotation.Nullable String atBaseType) { this.atBaseType = atBaseType; @@ -243,7 +243,7 @@ public EntityRef atType(@javax.annotation.Nonnull String atType) { * @return atType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AT_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getAtType() { @@ -251,7 +251,7 @@ public String getAtType() { } - @JsonProperty(JSON_PROPERTY_AT_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAtType(@javax.annotation.Nonnull String atType) { this.atType = atType; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Extensible.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Extensible.java index c6dc4fd549e2..a0f2b6a9ebc9 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Extensible.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Extensible.java @@ -60,7 +60,7 @@ public Extensible atSchemaLocation(@javax.annotation.Nullable String atSchemaLoc * @return atSchemaLocation */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AT_SCHEMA_LOCATION) + @JsonProperty(value = JSON_PROPERTY_AT_SCHEMA_LOCATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAtSchemaLocation() { @@ -68,7 +68,7 @@ public String getAtSchemaLocation() { } - @JsonProperty(JSON_PROPERTY_AT_SCHEMA_LOCATION) + @JsonProperty(value = JSON_PROPERTY_AT_SCHEMA_LOCATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAtSchemaLocation(@javax.annotation.Nullable String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; @@ -85,7 +85,7 @@ public Extensible atBaseType(@javax.annotation.Nullable String atBaseType) { * @return atBaseType */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AT_BASE_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_BASE_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAtBaseType() { @@ -93,7 +93,7 @@ public String getAtBaseType() { } - @JsonProperty(JSON_PROPERTY_AT_BASE_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_BASE_TYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAtBaseType(@javax.annotation.Nullable String atBaseType) { this.atBaseType = atBaseType; @@ -110,7 +110,7 @@ public Extensible atType(@javax.annotation.Nonnull String atType) { * @return atType */ @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_AT_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getAtType() { @@ -118,7 +118,7 @@ public String getAtType() { } - @JsonProperty(JSON_PROPERTY_AT_TYPE) + @JsonProperty(value = JSON_PROPERTY_AT_TYPE, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAtType(@javax.annotation.Nonnull String atType) { this.atType = atType; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Foo.java index 9789f3302d02..96bb226467f6 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Foo.java @@ -66,7 +66,7 @@ public Foo fooPropA(@javax.annotation.Nullable String fooPropA) { * @return fooPropA */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO_PROP_A) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFooPropA() { @@ -74,7 +74,7 @@ public String getFooPropA() { } - @JsonProperty(JSON_PROPERTY_FOO_PROP_A) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFooPropA(@javax.annotation.Nullable String fooPropA) { this.fooPropA = fooPropA; @@ -91,7 +91,7 @@ public Foo fooPropB(@javax.annotation.Nullable String fooPropB) { * @return fooPropB */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOO_PROP_B) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_B, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFooPropB() { @@ -99,7 +99,7 @@ public String getFooPropB() { } - @JsonProperty(JSON_PROPERTY_FOO_PROP_B) + @JsonProperty(value = JSON_PROPERTY_FOO_PROP_B, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFooPropB(@javax.annotation.Nullable String fooPropB) { this.fooPropB = fooPropB; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/FooRef.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/FooRef.java index 08dd57fe1705..63681ab8116f 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/FooRef.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/FooRef.java @@ -61,7 +61,7 @@ public FooRef foorefPropA(@javax.annotation.Nullable String foorefPropA) { * @return foorefPropA */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOOREF_PROP_A) + @JsonProperty(value = JSON_PROPERTY_FOOREF_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getFoorefPropA() { @@ -69,7 +69,7 @@ public String getFoorefPropA() { } - @JsonProperty(JSON_PROPERTY_FOOREF_PROP_A) + @JsonProperty(value = JSON_PROPERTY_FOOREF_PROP_A, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFoorefPropA(@javax.annotation.Nullable String foorefPropA) { this.foorefPropA = foorefPropA; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pasta.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pasta.java index 8fc0889dc0a2..7b2403ee739d 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pasta.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pasta.java @@ -61,7 +61,7 @@ public Pasta vendor(@javax.annotation.Nullable String vendor) { * @return vendor */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VENDOR) + @JsonProperty(value = JSON_PROPERTY_VENDOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getVendor() { @@ -69,7 +69,7 @@ public String getVendor() { } - @JsonProperty(JSON_PROPERTY_VENDOR) + @JsonProperty(value = JSON_PROPERTY_VENDOR, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setVendor(@javax.annotation.Nullable String vendor) { this.vendor = vendor; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pizza.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pizza.java index 6d2784819220..66f7254fbe3e 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pizza.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Pizza.java @@ -65,7 +65,7 @@ public Pizza pizzaSize(@javax.annotation.Nullable BigDecimal pizzaSize) { * @return pizzaSize */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PIZZA_SIZE) + @JsonProperty(value = JSON_PROPERTY_PIZZA_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getPizzaSize() { @@ -73,7 +73,7 @@ public BigDecimal getPizzaSize() { } - @JsonProperty(JSON_PROPERTY_PIZZA_SIZE) + @JsonProperty(value = JSON_PROPERTY_PIZZA_SIZE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPizzaSize(@javax.annotation.Nullable BigDecimal pizzaSize) { this.pizzaSize = pizzaSize; diff --git a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/PizzaSpeziale.java b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/PizzaSpeziale.java index cdf3b3e91b64..90617497ff7a 100644 --- a/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/PizzaSpeziale.java +++ b/samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/PizzaSpeziale.java @@ -62,7 +62,7 @@ public PizzaSpeziale toppings(@javax.annotation.Nullable String toppings) { * @return toppings */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOPPINGS) + @JsonProperty(value = JSON_PROPERTY_TOPPINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getToppings() { @@ -70,7 +70,7 @@ public String getToppings() { } - @JsonProperty(JSON_PROPERTY_TOPPINGS) + @JsonProperty(value = JSON_PROPERTY_TOPPINGS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setToppings(@javax.annotation.Nullable String toppings) { this.toppings = toppings; 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 6e02ac8143e9..b9674ea5f83e 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 @@ -68,7 +68,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() { @@ -76,7 +76,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; @@ -101,7 +101,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -109,7 +109,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 1a4fd7c8fcff..372c3fdfbd68 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 @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -84,7 +84,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() { @@ -92,7 +92,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 f2ec7920776f..432317e80f93 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 @@ -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/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 0c1d8e3eba3a..3798d7766c89 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 @@ -65,7 +65,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() { @@ -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(@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 b7f76bcc1d10..4ef1612fdd21 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 @@ -65,7 +65,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() { @@ -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(@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 6ae04f80688e..9b353d6ccca4 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 @@ -75,7 +75,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() { @@ -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; @@ -108,7 +108,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() { @@ -116,7 +116,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 * @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() { @@ -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/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 6a4476be146a..9763f7117a29 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 @@ -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/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 23149f0f7b3d..73e9e8930f18 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 @@ -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/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 74b16faf8967..db17d3c40fbc 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 @@ -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/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 d0cb8f970ae2..4ffc3fc8d0c4 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 @@ -65,7 +65,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() { @@ -73,7 +73,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 2beafc76b730..b7be8bb09649 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 @@ -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/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 1b6d91416fa0..79b2d7ab912a 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 @@ -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/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 b48b19b391c1..e845fee4b125 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 @@ -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/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 cd6e9c8d84a4..41c51a84bc32 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 @@ -64,7 +64,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() { @@ -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/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 08aa385c6963..52ffa0a0c15a 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 @@ -131,7 +131,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() { @@ -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; @@ -164,7 +164,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() { @@ -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(@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 2bf448cd7d80..ead88027f5e6 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 @@ -241,7 +241,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() { @@ -249,7 +249,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; @@ -266,7 +266,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() { @@ -274,7 +274,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 * @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() { @@ -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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -347,14 +347,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; } @@ -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; @@ -399,7 +399,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() { @@ -407,7 +407,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; @@ -424,7 +424,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() { @@ -432,7 +432,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 6717bcd8740c..ebbf32d8b2f7 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 @@ -62,7 +62,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() { @@ -70,7 +70,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; @@ -95,7 +95,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() { @@ -103,7 +103,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 d4bff3036645..d9e64e21a865 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 @@ -62,7 +62,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() { @@ -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(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -95,7 +95,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() { @@ -103,7 +103,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 fc6b1be25d1e..d723fb6fd2d5 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 @@ -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/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 54dd731e9ccf..9cb5f377f19f 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 @@ -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/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 277cb8d190a9..e67dffc8f4fe 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 @@ -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/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 6c0ef1bd75b7..42f7c8b9fb16 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 @@ -52,8 +52,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( * @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/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 43d8408b4fdf..dbb0003010ed 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 @@ -63,14 +63,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 7b63a9d99b1f..c0471df6bff9 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 @@ -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/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 28a1e233ac85..3eb9fa6ce7dd 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 @@ -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/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 af1e10a74cd6..c0eea7937cd3 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 @@ -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/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 17ce92bcd415..f420579841ee 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 @@ -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/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 0a0915998959..bf2fd2b993f2 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 @@ -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/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 ba53e092111f..eb26fdd4d379 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 @@ -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/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 66420c5ab620..dd708439c5fb 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 @@ -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/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 49c8d2e6a602..e09bb76d67f6 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 @@ -61,8 +61,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(@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() { @@ -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(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -99,7 +99,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() { @@ -119,7 +119,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() { @@ -127,7 +127,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/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 e6ece570c95c..7958fb0ccfd8 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 @@ -127,14 +127,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; } @@ -160,14 +160,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; } @@ -226,14 +226,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; } @@ -259,14 +259,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; } @@ -292,14 +292,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; } @@ -337,14 +337,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; } @@ -382,14 +382,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; } @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -460,14 +460,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; } @@ -505,14 +505,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; } @@ -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/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 022f36112c63..356a23dc3dca 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 @@ -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/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 4c27ae76866f..285bd6ece9ba 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 @@ -73,7 +73,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() { @@ -81,7 +81,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; @@ -100,7 +100,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() { @@ -108,7 +108,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 - @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; @@ -162,7 +162,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() { @@ -170,7 +170,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 0a4dc4b79416..91e1883b7a87 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 @@ -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/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 2671985307b8..ae521960d7bd 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 @@ -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/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 760d412e563b..30b2b2811d7b 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 d7c8c8c7809f..1c239fadba10 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 @@ -107,7 +107,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() { @@ -115,7 +115,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; @@ -138,14 +138,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 178bcdf5a62c..93ee44799ccd 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 @@ -123,7 +123,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() { @@ -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; @@ -148,7 +148,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() { @@ -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; @@ -173,7 +173,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() { @@ -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; @@ -206,7 +206,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() { @@ -215,7 +215,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; @@ -265,7 +265,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() { @@ -273,7 +273,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 d7fe46e812c4..9bbc3996a5a7 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 @@ -51,7 +51,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( * @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() { @@ -82,7 +82,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() { @@ -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(@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 1ebc72ac3a14..df5ec4acfc80 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 @@ -54,7 +54,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() { @@ -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/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 6a65527b1e2e..2542f7dbdbd7 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 @@ -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/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 041204a7bc2c..7d4fd937f0d2 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 c28536928e29..80b9d672fa5f 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 @@ -88,7 +88,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() { @@ -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; @@ -113,7 +113,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() { @@ -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; @@ -138,7 +138,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() { @@ -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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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-hc5/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 8e9d4da7934e..2e119eed415e 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -99,7 +99,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -107,7 +107,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-hc5/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 6cf1b1af63dd..3796f7a337a6 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -82,7 +82,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() { @@ -90,7 +90,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-hc5/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Animal.java index 3cb0c0ec4c76..6b97a3d27095 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign-hc5/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; @@ -94,7 +94,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() { @@ -102,7 +102,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-hc5/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 48a9566027ca..6872779a0244 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-hc5/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/feign-hc5/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index b3618cd6bb37..4cb5c0a30b2b 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-hc5/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/feign-hc5/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ArrayTest.java index c898e1d8038f..f4650bf62d96 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign-hc5/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; @@ -106,7 +106,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() { @@ -114,7 +114,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/feign-hc5/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Capitalization.java index 61e2a6cbb8c8..cb3de8a47dfa 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Capitalization.java @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -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; @@ -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; @@ -179,7 +179,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() { @@ -187,7 +187,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; @@ -205,7 +205,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() { @@ -213,7 +213,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-hc5/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Cat.java index db2cf2a7e7e1..639661476feb 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Cat.java @@ -61,7 +61,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() { @@ -69,7 +69,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-hc5/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Category.java index 033f50b7676e..046f100ee89d 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Category.java @@ -55,7 +55,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() { @@ -63,7 +63,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/feign-hc5/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ChildWithNullable.java index 2cda978c3799..4e947e67a485 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -62,7 +62,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() { @@ -70,7 +70,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-hc5/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ClassModel.java index 1d2b984a2cdb..df3587f2cb18 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ClassModel.java @@ -50,7 +50,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() { @@ -58,7 +58,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-hc5/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Client.java index 1f741134586d..3aa9e08d8629 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Client.java @@ -50,7 +50,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() { @@ -58,7 +58,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-hc5/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 6a376d1d3c23..2ac6efe31ae5 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -52,7 +52,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() { @@ -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/feign-hc5/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Dog.java index 6bc6de6e196b..982d98f19a46 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign-hc5/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/feign-hc5/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/EnumArrays.java index eceadd7fdb0d..849334be0f89 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign-hc5/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; @@ -162,7 +162,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() { @@ -170,7 +170,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-hc5/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/EnumTest.java index 003b2bb4a1db..a6d9a2632c98 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign-hc5/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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -289,7 +289,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() { @@ -297,7 +297,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; @@ -347,7 +347,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() { @@ -375,7 +375,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() { @@ -383,7 +383,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; @@ -401,7 +401,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() { @@ -409,7 +409,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; @@ -427,7 +427,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() { @@ -435,7 +435,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-hc5/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 06987804723e..5baa75015326 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -93,7 +93,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() { @@ -101,7 +101,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-hc5/src/main/java/org/openapitools/client/model/File.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/File.java index fb2a9bb0ba0b..85a65ea43eb8 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/File.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/File.java @@ -50,7 +50,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() { @@ -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/feign-hc5/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index ddc0c63e75c1..16e482e3f2fe 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -93,7 +93,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() { @@ -101,7 +101,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-hc5/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Foo.java index 1343e29a90e2..58c0c144e2cd 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Foo.java @@ -50,7 +50,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() { @@ -58,7 +58,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-hc5/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index b8e4d184c0fb..9870f6d3a4d5 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -52,7 +52,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() { @@ -60,7 +60,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-hc5/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FormatTest.java index 3d52274486b8..fcb09a26743a 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FormatTest.java @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -161,7 +161,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() { @@ -169,7 +169,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; @@ -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; @@ -243,7 +243,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() { @@ -251,7 +251,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) { * @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() { @@ -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; @@ -297,7 +297,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() { @@ -305,7 +305,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; @@ -323,7 +323,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() { @@ -331,7 +331,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; @@ -349,7 +349,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() { @@ -357,7 +357,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; @@ -375,7 +375,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() { @@ -383,7 +383,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; @@ -401,7 +401,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() { @@ -409,7 +409,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; @@ -427,7 +427,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() { @@ -435,7 +435,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; @@ -453,7 +453,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() { @@ -461,7 +461,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; @@ -479,7 +479,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() { @@ -487,7 +487,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; @@ -505,7 +505,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() { @@ -513,7 +513,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; @@ -531,7 +531,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() { @@ -539,7 +539,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-hc5/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 7c4a334d50ed..9c10d1e40ad6 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -60,7 +60,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/feign-hc5/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 91b101d36e3e..4ea7a5b57f65 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/feign-hc5/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/feign-hc5/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/MapTest.java index 1e33c5d356b5..2406bc609250 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/MapTest.java @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -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; @@ -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/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 35fc496e043c..97e81a9172c4 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -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/feign-hc5/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Model200Response.java index f6ba2eaecc02..110ea86dcb3d 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Model200Response.java @@ -56,7 +56,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() { @@ -64,7 +64,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/feign-hc5/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6e3b10f29d27..aa74261abf58 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -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/feign-hc5/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelList.java index a4f2f2219462..0a30e58fe241 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelList.java @@ -51,7 +51,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() { @@ -59,7 +59,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-hc5/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelReturn.java index c4f64dc9a66a..6217c43b9dcb 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -51,7 +51,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() { @@ -59,7 +59,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-hc5/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Name.java index c960d818abfc..379491b6472a 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign-hc5/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) public Integer getName() { @@ -83,7 +83,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() { @@ -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/feign-hc5/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/NullableClass.java index dcc4d006a091..10309cafeb92 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/NullableClass.java @@ -117,7 +117,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() { @@ -185,7 +185,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() { @@ -219,7 +219,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() { @@ -253,7 +253,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() { @@ -287,7 +287,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() { @@ -333,7 +333,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() { @@ -379,7 +379,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() { @@ -415,7 +415,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() { @@ -423,7 +423,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() { @@ -505,7 +505,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() { @@ -541,7 +541,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() { @@ -549,7 +549,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-hc5/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/NumberOnly.java index 93f1be9d1d96..ee6767819fd6 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -51,7 +51,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() { @@ -59,7 +59,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-hc5/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 5d41c6ad9717..9e835a4d220b 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -98,7 +98,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() { @@ -106,7 +106,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; @@ -162,7 +162,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() { @@ -170,7 +170,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-hc5/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Order.java index 175fdf7e48e5..2466f5e8e712 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Order.java @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -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; @@ -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; @@ -217,7 +217,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() { @@ -225,7 +225,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; @@ -243,7 +243,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() { @@ -251,7 +251,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-hc5/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/OuterComposite.java index 7d44a03ed8b8..314b073d4216 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -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 isMyBoolean() { @@ -121,7 +121,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-hc5/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index bb003e14871e..c9d09b761aa3 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -51,7 +51,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() { @@ -59,7 +59,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-hc5/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ParentWithNullable.java index be54ca76ea20..f2e8a3ea9447 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/feign-hc5/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; @@ -135,7 +135,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-hc5/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Pet.java index 7443c1c1f4a1..32893ec22026 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign-hc5/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; @@ -146,7 +146,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() { @@ -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) { * @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; @@ -206,7 +206,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() { @@ -215,7 +215,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; @@ -241,7 +241,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() { @@ -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; @@ -267,7 +267,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() { @@ -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/feign-hc5/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index abc888cc0f88..258267bf3f3e 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign-hc5/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) 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/feign-hc5/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/SpecialModelName.java index f77d213e8b7b..03eaec13fbf8 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -51,7 +51,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() { @@ -59,7 +59,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-hc5/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Tag.java index 3ebd839fc00b..dc6d909d470d 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Tag.java @@ -55,7 +55,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() { @@ -63,7 +63,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/feign-hc5/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 598d5be46bba..839c0fec3f8c 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -55,7 +55,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() { @@ -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(@javax.annotation.Nullable String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java index 41a720b9b069..a63c9387e01b 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -189,7 +189,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() { @@ -197,7 +197,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; @@ -215,7 +215,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() { @@ -223,7 +223,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; @@ -241,7 +241,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() { @@ -249,7 +249,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; @@ -267,7 +267,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() { @@ -275,7 +275,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 63d0643a02c8..5a00601d9b94 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 @@ -60,7 +60,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() { @@ -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/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 5302b9911447..037be1ed0c40 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 774896820ea3..64ab41427ffa 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 @@ -60,7 +60,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() { @@ -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/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 5518a4dee767..a6e09091e13f 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 @@ -118,7 +118,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() { @@ -126,7 +126,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; @@ -153,7 +153,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() { @@ -161,7 +161,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -223,7 +223,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() { @@ -231,7 +231,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; @@ -258,7 +258,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -266,7 +266,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; @@ -293,7 +293,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() { @@ -301,7 +301,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; @@ -328,7 +328,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -336,7 +336,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; @@ -363,7 +363,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -371,7 +371,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; @@ -390,7 +390,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() { @@ -398,7 +398,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; @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -444,7 +444,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() { @@ -452,7 +452,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 852546a6732a..0ea7697f67d4 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 @@ -60,7 +60,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() { @@ -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/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 84619c9b6987..dda788b16607 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 045289dd5ee8..60d485401886 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 3672021e21ee..a050dd363924 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 @@ -60,7 +60,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() { @@ -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/Animal.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index 2c7101170ab4..900f493a9ebf 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 @@ -75,7 +75,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() { @@ -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; @@ -102,7 +102,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() { @@ -110,7 +110,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 52e60fb16cd1..6651ba927658 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 @@ -68,7 +68,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() { @@ -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/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 4d4563a2a996..64ce38ecdb3c 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 @@ -68,7 +68,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() { @@ -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/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 67691d1d0c76..0d4cf72edb9a 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 @@ -78,7 +78,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() { @@ -86,7 +86,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) */ @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() { @@ -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; @@ -148,7 +148,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() { @@ -156,7 +156,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 2ae5a69ccee0..9f9ca3e1a3c9 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 @@ -106,7 +106,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() { @@ -114,7 +114,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 22e0ed1083dc..da36d34ef206 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 @@ -81,7 +81,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() { @@ -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(@javax.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -108,7 +108,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() { @@ -116,7 +116,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -162,7 +162,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() { @@ -170,7 +170,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; @@ -189,7 +189,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() { @@ -197,7 +197,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; @@ -216,7 +216,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() { @@ -224,7 +224,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 5be75660b4f6..951a7d14359c 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 @@ -70,7 +70,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() { @@ -78,7 +78,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 91554ea61681..4805e533caf2 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 @@ -61,7 +61,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() { @@ -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(@javax.annotation.Nullable Long id) { this.id = id; @@ -88,7 +88,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() { @@ -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(@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 6d0206665602..673c4ab5e977 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 d038bc5e20d4..4c350579907b 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 @@ -56,7 +56,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() { @@ -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/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 888e70f85b97..7ed62c30012f 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 @@ -67,7 +67,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() { @@ -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/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 c412bf74092c..66a113f994af 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 @@ -134,7 +134,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() { @@ -142,7 +142,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; @@ -169,7 +169,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() { @@ -177,7 +177,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 5ecc21666ccf..8ebd04cac48f 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 @@ -222,7 +222,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() { @@ -230,7 +230,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; @@ -249,7 +249,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() { @@ -257,7 +257,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; @@ -276,7 +276,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() { @@ -284,7 +284,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; @@ -303,7 +303,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() { @@ -311,7 +311,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; @@ -330,7 +330,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() { @@ -338,7 +338,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 3e72c52d5742..6b9b33f92a55 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 @@ -57,7 +57,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() { @@ -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/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 b8b11af3e2cb..30080b82db24 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -100,7 +100,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() { @@ -108,7 +108,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 66ec9f08da57..1086b32b992f 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 @@ -129,7 +129,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() { @@ -137,7 +137,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; @@ -158,7 +158,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() { @@ -166,7 +166,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; @@ -185,7 +185,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() { @@ -193,7 +193,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) { */ @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() { @@ -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; @@ -243,7 +243,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() { @@ -251,7 +251,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 @ApiModelProperty(value = "") - @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; @@ -299,7 +299,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() { @@ -307,7 +307,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; @@ -326,7 +326,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() { @@ -334,7 +334,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; @@ -353,7 +353,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() { @@ -361,7 +361,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; @@ -380,7 +380,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() { @@ -388,7 +388,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; @@ -407,7 +407,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() { @@ -415,7 +415,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; @@ -434,7 +434,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() { @@ -442,7 +442,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; @@ -461,7 +461,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() { @@ -469,7 +469,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; @@ -488,7 +488,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() { @@ -496,7 +496,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 5fcc92d5a5a5..fac750d11d49 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 @@ -66,7 +66,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() { @@ -82,7 +82,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 0c4977a745ac..141fcb2fb60f 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 @@ -116,7 +116,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() { @@ -124,7 +124,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; @@ -151,7 +151,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() { @@ -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(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -186,7 +186,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() { @@ -194,7 +194,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; @@ -221,7 +221,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() { @@ -229,7 +229,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 b7ab11702e82..30f2d7e45ae0 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 @@ -71,7 +71,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() { @@ -79,7 +79,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 */ @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() { @@ -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; @@ -133,7 +133,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() { @@ -141,7 +141,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 d2ed87601251..b4b09e157f12 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 @@ -63,7 +63,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() { @@ -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; @@ -90,7 +90,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() { @@ -98,7 +98,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 508950b3b3f6..a78d19918d29 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 @@ -67,7 +67,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() { @@ -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(@javax.annotation.Nullable Integer code) { this.code = code; @@ -94,7 +94,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() { @@ -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; @@ -121,7 +121,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() { @@ -129,7 +129,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 fbd91b164fc8..89f06608997d 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 @@ -57,7 +57,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() { @@ -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/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 00984d19a40d..05db1f34e8ab 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 a9dd9d034b94..4f79cd757528 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 @@ -82,7 +82,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() { @@ -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(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -103,7 +103,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() { @@ -125,7 +125,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() { @@ -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; @@ -146,7 +146,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 f136994b8dab..575b14fd7b0c 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 @@ -57,7 +57,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() { @@ -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/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 d40f71bdde26..449c0f0aa1fa 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 @@ -119,7 +119,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() { @@ -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; @@ -146,7 +146,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() { @@ -154,7 +154,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; @@ -173,7 +173,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() { @@ -181,7 +181,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; @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -227,7 +227,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() { @@ -235,7 +235,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; @@ -254,7 +254,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() { @@ -262,7 +262,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 1681a52b79f0..7bb88743d0f6 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 @@ -67,7 +67,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() { @@ -75,7 +75,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) { */ @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() { @@ -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; @@ -121,7 +121,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() { @@ -129,7 +129,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 a4f161034d9b..cbf7e16ee493 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 @@ -126,7 +126,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() { @@ -134,7 +134,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; @@ -153,7 +153,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() { @@ -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(@javax.annotation.Nullable Category category) { this.category = category; @@ -180,7 +180,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() { @@ -188,7 +188,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; @@ -215,7 +215,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() { @@ -224,7 +224,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; @@ -251,7 +251,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() { @@ -259,7 +259,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; @@ -278,7 +278,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() { @@ -286,7 +286,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 2ad33bb91890..9bb90aed82c2 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 @@ -63,7 +63,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() { @@ -85,7 +85,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() { @@ -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(@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 7cf5f00bc718..d6502fc85066 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 adfb86f8f949..786e6115778d 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 @@ -61,7 +61,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() { @@ -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(@javax.annotation.Nullable Long id) { this.id = id; @@ -88,7 +88,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() { @@ -96,7 +96,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 ab43f995f92b..af746dbf6dee 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 @@ -80,7 +80,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() { @@ -88,7 +88,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; @@ -107,7 +107,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() { @@ -115,7 +115,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; @@ -134,7 +134,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() { @@ -142,7 +142,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; @@ -161,7 +161,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() { @@ -169,7 +169,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; @@ -196,7 +196,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() { @@ -204,7 +204,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 9455dcedfb63..591ca3c75077 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -112,7 +112,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() { @@ -120,7 +120,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; @@ -139,7 +139,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() { @@ -147,7 +147,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; @@ -166,7 +166,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() { @@ -174,7 +174,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; @@ -193,7 +193,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() { @@ -201,7 +201,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; @@ -228,7 +228,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() { @@ -236,7 +236,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 cabbaed555ab..ffc4adbf47c7 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 @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -118,7 +118,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() { @@ -126,7 +126,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; @@ -145,7 +145,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() { @@ -153,7 +153,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; @@ -172,7 +172,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() { @@ -180,7 +180,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; @@ -199,7 +199,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() { @@ -207,7 +207,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; @@ -226,7 +226,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() { @@ -234,7 +234,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; @@ -253,7 +253,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() { @@ -261,7 +261,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; @@ -280,7 +280,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() { @@ -288,7 +288,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 cf8bd91783a1..6681734e2573 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 @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -227,7 +227,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() { @@ -235,7 +235,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; @@ -254,7 +254,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() { @@ -262,7 +262,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; @@ -281,7 +281,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() { @@ -289,7 +289,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -343,7 +343,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() { @@ -351,7 +351,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; @@ -370,7 +370,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() { @@ -378,7 +378,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; @@ -397,7 +397,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() { @@ -405,7 +405,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; @@ -424,7 +424,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() { @@ -432,7 +432,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; @@ -459,7 +459,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() { @@ -467,7 +467,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; @@ -494,7 +494,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() { @@ -502,7 +502,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; @@ -521,7 +521,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() { @@ -529,7 +529,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; @@ -548,7 +548,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() { @@ -556,7 +556,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; @@ -575,7 +575,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() { @@ -583,7 +583,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; @@ -602,7 +602,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() { @@ -610,7 +610,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; @@ -637,7 +637,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() { @@ -645,7 +645,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; @@ -672,7 +672,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() { @@ -680,7 +680,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; @@ -699,7 +699,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() { @@ -707,7 +707,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; @@ -726,7 +726,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() { @@ -734,7 +734,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; @@ -753,7 +753,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() { @@ -761,7 +761,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; @@ -780,7 +780,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() { @@ -788,7 +788,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; @@ -815,7 +815,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() { @@ -823,7 +823,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; @@ -850,7 +850,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() { @@ -858,7 +858,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; @@ -877,7 +877,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() { @@ -885,7 +885,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; @@ -904,7 +904,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() { @@ -912,7 +912,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; @@ -931,7 +931,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() { @@ -939,7 +939,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; @@ -958,7 +958,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() { @@ -966,7 +966,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; @@ -993,7 +993,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() { @@ -1001,7 +1001,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; @@ -1028,7 +1028,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() { @@ -1036,7 +1036,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 8e9d4da7934e..2e119eed415e 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -99,7 +99,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -107,7 +107,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 6cf1b1af63dd..3796f7a337a6 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 @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -82,7 +82,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() { @@ -90,7 +90,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 3cb0c0ec4c76..6b97a3d27095 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 @@ -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; @@ -94,7 +94,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() { @@ -102,7 +102,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 48a9566027ca..6872779a0244 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 @@ -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/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 b3618cd6bb37..4cb5c0a30b2b 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 @@ -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/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 c898e1d8038f..f4650bf62d96 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 @@ -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; @@ -106,7 +106,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() { @@ -114,7 +114,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/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 61e2a6cbb8c8..cb3de8a47dfa 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -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; @@ -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; @@ -179,7 +179,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() { @@ -187,7 +187,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; @@ -205,7 +205,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() { @@ -213,7 +213,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 db2cf2a7e7e1..639661476feb 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 033f50b7676e..046f100ee89d 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 2cda978c3799..4e947e67a485 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 1d2b984a2cdb..df3587f2cb18 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 1f741134586d..3aa9e08d8629 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 6a376d1d3c23..2ac6efe31ae5 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 @@ -52,7 +52,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() { @@ -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/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 6bc6de6e196b..982d98f19a46 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 @@ -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/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 eceadd7fdb0d..849334be0f89 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 @@ -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; @@ -162,7 +162,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() { @@ -170,7 +170,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 003b2bb4a1db..a6d9a2632c98 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 @@ -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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -289,7 +289,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() { @@ -297,7 +297,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; @@ -347,7 +347,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() { @@ -375,7 +375,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() { @@ -383,7 +383,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; @@ -401,7 +401,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() { @@ -409,7 +409,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; @@ -427,7 +427,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() { @@ -435,7 +435,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 06987804723e..5baa75015326 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 @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -93,7 +93,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() { @@ -101,7 +101,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 fb2a9bb0ba0b..85a65ea43eb8 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 @@ -50,7 +50,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() { @@ -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/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 ddc0c63e75c1..16e482e3f2fe 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 @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -93,7 +93,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() { @@ -101,7 +101,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 1343e29a90e2..58c0c144e2cd 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 b8e4d184c0fb..9870f6d3a4d5 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 3d52274486b8..fcb09a26743a 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -161,7 +161,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() { @@ -169,7 +169,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; @@ -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; @@ -243,7 +243,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() { @@ -251,7 +251,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) { * @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() { @@ -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; @@ -297,7 +297,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() { @@ -305,7 +305,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; @@ -323,7 +323,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() { @@ -331,7 +331,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; @@ -349,7 +349,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() { @@ -357,7 +357,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; @@ -375,7 +375,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() { @@ -383,7 +383,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; @@ -401,7 +401,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() { @@ -409,7 +409,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; @@ -427,7 +427,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() { @@ -435,7 +435,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; @@ -453,7 +453,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() { @@ -461,7 +461,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; @@ -479,7 +479,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() { @@ -487,7 +487,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; @@ -505,7 +505,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() { @@ -513,7 +513,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; @@ -531,7 +531,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() { @@ -539,7 +539,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 7c4a334d50ed..9c10d1e40ad6 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 @@ -60,7 +60,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/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 91b101d36e3e..4ea7a5b57f65 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 @@ -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/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 1e33c5d356b5..2406bc609250 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -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; @@ -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/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 35fc496e043c..97e81a9172c4 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -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/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 f6ba2eaecc02..110ea86dcb3d 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 6e3b10f29d27..aa74261abf58 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -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/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 a4f2f2219462..0a30e58fe241 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c4f64dc9a66a..6217c43b9dcb 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c960d818abfc..379491b6472a 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 @@ -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) public Integer getName() { @@ -83,7 +83,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() { @@ -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/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 dcc4d006a091..10309cafeb92 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 @@ -117,7 +117,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() { @@ -185,7 +185,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() { @@ -219,7 +219,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() { @@ -253,7 +253,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() { @@ -287,7 +287,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() { @@ -333,7 +333,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() { @@ -379,7 +379,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() { @@ -415,7 +415,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() { @@ -423,7 +423,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() { @@ -505,7 +505,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() { @@ -541,7 +541,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() { @@ -549,7 +549,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 93f1be9d1d96..ee6767819fd6 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 5d41c6ad9717..9e835a4d220b 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -98,7 +98,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() { @@ -106,7 +106,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; @@ -162,7 +162,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() { @@ -170,7 +170,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 175fdf7e48e5..2466f5e8e712 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -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; @@ -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; @@ -217,7 +217,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() { @@ -225,7 +225,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; @@ -243,7 +243,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() { @@ -251,7 +251,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 7d44a03ed8b8..314b073d4216 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -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 isMyBoolean() { @@ -121,7 +121,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 bb003e14871e..c9d09b761aa3 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 be54ca76ea20..f2e8a3ea9447 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 @@ -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; @@ -135,7 +135,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 7443c1c1f4a1..32893ec22026 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 @@ -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; @@ -146,7 +146,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() { @@ -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) { * @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; @@ -206,7 +206,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() { @@ -215,7 +215,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; @@ -241,7 +241,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() { @@ -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; @@ -267,7 +267,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() { @@ -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/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 abc888cc0f88..258267bf3f3e 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 @@ -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) 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/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 f77d213e8b7b..03eaec13fbf8 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 3ebd839fc00b..dc6d909d470d 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 598d5be46bba..839c0fec3f8c 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 @@ -55,7 +55,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() { @@ -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(@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 41a720b9b069..a63c9387e01b 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -189,7 +189,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() { @@ -197,7 +197,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; @@ -215,7 +215,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() { @@ -223,7 +223,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; @@ -241,7 +241,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() { @@ -249,7 +249,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; @@ -267,7 +267,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() { @@ -275,7 +275,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 8afd2f5020e0..610378be1a19 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesArray.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index cec74b5439cf..0b2756a13a21 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 @@ -54,7 +54,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() { @@ -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/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 864af85f5253..20dc974d3eb0 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 5fc006ae735d..c8a10cd27d4c 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 @@ -112,7 +112,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() { @@ -120,7 +120,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; @@ -145,7 +145,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() { @@ -153,7 +153,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; @@ -178,7 +178,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() { @@ -186,7 +186,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; @@ -211,7 +211,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() { @@ -219,7 +219,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; @@ -244,7 +244,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -252,7 +252,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; @@ -277,7 +277,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() { @@ -285,7 +285,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; @@ -310,7 +310,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -318,7 +318,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; @@ -343,7 +343,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -351,7 +351,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; @@ -368,7 +368,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() { @@ -376,7 +376,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; @@ -393,7 +393,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() { @@ -401,7 +401,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; @@ -418,7 +418,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() { @@ -426,7 +426,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 c0628c3f7990..139c4eb93231 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesNumber.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 87d3efd48e48..e3bc73e29471 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 @@ -54,7 +54,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() { @@ -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/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 f5bb8adb470f..0e5595951903 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesString.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index b2ac0ee76ee1..9ecc332272b2 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 @@ -53,7 +53,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() { @@ -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/Animal.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java index 4dfe4513e004..093d8446f101 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 @@ -69,7 +69,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() { @@ -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; @@ -94,7 +94,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() { @@ -102,7 +102,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 6ce9b83c67ef..c2d684e2fcfc 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 @@ -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/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 f36135202ce4..28fbf8c2d5b3 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 @@ -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/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 2453f58cc35b..e0175f2d03db 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 @@ -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/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 07c91941dbfc..d9c0cb3a9a03 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 @@ -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/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 5682f213b657..e4864216208c 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 6e1800185d62..f4ea08ab72bd 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 @@ -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/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 78cc077529bf..249f14c58a69 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 74dd4385a903..bc883861da55 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 99fe381a8761..76b0c5cac91d 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 9c932cb01bde..63cc53e66020 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 @@ -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/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 e6cca680c1f6..95af14f9eb16 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 @@ -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/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 da91df336aa4..6c7c1718ee75 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 @@ -216,7 +216,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() { @@ -224,7 +224,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; @@ -241,7 +241,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() { @@ -249,7 +249,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; @@ -266,7 +266,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() { @@ -274,7 +274,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; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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 a05efa3c9138..28eae4a9c518 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 @@ -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/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 079a4a757cee..4bbf3908ac92 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 @@ -123,7 +123,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() { @@ -131,7 +131,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -202,7 +202,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() { @@ -210,7 +210,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; @@ -229,7 +229,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() { @@ -237,7 +237,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; @@ -256,7 +256,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() { @@ -264,7 +264,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; @@ -281,7 +281,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() { @@ -289,7 +289,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; @@ -306,7 +306,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() { @@ -314,7 +314,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; @@ -331,7 +331,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() { @@ -339,7 +339,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; @@ -356,7 +356,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() { @@ -364,7 +364,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; @@ -381,7 +381,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() { @@ -389,7 +389,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; @@ -406,7 +406,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() { @@ -414,7 +414,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; @@ -431,7 +431,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() { @@ -439,7 +439,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; @@ -456,7 +456,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() { @@ -464,7 +464,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 ef912674bde7..dd34438d5ed8 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 @@ -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; @@ -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() { @@ -76,7 +76,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 ec9e81743d7e..99c72041af48 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 b480c7d542dc..d0219f2e2173 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -123,7 +123,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() { @@ -131,7 +131,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 2a69b55cfd63..7a268eb4a14e 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 f080773624a8..1255ae56e3d0 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 21f812364f02..45f97655028f 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c24868360f69..dfef26ef7fbf 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b7ca4af717d3..6901c048a0aa 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 dce25ead2111..4c67288873e4 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 @@ -58,8 +58,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; @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -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/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 a91f0c49358f..c0748fb6a1c6 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 64b26edbd416..54308806a1d8 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 3ba67944ba15..d4122b6599f2 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 2a0fdfd8c10c..91c273899150 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 @@ -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/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 d1147f1fda3a..eee83de7eadb 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 @@ -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; @@ -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/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 2d571740d952..4ab74a64c278 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c46a759548fa..666772aed4be 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 0548be6b0e30..10f17b5ff913 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 @@ -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/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 39766e339f9f..d482405dc446 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 @@ -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/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 006f4222a31e..f342e9bcd3a5 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 f10791f784a2..92df8c1d5b31 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 @@ -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-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 3669ec2b7494..b13c7a2af786 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 58d207b799d1..582b84fcebbe 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 @@ -57,7 +57,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() { @@ -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/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 ceeb4ff66c76..509fab02d8af 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index a4271593547c..7234016ff967 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 @@ -114,7 +114,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() { @@ -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(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -147,7 +147,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() { @@ -155,7 +155,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; @@ -180,7 +180,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() { @@ -188,7 +188,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -246,7 +246,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -254,7 +254,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; @@ -279,7 +279,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() { @@ -287,7 +287,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; @@ -312,7 +312,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -320,7 +320,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; @@ -345,7 +345,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -353,7 +353,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; @@ -370,7 +370,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() { @@ -378,7 +378,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; @@ -395,7 +395,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() { @@ -403,7 +403,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; @@ -420,7 +420,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() { @@ -428,7 +428,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 f84eb0375738..89df7723d44d 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 1efe49749df0..96be54b277eb 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 @@ -57,7 +57,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() { @@ -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/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 fd7a2bdcc6b4..e52a4456ca28 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 @@ -57,7 +57,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() { @@ -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/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 40bb58f247bb..ecc06add09b0 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 @@ -56,7 +56,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() { @@ -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/Animal.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java index 762ce1ea8408..e1d4d805c820 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 @@ -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/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 b98cafbbbce1..4cc84bbc2ab9 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 @@ -63,7 +63,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() { @@ -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/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 cfed0670014f..134f60a31ef5 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 @@ -63,7 +63,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() { @@ -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/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 dac39d2b9a7e..f8d129483f81 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 @@ -73,7 +73,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() { @@ -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; @@ -106,7 +106,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() { @@ -114,7 +114,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/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 657ed427dba7..a40f9d59476b 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 @@ -101,7 +101,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() { @@ -109,7 +109,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 660e37085ace..b40a09ba0ea7 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 @@ -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/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 37b88ce83924..32d94ea0e0c7 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 @@ -65,7 +65,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() { @@ -73,7 +73,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 6f93cc06f761..a1a8b50ce17c 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 @@ -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/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 1d79b6426ba9..ed88bd95c917 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 @@ -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/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 7974fd221a51..4f301ba7fa50 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 @@ -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/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 c65f99508fb7..6f5340ae6382 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 @@ -62,7 +62,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() { @@ -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/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 4bf6b5b8adc1..a6ddc12711a0 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 @@ -129,7 +129,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() { @@ -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; @@ -162,7 +162,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() { @@ -170,7 +170,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 7fd6743e8597..7582662f1b64 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 @@ -218,7 +218,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() { @@ -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(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -243,7 +243,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() { @@ -251,7 +251,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; @@ -268,7 +268,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() { @@ -276,7 +276,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; @@ -293,7 +293,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() { @@ -301,7 +301,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; @@ -318,7 +318,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() { @@ -326,7 +326,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 f918f74ed261..7fb3ec15d833 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 @@ -60,7 +60,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() { @@ -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; @@ -93,7 +93,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() { @@ -101,7 +101,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 ef745adae3dc..84b602e1a0e4 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 @@ -125,7 +125,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() { @@ -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(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -152,7 +152,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() { @@ -160,7 +160,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; @@ -177,7 +177,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() { @@ -185,7 +185,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; @@ -204,7 +204,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() { @@ -212,7 +212,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; @@ -231,7 +231,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() { @@ -239,7 +239,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; @@ -258,7 +258,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() { @@ -266,7 +266,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; @@ -283,7 +283,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() { @@ -291,7 +291,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; @@ -308,7 +308,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() { @@ -316,7 +316,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; @@ -333,7 +333,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() { @@ -341,7 +341,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; @@ -358,7 +358,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() { @@ -366,7 +366,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; @@ -383,7 +383,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() { @@ -391,7 +391,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; @@ -408,7 +408,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() { @@ -416,7 +416,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; @@ -433,7 +433,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() { @@ -441,7 +441,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; @@ -458,7 +458,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() { @@ -466,7 +466,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 17cca6a23207..9f0c0cc4fc51 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 @@ -63,7 +63,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/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 a91343d4e399..c038bf4bed73 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 @@ -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/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 2bb465df5871..15d839effccb 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 @@ -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 LocalDateTime getDateTime() { @@ -100,7 +100,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; @@ -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/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 3f582ce99663..2db77a7e154c 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 @@ -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/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 3afd743b68c8..8785ead7f9ab 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 @@ -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/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 573a0f09ae43..ee94ca723494 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 @@ -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/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 c443b42e2fa0..c8ad5a307f30 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 @@ -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/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 488f0dfe2ab4..441e6b8844bd 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 @@ -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/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 d59aaa66fd0c..ab6dae15f686 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 @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -97,7 +97,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() { @@ -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) public String getProperty() { @@ -125,7 +125,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/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 8df7be2d2cb4..47079120d641 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 @@ -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/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 9f5bfe08f739..058f7a1654ca 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 @@ -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 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() { @@ -198,7 +198,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; @@ -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/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 bd9277f2cdb2..871f76488c9b 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 @@ -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/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 007f53605136..2748ec3e5bc7 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 @@ -121,7 +121,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() { @@ -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; @@ -146,7 +146,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() { @@ -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; @@ -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; @@ -204,7 +204,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() { @@ -213,7 +213,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; @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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 b0eebf16a2b4..9bef3dbf7830 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 @@ -60,7 +60,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() { @@ -80,7 +80,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() { @@ -88,7 +88,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 94252cf596df..284775c73d0f 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 @@ -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/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 19ff6fb38986..b134681ce372 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 @@ -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/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 5d1b1f95715a..8c4625176d24 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -100,7 +100,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() { @@ -108,7 +108,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -183,7 +183,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() { @@ -191,7 +191,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 a6e5a79a9513..28e6de7315ab 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 @@ -80,7 +80,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() { @@ -88,7 +88,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; @@ -105,7 +105,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() { @@ -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(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -130,7 +130,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() { @@ -138,7 +138,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; @@ -155,7 +155,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() { @@ -163,7 +163,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; @@ -180,7 +180,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() { @@ -188,7 +188,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; @@ -213,7 +213,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() { @@ -221,7 +221,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 19ee89b46144..17888e808d6d 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 @@ -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/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 6fb1e58896d4..60ebd664c905 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 @@ -195,7 +195,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() { @@ -203,7 +203,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; @@ -220,7 +220,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() { @@ -228,7 +228,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; @@ -245,7 +245,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() { @@ -253,7 +253,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; @@ -270,7 +270,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() { @@ -278,7 +278,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; @@ -303,7 +303,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() { @@ -311,7 +311,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; @@ -328,7 +328,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() { @@ -336,7 +336,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; @@ -353,7 +353,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() { @@ -361,7 +361,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; @@ -378,7 +378,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() { @@ -386,7 +386,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; @@ -403,7 +403,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() { @@ -411,7 +411,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; @@ -436,7 +436,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() { @@ -444,7 +444,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; @@ -469,7 +469,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() { @@ -477,7 +477,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; @@ -494,7 +494,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() { @@ -502,7 +502,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; @@ -519,7 +519,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() { @@ -527,7 +527,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; @@ -544,7 +544,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() { @@ -552,7 +552,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; @@ -569,7 +569,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() { @@ -577,7 +577,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; @@ -602,7 +602,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() { @@ -610,7 +610,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; @@ -635,7 +635,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() { @@ -643,7 +643,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; @@ -660,7 +660,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() { @@ -668,7 +668,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; @@ -685,7 +685,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() { @@ -693,7 +693,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; @@ -710,7 +710,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() { @@ -718,7 +718,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; @@ -735,7 +735,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() { @@ -743,7 +743,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; @@ -768,7 +768,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() { @@ -776,7 +776,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; @@ -801,7 +801,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() { @@ -809,7 +809,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; @@ -826,7 +826,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() { @@ -834,7 +834,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; @@ -851,7 +851,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() { @@ -859,7 +859,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; @@ -876,7 +876,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() { @@ -884,7 +884,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; @@ -901,7 +901,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() { @@ -909,7 +909,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; @@ -934,7 +934,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() { @@ -942,7 +942,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; @@ -967,7 +967,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() { @@ -975,7 +975,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 3669ec2b7494..b13c7a2af786 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 58d207b799d1..582b84fcebbe 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 @@ -57,7 +57,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() { @@ -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/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 ceeb4ff66c76..509fab02d8af 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index a4271593547c..7234016ff967 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 @@ -114,7 +114,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() { @@ -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(@javax.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -147,7 +147,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() { @@ -155,7 +155,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; @@ -180,7 +180,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() { @@ -188,7 +188,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -246,7 +246,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -254,7 +254,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; @@ -279,7 +279,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() { @@ -287,7 +287,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; @@ -312,7 +312,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -320,7 +320,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; @@ -345,7 +345,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -353,7 +353,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; @@ -370,7 +370,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() { @@ -378,7 +378,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; @@ -395,7 +395,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() { @@ -403,7 +403,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; @@ -420,7 +420,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() { @@ -428,7 +428,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 f84eb0375738..89df7723d44d 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 1efe49749df0..96be54b277eb 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 @@ -57,7 +57,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() { @@ -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/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 fd7a2bdcc6b4..e52a4456ca28 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 @@ -57,7 +57,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() { @@ -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/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 40bb58f247bb..ecc06add09b0 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 @@ -56,7 +56,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() { @@ -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/Animal.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index 762ce1ea8408..e1d4d805c820 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 @@ -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/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 b98cafbbbce1..4cc84bbc2ab9 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 @@ -63,7 +63,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() { @@ -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/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 cfed0670014f..134f60a31ef5 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 @@ -63,7 +63,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() { @@ -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/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 dac39d2b9a7e..f8d129483f81 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 @@ -73,7 +73,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() { @@ -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; @@ -106,7 +106,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() { @@ -114,7 +114,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/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 657ed427dba7..a40f9d59476b 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 @@ -101,7 +101,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() { @@ -109,7 +109,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 660e37085ace..b40a09ba0ea7 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 @@ -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/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 37b88ce83924..32d94ea0e0c7 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 @@ -65,7 +65,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() { @@ -73,7 +73,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 6f93cc06f761..a1a8b50ce17c 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 @@ -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/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 1d79b6426ba9..ed88bd95c917 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 @@ -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/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 7974fd221a51..4f301ba7fa50 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 @@ -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/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 c65f99508fb7..6f5340ae6382 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 @@ -62,7 +62,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() { @@ -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/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 4bf6b5b8adc1..a6ddc12711a0 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 @@ -129,7 +129,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() { @@ -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; @@ -162,7 +162,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() { @@ -170,7 +170,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 7fd6743e8597..7582662f1b64 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 @@ -218,7 +218,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() { @@ -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(@javax.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -243,7 +243,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() { @@ -251,7 +251,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; @@ -268,7 +268,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() { @@ -276,7 +276,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; @@ -293,7 +293,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() { @@ -301,7 +301,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; @@ -318,7 +318,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() { @@ -326,7 +326,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 f918f74ed261..7fb3ec15d833 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 @@ -60,7 +60,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() { @@ -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; @@ -93,7 +93,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() { @@ -101,7 +101,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 a23084be7def..8f1fc37a4e30 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 @@ -125,7 +125,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() { @@ -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(@javax.annotation.Nullable Integer integer) { this.integer = integer; @@ -152,7 +152,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() { @@ -160,7 +160,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; @@ -177,7 +177,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() { @@ -185,7 +185,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; @@ -204,7 +204,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() { @@ -212,7 +212,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; @@ -231,7 +231,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() { @@ -239,7 +239,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; @@ -258,7 +258,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() { @@ -266,7 +266,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; @@ -283,7 +283,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() { @@ -291,7 +291,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; @@ -308,7 +308,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() { @@ -316,7 +316,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; @@ -333,7 +333,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() { @@ -341,7 +341,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; @@ -358,7 +358,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() { @@ -366,7 +366,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; @@ -383,7 +383,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() { @@ -391,7 +391,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; @@ -408,7 +408,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() { @@ -416,7 +416,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; @@ -433,7 +433,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() { @@ -441,7 +441,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; @@ -458,7 +458,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() { @@ -466,7 +466,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 17cca6a23207..9f0c0cc4fc51 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 @@ -63,7 +63,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/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 a91343d4e399..c038bf4bed73 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 @@ -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/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 5568c4597fe6..b6b1a7fe2ca9 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 @@ -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/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 3f582ce99663..2db77a7e154c 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 @@ -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/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 3afd743b68c8..8785ead7f9ab 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 @@ -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/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 573a0f09ae43..ee94ca723494 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 @@ -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/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 c443b42e2fa0..c8ad5a307f30 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 @@ -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/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 488f0dfe2ab4..441e6b8844bd 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 @@ -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/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 d59aaa66fd0c..ab6dae15f686 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 @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -97,7 +97,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() { @@ -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) public String getProperty() { @@ -125,7 +125,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/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 8df7be2d2cb4..47079120d641 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 @@ -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/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 0de7c4fd5aad..98ad072ef643 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 @@ -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/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 bd9277f2cdb2..871f76488c9b 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 @@ -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/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 007f53605136..2748ec3e5bc7 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 @@ -121,7 +121,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() { @@ -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; @@ -146,7 +146,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() { @@ -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; @@ -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; @@ -204,7 +204,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() { @@ -213,7 +213,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; @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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 b0eebf16a2b4..9bef3dbf7830 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 @@ -60,7 +60,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() { @@ -80,7 +80,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() { @@ -88,7 +88,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 94252cf596df..284775c73d0f 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 @@ -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/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 19ff6fb38986..b134681ce372 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 @@ -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/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 5d1b1f95715a..8c4625176d24 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -100,7 +100,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() { @@ -108,7 +108,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -183,7 +183,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() { @@ -191,7 +191,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 a6e5a79a9513..28e6de7315ab 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 @@ -80,7 +80,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() { @@ -88,7 +88,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; @@ -105,7 +105,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() { @@ -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(@javax.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -130,7 +130,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() { @@ -138,7 +138,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; @@ -155,7 +155,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() { @@ -163,7 +163,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; @@ -180,7 +180,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() { @@ -188,7 +188,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; @@ -213,7 +213,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() { @@ -221,7 +221,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 19ee89b46144..17888e808d6d 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 @@ -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/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 6fb1e58896d4..60ebd664c905 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 @@ -195,7 +195,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() { @@ -203,7 +203,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; @@ -220,7 +220,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() { @@ -228,7 +228,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; @@ -245,7 +245,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() { @@ -253,7 +253,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; @@ -270,7 +270,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() { @@ -278,7 +278,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; @@ -303,7 +303,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() { @@ -311,7 +311,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; @@ -328,7 +328,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() { @@ -336,7 +336,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; @@ -353,7 +353,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() { @@ -361,7 +361,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; @@ -378,7 +378,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() { @@ -386,7 +386,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; @@ -403,7 +403,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() { @@ -411,7 +411,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; @@ -436,7 +436,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() { @@ -444,7 +444,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; @@ -469,7 +469,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() { @@ -477,7 +477,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; @@ -494,7 +494,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() { @@ -502,7 +502,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; @@ -519,7 +519,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() { @@ -527,7 +527,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; @@ -544,7 +544,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() { @@ -552,7 +552,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; @@ -569,7 +569,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() { @@ -577,7 +577,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; @@ -602,7 +602,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() { @@ -610,7 +610,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; @@ -635,7 +635,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() { @@ -643,7 +643,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; @@ -660,7 +660,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() { @@ -668,7 +668,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; @@ -685,7 +685,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() { @@ -693,7 +693,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; @@ -710,7 +710,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() { @@ -718,7 +718,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; @@ -735,7 +735,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() { @@ -743,7 +743,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; @@ -768,7 +768,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() { @@ -776,7 +776,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; @@ -801,7 +801,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() { @@ -809,7 +809,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; @@ -826,7 +826,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() { @@ -834,7 +834,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; @@ -851,7 +851,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() { @@ -859,7 +859,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; @@ -876,7 +876,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() { @@ -884,7 +884,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; @@ -901,7 +901,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() { @@ -909,7 +909,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; @@ -934,7 +934,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() { @@ -942,7 +942,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; @@ -967,7 +967,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() { @@ -975,7 +975,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 309c6be14f58..d63d15f8dfb7 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 @@ -53,7 +53,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() { @@ -61,7 +61,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 7e8bf2513e91..19c1ec494c8d 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 @@ -105,7 +105,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() { @@ -113,7 +113,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; @@ -140,7 +140,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -148,7 +148,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; @@ -172,7 +172,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() { @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -226,7 +226,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() { @@ -234,7 +234,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; @@ -260,7 +260,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() { @@ -268,7 +268,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; @@ -286,7 +286,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() { @@ -294,7 +294,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; @@ -320,7 +320,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() { @@ -328,7 +328,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 d0904fddcae9..891b863ca519 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 @@ -76,7 +76,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() { @@ -84,7 +84,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; @@ -102,7 +102,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() { @@ -110,7 +110,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 2f9adffa3443..a38e4ab44dfc 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 @@ -63,7 +63,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() { @@ -71,7 +71,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; @@ -89,7 +89,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() { @@ -97,7 +97,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 f685ac9ce5d9..3fe8656c0297 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 @@ -64,7 +64,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() { @@ -72,7 +72,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; @@ -90,7 +90,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() { @@ -98,7 +98,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 44a3b0e65fcc..2b4004fd7de6 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 @@ -69,7 +69,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() { @@ -77,7 +77,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 305ea65f7106..93c63bc240a0 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 @@ -69,7 +69,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() { @@ -77,7 +77,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 89c0a9f84146..22917c7343ad 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 @@ -78,7 +78,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() { @@ -86,7 +86,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; @@ -113,7 +113,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -148,7 +148,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() { @@ -156,7 +156,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 faf2b8399375..c49709825c0b 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 @@ -60,7 +60,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() { @@ -68,7 +68,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 293cd9bd5846..ea709d1d49ed 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 @@ -66,7 +66,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() { @@ -74,7 +74,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; @@ -92,7 +92,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() { @@ -100,7 +100,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 bc6c3f9f3887..768d4bbd7ac6 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 a91d77bf59d5..239f06866b35 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 @@ -82,7 +82,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() { @@ -90,7 +90,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; @@ -108,7 +108,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() { @@ -116,7 +116,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; @@ -134,7 +134,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() { @@ -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(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -186,7 +186,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() { @@ -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(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -212,7 +212,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() { @@ -220,7 +220,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 831cd6473ded..d2fdc98f3cd1 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 @@ -72,7 +72,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() { @@ -80,7 +80,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 132a97f8a14f..f5bb478cfd84 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 @@ -62,7 +62,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() { @@ -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; @@ -89,7 +89,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() { @@ -97,7 +97,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 ca01b62706a9..9d7b7ce7cc65 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 @@ -78,7 +78,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() { @@ -86,7 +86,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; @@ -112,7 +112,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() { @@ -120,7 +120,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 be21fbd47a5c..64fac0042e69 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 e68877903700..37349316226c 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 749824c5e81c..94101af82b24 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 @@ -67,7 +67,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() { @@ -75,7 +75,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; @@ -94,7 +94,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() { @@ -102,7 +102,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 1ab5593c7474..55fbc25e5f63 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 b3b7e019a3a2..f56753fe6900 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 @@ -59,7 +59,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() { @@ -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(@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 973191757aa8..d8b0ddea2e58 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 @@ -71,7 +71,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() { @@ -79,7 +79,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 9688ea12133d..eafa78975f86 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -118,7 +118,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() { @@ -153,7 +153,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() { @@ -190,7 +190,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() { @@ -198,7 +198,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 3eceb4708d3f..9e55ba0a882e 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 @@ -134,7 +134,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() { @@ -142,7 +142,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; @@ -168,7 +168,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() { @@ -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(@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 ae70bec7d171..3012ee98253b 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 @@ -284,7 +284,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() { @@ -292,7 +292,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; @@ -311,7 +311,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() { @@ -319,7 +319,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; @@ -337,7 +337,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() { @@ -345,7 +345,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; @@ -363,7 +363,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() { @@ -371,7 +371,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; @@ -389,7 +389,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() { @@ -397,7 +397,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; @@ -422,7 +422,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() { @@ -451,7 +451,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() { @@ -459,7 +459,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; @@ -478,7 +478,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() { @@ -486,7 +486,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; @@ -505,7 +505,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() { @@ -513,7 +513,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 9df45528f01a..8077cf54f2d9 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 @@ -67,7 +67,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() { @@ -75,7 +75,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; @@ -94,7 +94,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() { @@ -102,7 +102,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 71f0185cd4b2..23773bafe008 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 @@ -66,7 +66,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() { @@ -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(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -101,7 +101,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() { @@ -109,7 +109,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 062fb2c52d0d..c86f3948c658 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 2b0275421af7..e3b1d35f4e56 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 @@ -60,7 +60,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() { @@ -68,7 +68,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 938ead6ded23..9c053b18adf1 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 @@ -140,7 +140,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() { @@ -148,7 +148,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; @@ -168,7 +168,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() { @@ -176,7 +176,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; @@ -194,7 +194,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() { @@ -202,7 +202,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; @@ -224,7 +224,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() { @@ -232,7 +232,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; @@ -252,7 +252,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() { @@ -260,7 +260,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; @@ -280,7 +280,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() { @@ -288,7 +288,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; @@ -307,7 +307,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() { @@ -315,7 +315,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; @@ -333,7 +333,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() { @@ -341,7 +341,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; @@ -360,7 +360,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() { @@ -368,7 +368,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; @@ -387,7 +387,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() { @@ -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(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -415,7 +415,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() { @@ -423,7 +423,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; @@ -442,7 +442,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() { @@ -450,7 +450,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; @@ -469,7 +469,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() { @@ -477,7 +477,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; @@ -496,7 +496,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() { @@ -504,7 +504,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; @@ -522,7 +522,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() { @@ -530,7 +530,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; @@ -548,7 +548,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() { @@ -556,7 +556,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 fa160c59d5a6..2a43ed846679 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 @@ -71,7 +71,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() { @@ -79,7 +79,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 d0c1efaf1de3..e9a5c97ee881 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 @@ -68,7 +68,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() { @@ -84,7 +84,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 c9486a08bad3..6c29e049a5bd 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 @@ -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/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 8d2f314f243b..f7cad836282e 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 @@ -63,7 +63,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() { @@ -71,7 +71,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; @@ -90,7 +90,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() { @@ -98,7 +98,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 cc9dfc98847e..a6f6b23ab009 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 @@ -118,7 +118,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() { @@ -126,7 +126,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; @@ -152,7 +152,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() { @@ -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(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -186,7 +186,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() { @@ -194,7 +194,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; @@ -220,7 +220,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() { @@ -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(@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 47fbbe7f88e1..f2a6a08ccaed 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 @@ -73,7 +73,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() { @@ -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(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -100,7 +100,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() { @@ -108,7 +108,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; @@ -135,7 +135,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() { @@ -143,7 +143,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 a61ca3fab080..fa1ab72dba02 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 @@ -63,7 +63,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() { @@ -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(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -89,7 +89,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() { @@ -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(@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 5a19fb5ff83c..f5b571ebbf98 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 @@ -68,7 +68,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() { @@ -76,7 +76,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) { */ @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; @@ -120,7 +120,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() { @@ -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(@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 c5087f32483e..d03c6a230fe9 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 a2d7fcae01e1..45c89c5bf850 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 0fe648132207..0523a2be4adc 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 34b42f2429f2..daf8e5c84ff1 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 @@ -83,7 +83,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() { @@ -91,7 +91,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; @@ -104,7 +104,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() { @@ -125,7 +125,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() { @@ -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(@jakarta.annotation.Nullable String property) { this.property = property; @@ -146,7 +146,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 8e161772e7ed..7882f28c5e22 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 @@ -123,7 +123,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() { @@ -158,7 +158,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() { @@ -226,7 +226,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() { @@ -261,7 +261,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() { @@ -296,7 +296,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() { @@ -342,7 +342,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() { @@ -388,7 +388,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() { @@ -424,7 +424,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() { @@ -432,7 +432,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; @@ -468,7 +468,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() { @@ -514,7 +514,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() { @@ -550,7 +550,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() { @@ -558,7 +558,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 41df1fe90eca..513545770e10 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 @@ -59,7 +59,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() { @@ -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) 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 edfd6c356170..fad17af34b14 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 @@ -79,7 +79,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() { @@ -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(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; @@ -109,7 +109,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() { @@ -118,7 +118,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; @@ -140,7 +140,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() { @@ -149,7 +149,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; @@ -178,7 +178,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() { @@ -187,7 +187,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 7ee5f36792d4..26a4b066e0ff 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 @@ -120,7 +120,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -146,7 +146,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() { @@ -154,7 +154,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; @@ -172,7 +172,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() { @@ -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(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -199,7 +199,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() { @@ -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; @@ -225,7 +225,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() { @@ -233,7 +233,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; @@ -251,7 +251,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() { @@ -259,7 +259,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 96d0cb226c6c..f1a4fcb3dd3d 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 @@ -69,7 +69,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -95,7 +95,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() { @@ -103,7 +103,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; @@ -121,7 +121,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() { @@ -129,7 +129,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 4e7b36a3a929..24583e24f6cd 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 @@ -123,7 +123,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -150,7 +150,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() { @@ -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(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -177,7 +177,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -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/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 d12ca28f606f..1e59fa958ebf 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 c8162694107a..617144e34056 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 @@ -65,7 +65,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() { @@ -86,7 +86,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() { @@ -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(@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 75d6d678331e..71b9e594bafb 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 @@ -67,7 +67,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() { @@ -75,7 +75,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; @@ -94,7 +94,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() { @@ -102,7 +102,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 cbd23267bc9a..441cbabcdb3c 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 @@ -58,7 +58,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() { @@ -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(@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 251faf323241..94b8e05c3ffc 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 @@ -67,7 +67,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() { @@ -75,7 +75,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; @@ -94,7 +94,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() { @@ -102,7 +102,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 88b02205d4c4..cad2bc05f46c 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 @@ -63,7 +63,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() { @@ -71,7 +71,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; @@ -89,7 +89,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() { @@ -97,7 +97,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 480ed80f8157..f70def4ee669 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 @@ -62,7 +62,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() { @@ -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; @@ -88,7 +88,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() { @@ -96,7 +96,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 9deb8e42eb8e..5cf53d94cc04 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 b6ee99810d62..2670df4047e4 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 243ad7db0a94..e3285b54b13a 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -139,7 +139,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() { @@ -147,7 +147,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; @@ -165,7 +165,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() { @@ -173,7 +173,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; @@ -191,7 +191,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() { @@ -199,7 +199,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; @@ -217,7 +217,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() { @@ -225,7 +225,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; @@ -243,7 +243,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() { @@ -251,7 +251,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; @@ -269,7 +269,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() { @@ -277,7 +277,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; @@ -295,7 +295,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() { @@ -303,7 +303,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; @@ -321,7 +321,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() { @@ -329,7 +329,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; @@ -353,7 +353,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() { @@ -387,7 +387,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() { @@ -421,7 +421,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 74f14d907fcb..3eecc513f934 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 @@ -68,7 +68,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() { @@ -76,7 +76,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; @@ -94,7 +94,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() { @@ -102,7 +102,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; @@ -121,7 +121,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() { @@ -129,7 +129,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 947ca9ce4664..f3169d126987 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -131,7 +131,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() { @@ -139,7 +139,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-mutiny/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Category.java index 46b73b36878a..fb2a6df6b92f 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Category.java @@ -48,7 +48,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; @@ -57,7 +57,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; @@ -72,7 +72,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; @@ -81,7 +81,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-mutiny/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6531ab9e376a..31a0ba631370 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -54,7 +54,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; @@ -63,7 +63,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; @@ -78,7 +78,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; @@ -87,7 +87,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; @@ -102,7 +102,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; @@ -111,7 +111,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-mutiny/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Order.java index 07a5b214ab9f..e2b33bc02bdf 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Order.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 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; @@ -137,7 +137,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; @@ -152,7 +152,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; @@ -161,7 +161,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; @@ -176,7 +176,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; @@ -185,7 +185,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; @@ -200,7 +200,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; @@ -209,7 +209,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; @@ -224,7 +224,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; @@ -233,7 +233,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-mutiny/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Pet.java index 5f40b7033880..00fd6a640deb 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Pet.java @@ -108,7 +108,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; @@ -117,7 +117,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; @@ -132,7 +132,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; @@ -141,7 +141,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; @@ -156,7 +156,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; @@ -165,7 +165,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; @@ -180,7 +180,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; @@ -189,7 +189,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; @@ -212,7 +212,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; @@ -221,7 +221,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; @@ -246,7 +246,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; @@ -255,7 +255,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-mutiny/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Tag.java index 21bfb71f68b6..aa1d2fbd4390 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/Tag.java @@ -48,7 +48,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; @@ -57,7 +57,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; @@ -72,7 +72,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; @@ -81,7 +81,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-mutiny/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/User.java index 04ec9f8d7689..fd0a47b7a2a3 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny/src/main/java/org/openapitools/client/model/User.java @@ -81,7 +81,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; @@ -90,7 +90,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; @@ -105,7 +105,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; @@ -114,7 +114,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; @@ -129,7 +129,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; @@ -138,7 +138,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; @@ -153,7 +153,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; @@ -162,7 +162,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; @@ -177,7 +177,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; @@ -186,7 +186,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; @@ -201,7 +201,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; @@ -210,7 +210,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; @@ -225,7 +225,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; @@ -234,7 +234,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; @@ -249,7 +249,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; @@ -258,7 +258,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; 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 61fc1862849a..175536c48db8 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 @@ -59,7 +59,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() { @@ -69,7 +69,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) { @@ -85,7 +85,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() { @@ -95,7 +95,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 4ef13f11df3e..13609451c4e4 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 @@ -65,7 +65,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() { @@ -75,7 +75,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) { @@ -91,7 +91,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() { @@ -101,7 +101,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) { @@ -117,7 +117,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() { @@ -127,7 +127,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 b942a9b2fa4c..fd163e6f3140 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 @@ -116,7 +116,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() { @@ -126,7 +126,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) { @@ -142,7 +142,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() { @@ -152,7 +152,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) { @@ -168,7 +168,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() { @@ -178,7 +178,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) { @@ -194,7 +194,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() { @@ -204,7 +204,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) { @@ -220,7 +220,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() { @@ -233,7 +233,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) { @@ -249,7 +249,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() { @@ -259,7 +259,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 c70012e839df..8e81c6eb6720 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 @@ -122,7 +122,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() { @@ -132,7 +132,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) { @@ -148,7 +148,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() { @@ -158,7 +158,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) { @@ -174,7 +174,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() { @@ -184,7 +184,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) { @@ -200,7 +200,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) @@ -211,7 +211,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) @@ -236,7 +236,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) @@ -247,7 +247,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) @@ -274,7 +274,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() { @@ -287,7 +287,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 562946c04ead..ff358af4ba28 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 @@ -59,7 +59,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() { @@ -69,7 +69,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) { @@ -85,7 +85,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() { @@ -95,7 +95,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 10708b47a1a8..de8cfd45f1da 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 @@ -92,7 +92,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() { @@ -102,7 +102,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) { @@ -118,7 +118,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() { @@ -128,7 +128,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) { @@ -144,7 +144,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() { @@ -154,7 +154,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) { @@ -170,7 +170,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() { @@ -180,7 +180,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) { @@ -196,7 +196,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() { @@ -206,7 +206,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) { @@ -222,7 +222,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() { @@ -232,7 +232,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) { @@ -248,7 +248,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() { @@ -258,7 +258,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) { @@ -274,7 +274,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() { @@ -284,7 +284,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 0354b66a3973..e5ddc33bd872 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 @@ -49,7 +49,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; @@ -58,7 +58,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; @@ -81,7 +81,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; @@ -90,7 +90,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 7469d9ecd94d..19a452ada7e5 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 @@ -48,7 +48,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; @@ -57,7 +57,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; @@ -72,7 +72,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; @@ -81,7 +81,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 6677658943bc..f6fe599d53bc 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 @@ -60,7 +60,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; @@ -69,7 +69,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; @@ -84,7 +84,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; @@ -93,7 +93,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 0b5c66a5fba1..0095acfb135d 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 @@ -46,7 +46,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; @@ -55,7 +55,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 4be23980a0d1..093e2d80b56e 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 @@ -46,7 +46,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; @@ -55,7 +55,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 c7dabc6e838c..d015a89a42dd 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 @@ -56,7 +56,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; @@ -65,7 +65,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; @@ -88,7 +88,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; @@ -97,7 +97,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; @@ -120,7 +120,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; @@ -129,7 +129,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 ca0ed12acceb..7d3e5df30d94 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 @@ -70,7 +70,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; @@ -79,7 +79,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; @@ -94,7 +94,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; @@ -103,7 +103,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; @@ -118,7 +118,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; @@ -127,7 +127,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; @@ -142,7 +142,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; @@ -151,7 +151,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; @@ -166,7 +166,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; @@ -175,7 +175,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; @@ -190,7 +190,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; @@ -199,7 +199,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 c1bb142a09af..6f2bb16131f6 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 @@ -52,7 +52,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; @@ -61,7 +61,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 846694679142..c47cd7f1655b 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 @@ -47,7 +47,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; @@ -56,7 +56,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; @@ -71,7 +71,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; @@ -80,7 +80,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 dcdb25dcf66f..d003ac41d9c9 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 @@ -52,7 +52,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; @@ -61,7 +61,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 8e1eb1ee3e07..127ed0fc357a 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 @@ -45,7 +45,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; @@ -54,7 +54,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 9a1ad3a96c1c..1ab858879662 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 @@ -42,7 +42,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; @@ -51,7 +51,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 611c8759e1f3..3e404a88111a 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 @@ -42,7 +42,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; @@ -51,7 +51,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 2b966a99cc27..5a2ce86f1563 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 @@ -52,7 +52,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; @@ -61,7 +61,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 017a14a66bd4..c3fd3f535c99 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 @@ -114,7 +114,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; @@ -123,7 +123,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; @@ -138,7 +138,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; @@ -147,7 +147,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 322885fb2ae2..c2eb5fdfc72c 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 @@ -210,7 +210,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; @@ -219,7 +219,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; @@ -234,7 +234,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; @@ -243,7 +243,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; @@ -258,7 +258,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; @@ -267,7 +267,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; @@ -282,7 +282,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; @@ -291,7 +291,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; @@ -306,7 +306,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; @@ -315,7 +315,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; @@ -330,7 +330,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; @@ -339,7 +339,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; @@ -354,7 +354,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; @@ -363,7 +363,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; @@ -378,7 +378,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; @@ -387,7 +387,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 556e1774b823..dcf42bf76bcf 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 @@ -51,7 +51,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; @@ -60,7 +60,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; @@ -75,7 +75,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; @@ -84,7 +84,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 b5fbcb8543ad..9497c9330e0f 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 @@ -51,7 +51,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; @@ -60,7 +60,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; @@ -75,7 +75,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; @@ -84,7 +84,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 95892d69a403..813a17df2397 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 @@ -42,7 +42,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; @@ -51,7 +51,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 508867aa7f9f..08f9ee6f5f78 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 @@ -44,7 +44,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; @@ -53,7 +53,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 4ec278fdc8b3..7ecdfd5a2ff4 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 @@ -130,7 +130,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; @@ -139,7 +139,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; @@ -156,7 +156,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; @@ -165,7 +165,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; @@ -180,7 +180,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; @@ -189,7 +189,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; @@ -206,7 +206,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; @@ -215,7 +215,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; @@ -232,7 +232,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; @@ -241,7 +241,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; @@ -258,7 +258,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; @@ -267,7 +267,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; @@ -282,7 +282,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; @@ -291,7 +291,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; @@ -306,7 +306,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; @@ -315,7 +315,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; @@ -330,7 +330,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; @@ -339,7 +339,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; @@ -354,7 +354,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; @@ -363,7 +363,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; @@ -378,7 +378,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; @@ -387,7 +387,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; @@ -402,7 +402,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; @@ -411,7 +411,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; @@ -426,7 +426,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; @@ -435,7 +435,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; @@ -450,7 +450,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; @@ -459,7 +459,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; @@ -474,7 +474,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; @@ -483,7 +483,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; @@ -498,7 +498,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; @@ -507,7 +507,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 1ceca0d6bd2b..36a7d2fbe6d6 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 @@ -60,7 +60,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; @@ -71,7 +71,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 4b7c119ff66c..2420e5040df0 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 @@ -45,7 +45,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; @@ -54,7 +54,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 19c6935aaf07..0e9e6ed6cf96 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 @@ -91,7 +91,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; @@ -100,7 +100,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; @@ -123,7 +123,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; @@ -132,7 +132,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; @@ -155,7 +155,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; @@ -164,7 +164,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; @@ -187,7 +187,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; @@ -196,7 +196,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 ef409f2784eb..e49082b3c17e 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 @@ -57,7 +57,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; @@ -66,7 +66,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; @@ -81,7 +81,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; @@ -90,7 +90,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; @@ -105,7 +105,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; @@ -114,7 +114,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 2ed59729546b..582dae8d586e 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 @@ -51,7 +51,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; @@ -60,7 +60,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; @@ -75,7 +75,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; @@ -84,7 +84,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 ff29cadc48b0..4f80ea548f69 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 @@ -53,7 +53,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; @@ -62,7 +62,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; @@ -77,7 +77,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; @@ -86,7 +86,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; @@ -101,7 +101,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; @@ -110,7 +110,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 9fbfa0745f17..888498bd40c7 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 @@ -49,7 +49,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; @@ -58,7 +58,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 76389d75e43b..daeb4cf8bc32 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 @@ -43,7 +43,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; @@ -52,7 +52,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 1bf4558bc916..ce5ed31fb4fc 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 @@ -46,7 +46,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; @@ -55,7 +55,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 e681959a4e86..1413bcea3380 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 @@ -72,7 +72,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; @@ -81,7 +81,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; @@ -96,7 +96,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; @@ -107,7 +107,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; @@ -116,7 +116,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; @@ -131,7 +131,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 437cdf4273f6..1e0b3171b649 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 @@ -147,7 +147,7 @@ public Object getAdditionalProperty(String key) { * 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; @@ -156,7 +156,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; @@ -171,7 +171,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; @@ -180,7 +180,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; @@ -195,7 +195,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; @@ -204,7 +204,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; @@ -219,7 +219,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; @@ -228,7 +228,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; @@ -243,7 +243,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; @@ -252,7 +252,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; @@ -267,7 +267,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; @@ -276,7 +276,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; @@ -291,7 +291,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; @@ -300,7 +300,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; @@ -323,7 +323,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; @@ -332,7 +332,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; @@ -355,7 +355,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; @@ -364,7 +364,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; @@ -387,7 +387,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; @@ -396,7 +396,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; @@ -419,7 +419,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; @@ -428,7 +428,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; @@ -451,7 +451,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; @@ -460,7 +460,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 ee2c68ff315e..5f53ae658c8b 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 @@ -43,7 +43,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; @@ -52,7 +52,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 0c40349a930a..40e9c0778e22 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 @@ -62,7 +62,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; @@ -71,7 +71,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; @@ -88,7 +88,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; @@ -97,7 +97,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; @@ -114,7 +114,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; @@ -123,7 +123,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; @@ -140,7 +140,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; @@ -149,7 +149,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 829c874d1694..35690b363200 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 @@ -103,7 +103,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; @@ -112,7 +112,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; @@ -127,7 +127,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; @@ -136,7 +136,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; @@ -151,7 +151,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; @@ -160,7 +160,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; @@ -175,7 +175,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; @@ -184,7 +184,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; @@ -199,7 +199,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; @@ -208,7 +208,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; @@ -223,7 +223,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; @@ -232,7 +232,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 e2917e9aec0d..3a9063ae8861 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 @@ -53,7 +53,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; @@ -62,7 +62,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; @@ -77,7 +77,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; @@ -86,7 +86,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; @@ -101,7 +101,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; @@ -110,7 +110,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 6cbb441875d0..66d50f0c6d42 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 @@ -43,7 +43,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; @@ -52,7 +52,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 a4cd3c7c7927..d8ecc7f0a4e6 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 @@ -91,7 +91,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; @@ -100,7 +100,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; @@ -115,7 +115,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; @@ -124,7 +124,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 b9da2c6d91e0..f435638173aa 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 @@ -110,7 +110,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; @@ -119,7 +119,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; @@ -134,7 +134,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; @@ -143,7 +143,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; @@ -158,7 +158,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; @@ -167,7 +167,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; @@ -182,7 +182,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; @@ -192,7 +192,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; @@ -215,7 +215,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; @@ -224,7 +224,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; @@ -247,7 +247,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; @@ -256,7 +256,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 87bb00535f5e..e304cb423d89 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 @@ -57,7 +57,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; @@ -68,7 +68,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; @@ -77,7 +77,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 bb65c5c1e264..dd4e4d51147f 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 @@ -43,7 +43,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; @@ -52,7 +52,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 782de4365060..78a4994e991a 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 @@ -47,7 +47,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; @@ -56,7 +56,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; @@ -71,7 +71,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; @@ -80,7 +80,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 b55e7b75c290..210204020b28 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 @@ -86,7 +86,7 @@ public Object getAdditionalProperty(String key) { * Get someProperty * @return someProperty **/ - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSomeProperty() { return someProperty; @@ -95,7 +95,7 @@ public String getSomeProperty() { /** * Set someProperty */ - @JsonProperty(JSON_PROPERTY_SOME_PROPERTY) + @JsonProperty(value = JSON_PROPERTY_SOME_PROPERTY, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSomeProperty(String someProperty) { this.someProperty = someProperty; diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java index 76c4f6853eba..67986847eb10 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java @@ -80,7 +80,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; @@ -89,7 +89,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; @@ -104,7 +104,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; @@ -113,7 +113,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; @@ -128,7 +128,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; @@ -137,7 +137,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; @@ -152,7 +152,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; @@ -161,7 +161,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; @@ -176,7 +176,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; @@ -185,7 +185,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; @@ -200,7 +200,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; @@ -209,7 +209,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; @@ -224,7 +224,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; @@ -233,7 +233,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; @@ -248,7 +248,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; @@ -257,7 +257,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; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 273e5c4e443e..6203fcc32ea0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -103,14 +103,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; @@ -135,14 +135,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; @@ -164,7 +164,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() { @@ -191,14 +191,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; @@ -215,14 +215,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; @@ -247,14 +247,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; @@ -271,14 +271,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; @@ -303,14 +303,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 3a070bc8287e..9985e57b243c 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 @@ -74,14 +74,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; @@ -98,14 +98,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 3479968fc46f..209f99324ec3 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 @@ -60,14 +60,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; @@ -84,14 +84,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 d6580a5560a4..943ed221e1ef 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 @@ -60,14 +60,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; @@ -84,14 +84,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 9a075aa0931e..bf0e784b132e 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 @@ -66,14 +66,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 739fd802ab9f..5f81b605a8bb 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 @@ -66,14 +66,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 7d5ad1c241a1..f4c589d6d76b 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 @@ -76,14 +76,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; @@ -108,14 +108,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; @@ -140,14 +140,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 e49f3f7b3c48..31a852ad24de 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 @@ -56,14 +56,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 bb9dad61f1e3..1ade230fa858 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 @@ -61,14 +61,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; @@ -85,14 +85,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 67517bb09faf..ee24232d46c8 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 @@ -55,14 +55,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 d66d057dfae2..522f186420f1 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 @@ -80,14 +80,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; @@ -104,14 +104,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; @@ -128,14 +128,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; @@ -152,14 +152,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; @@ -176,14 +176,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; @@ -200,14 +200,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 ec8e8f26951c..7bf01cf6a3ba 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 @@ -67,14 +67,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 697c52fe7175..a6f68dcd6568 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 @@ -60,14 +60,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; @@ -84,14 +84,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 73607f6c8dfd..105517cef068 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 @@ -73,14 +73,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; @@ -105,14 +105,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 c76ff089086f..6db0fb6fde1e 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 @@ -55,14 +55,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 fcdb70adb098..def75a9d7ca0 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 @@ -55,14 +55,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 f47ddeca2218..c64d5b36bf69 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 @@ -60,14 +60,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; @@ -84,14 +84,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 caee9a124c26..55c18d0fa189 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 @@ -55,14 +55,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 1c0023c9901e..781544464e78 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 @@ -57,14 +57,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 6a48f515f223..07d47eacebbe 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 @@ -66,14 +66,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 a9e055ef9263..eac73d2e05bd 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 @@ -83,14 +83,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; @@ -107,14 +107,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; @@ -136,7 +136,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() { @@ -171,14 +171,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 a904c4ff9d06..2e6860ff2a60 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 @@ -132,14 +132,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; @@ -164,14 +164,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 b72371b7bcb7..a0f2359c5ab5 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 @@ -281,14 +281,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; @@ -305,14 +305,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; @@ -329,14 +329,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; @@ -353,14 +353,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; @@ -377,14 +377,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; @@ -406,7 +406,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() { @@ -433,14 +433,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; @@ -457,14 +457,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; @@ -481,14 +481,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 977db1970f75..0664d09c8eee 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 @@ -60,14 +60,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; @@ -84,14 +84,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 ed234f495bd4..77a990b6623f 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 @@ -63,14 +63,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; @@ -95,14 +95,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 815bbd2d8e89..11a0a4edb56d 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 @@ -63,14 +63,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; @@ -95,14 +95,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 23836b3697cf..0133e435d485 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 @@ -55,14 +55,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 b7d03157e72b..1aa861305979 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 @@ -56,14 +56,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 ddc5434c8a3c..82486070a073 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 @@ -137,14 +137,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; @@ -163,14 +163,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; @@ -187,14 +187,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; @@ -213,14 +213,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; @@ -239,14 +239,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; @@ -265,14 +265,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; @@ -289,14 +289,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; @@ -313,14 +313,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; @@ -337,14 +337,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; @@ -361,14 +361,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; @@ -385,14 +385,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; @@ -409,14 +409,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; @@ -433,14 +433,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; @@ -457,14 +457,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; @@ -481,14 +481,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; @@ -505,14 +505,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 197804ac6838..ed44ae7685d7 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 @@ -69,14 +69,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 697eca755a52..9978e53c3db0 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 @@ -65,7 +65,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; @@ -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() { 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 84410e511ae4..ab18f1c46fa4 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 @@ -63,7 +63,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 5ee277a1fb8d..70e451abe681 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 @@ -60,14 +60,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; @@ -84,14 +84,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 97eb9e32cbcf..2690457f47ed 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 @@ -115,14 +115,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; @@ -147,14 +147,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; @@ -179,14 +179,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; @@ -211,14 +211,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 698a0dfd83e0..83c72537a7e5 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 @@ -70,14 +70,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; @@ -94,14 +94,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; @@ -126,14 +126,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 9d9009e0d972..54778b44615e 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 @@ -60,14 +60,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; @@ -84,14 +84,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 010e0d82b304..3c09f251908f 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 @@ -65,14 +65,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; @@ -89,14 +89,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; @@ -113,14 +113,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 d233df8a40e2..3cdf542341f3 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 @@ -55,14 +55,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 1f23bb312676..0fdfe2d9a10e 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 @@ -55,14 +55,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 5d5eb607a782..1f1c20eb6ecf 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 @@ -55,14 +55,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 be626a3417ed..7c24de85136e 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 @@ -80,14 +80,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; @@ -99,7 +99,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; @@ -118,14 +118,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; @@ -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() { 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 383ab3b2c67a..0a56ec9d127e 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 @@ -120,7 +120,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() { @@ -184,7 +184,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() { @@ -216,7 +216,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() { @@ -248,7 +248,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() { @@ -280,7 +280,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() { @@ -324,7 +324,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() { @@ -368,7 +368,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() { @@ -403,14 +403,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; @@ -444,7 +444,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() { @@ -488,7 +488,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() { @@ -523,14 +523,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 305ea00b06e4..8250e1c9a5f9 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 @@ -56,14 +56,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 a688abc8c1c4..eec5723f2c41 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 @@ -74,14 +74,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; @@ -100,14 +100,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; @@ -126,14 +126,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; @@ -160,14 +160,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 9f71d96892e6..1e29f87050c9 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 @@ -118,14 +118,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; @@ -142,14 +142,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; @@ -166,14 +166,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; @@ -190,14 +190,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; @@ -214,14 +214,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; @@ -238,14 +238,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 1ae80f553255..9bc67b488049 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 @@ -66,14 +66,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; @@ -90,14 +90,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; @@ -114,14 +114,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 190903e5da18..8cd92c2da9b5 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 @@ -121,14 +121,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; @@ -145,14 +145,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; @@ -169,14 +169,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; @@ -201,14 +201,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; @@ -233,14 +233,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; @@ -257,14 +257,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 0fdb7d9846e9..9d3037ee7efc 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 @@ -55,14 +55,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 6dc9fa80698b..ce4bdcbe08bd 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 @@ -63,7 +63,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; @@ -82,14 +82,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 42f6b6e3ca27..baee4f2ffd2c 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 @@ -60,14 +60,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; @@ -84,14 +84,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 33cbf1468c34..12f884999dcc 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 @@ -55,14 +55,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 2bd8ed8cee70..5727bb30d7a6 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 @@ -60,14 +60,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; @@ -84,14 +84,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 4c68c65e101e..725f927a6883 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 @@ -60,14 +60,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; @@ -84,14 +84,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 1f3d1b70d43e..c001523c7954 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 @@ -60,14 +60,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; @@ -84,14 +84,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 5009106af447..1f040a0612f7 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 @@ -59,14 +59,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 a42e130202e5..79e0da32b0fd 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 @@ -55,14 +55,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 df3c1d62a1d5..95f1f98f673d 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 @@ -111,14 +111,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; @@ -135,14 +135,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; @@ -159,14 +159,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; @@ -183,14 +183,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; @@ -207,14 +207,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; @@ -231,14 +231,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; @@ -255,14 +255,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; @@ -279,14 +279,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; @@ -303,14 +303,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; @@ -332,7 +332,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() { @@ -364,7 +364,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() { @@ -396,7 +396,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 6915209da7ec..8a9d1d911ee0 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 @@ -65,14 +65,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; @@ -89,14 +89,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; @@ -113,14 +113,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 f243b1404732..6418fdd087dd 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 @@ -101,14 +101,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; @@ -125,14 +125,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 2cf25a2f9998..b468b8e5d4aa 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 @@ -60,14 +60,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; @@ -84,14 +84,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 d3006b6d90e8..4ca9e881d6df 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 @@ -65,14 +65,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; @@ -89,14 +89,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; @@ -113,14 +113,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 5f26e5ea72bc..7d371a731fef 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 @@ -118,14 +118,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; @@ -142,14 +142,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; @@ -166,14 +166,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; @@ -190,14 +190,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; @@ -214,14 +214,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; @@ -238,14 +238,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 0583aea38c8d..d1d4085f29b0 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 @@ -121,14 +121,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; @@ -145,14 +145,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; @@ -169,14 +169,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; @@ -201,14 +201,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; @@ -233,14 +233,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; @@ -259,14 +259,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 c1167878632c..0acdf6fa6aa4 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 @@ -60,14 +60,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; @@ -84,14 +84,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 ac81688d3e52..c5f2f711d66c 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 @@ -90,14 +90,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; @@ -114,14 +114,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; @@ -138,14 +138,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; @@ -162,14 +162,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; @@ -186,14 +186,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; @@ -210,14 +210,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; @@ -234,14 +234,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; @@ -258,14 +258,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 4d5873ff4bea..a369b87ae28c 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 @@ -105,14 +105,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; @@ -137,14 +137,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; @@ -166,7 +166,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() { @@ -193,14 +193,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; @@ -217,14 +217,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; @@ -249,14 +249,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; @@ -273,14 +273,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; @@ -305,14 +305,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 8c4120f43c3b..c7ade34dcf8b 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 @@ -76,14 +76,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; @@ -100,14 +100,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 7208141b66e3..89ebbba9f08a 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 @@ -62,14 +62,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; @@ -86,14 +86,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 1fc9194c0a23..8dc311927f02 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 @@ -62,14 +62,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; @@ -86,14 +86,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 cf74edc4da57..b6ab26fd392d 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 @@ -68,14 +68,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 e055897bc83a..7b103825b279 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 @@ -68,14 +68,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 c48a63105c57..31f126664e3d 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 @@ -78,14 +78,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; @@ -110,14 +110,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; @@ -142,14 +142,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 655edeb7bd30..61a49897f958 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 @@ -58,14 +58,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 0f0c5016c79c..bf3538f8feea 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 @@ -63,14 +63,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; @@ -87,14 +87,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 7a5337831d04..311ee80f802d 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 @@ -57,14 +57,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 51296c35d41c..293fef0613d9 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 @@ -82,14 +82,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; @@ -106,14 +106,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; @@ -130,14 +130,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; @@ -154,14 +154,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; @@ -178,14 +178,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; @@ -202,14 +202,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 f5bd7cfc6183..ba8e0027d074 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 @@ -69,14 +69,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 3fe366d45318..8b5f1175a2e1 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 @@ -62,14 +62,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; @@ -86,14 +86,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 fbf01365599b..5da7dc883729 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 @@ -75,14 +75,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; @@ -107,14 +107,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 3fc8f53290e3..266138705a12 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 @@ -57,14 +57,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 858c2faca44b..d1f3c580323a 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 @@ -57,14 +57,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 8597a09b728f..0413d1ff74ae 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 @@ -62,14 +62,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; @@ -86,14 +86,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 c8979d5657a2..8dddd7f1e39d 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 @@ -57,14 +57,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 34d6a368aba7..1a7f3ad403ba 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 @@ -59,14 +59,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 57738a491c5d..002a0ebdffac 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 @@ -68,14 +68,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 736e513b91e4..2de6deb0713c 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 @@ -85,14 +85,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; @@ -109,14 +109,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; @@ -138,7 +138,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() { @@ -173,14 +173,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 042102f55dba..ea3f5cb31036 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 @@ -134,14 +134,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; @@ -166,14 +166,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 8bb984734458..818c7281d647 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 @@ -283,14 +283,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; @@ -307,14 +307,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; @@ -331,14 +331,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; @@ -355,14 +355,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; @@ -379,14 +379,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; @@ -408,7 +408,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() { @@ -435,14 +435,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; @@ -459,14 +459,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; @@ -483,14 +483,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 e32d754481c1..f76722a19c2b 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 @@ -62,14 +62,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; @@ -86,14 +86,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 b07c8b48e04f..5c34272a5a81 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 @@ -65,14 +65,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; @@ -97,14 +97,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 48665cd8949b..805c0babbd7d 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 @@ -65,14 +65,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; @@ -97,14 +97,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 64331c187b7c..54ec257f8ed1 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 @@ -57,14 +57,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 96cde0a91870..90c9302b8d76 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 @@ -58,14 +58,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 03ff756440ba..5c98c183607d 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 @@ -139,14 +139,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; @@ -165,14 +165,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; @@ -189,14 +189,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; @@ -215,14 +215,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; @@ -241,14 +241,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; @@ -267,14 +267,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; @@ -291,14 +291,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; @@ -315,14 +315,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; @@ -339,14 +339,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; @@ -363,14 +363,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; @@ -387,14 +387,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; @@ -411,14 +411,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; @@ -435,14 +435,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; @@ -459,14 +459,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; @@ -483,14 +483,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; @@ -507,14 +507,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 1bba7dff3bca..a6e3ac4e04ac 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 @@ -71,14 +71,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 a78aa3516d09..3eafe6e94e82 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 @@ -67,7 +67,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; @@ -81,7 +81,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 bb041ee2a52a..681ab15f1737 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 @@ -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/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 65fd85df9f92..5a5707264dc4 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 @@ -62,14 +62,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; @@ -86,14 +86,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 d175d24f2636..b221c7b6ad0a 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 @@ -117,14 +117,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; @@ -149,14 +149,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; @@ -181,14 +181,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; @@ -213,14 +213,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 73cb44a34687..8e4ef0780d0b 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 @@ -72,14 +72,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; @@ -96,14 +96,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; @@ -128,14 +128,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 e8340c41380d..111afd50b5f2 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 @@ -62,14 +62,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; @@ -86,14 +86,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 fa5d0110f22b..81f78519fc8c 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 @@ -67,14 +67,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; @@ -91,14 +91,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; @@ -115,14 +115,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 b9265f67f0a6..e89344ba925d 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 @@ -57,14 +57,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 032474560ba9..457d3abaa9c4 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 @@ -57,14 +57,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 1f6a48c38987..07916edda29a 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 @@ -57,14 +57,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 7c94b56f879e..440415993e36 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 @@ -82,14 +82,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; @@ -101,7 +101,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; @@ -120,14 +120,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; @@ -139,7 +139,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 cdad5996870e..7b99a712d2a9 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 @@ -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() { @@ -154,7 +154,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() { @@ -186,7 +186,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() { @@ -250,7 +250,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() { @@ -282,7 +282,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() { @@ -326,7 +326,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() { @@ -370,7 +370,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() { @@ -405,14 +405,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; @@ -446,7 +446,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() { @@ -490,7 +490,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() { @@ -525,14 +525,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 53b210b48040..e70dff802fd2 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 @@ -58,14 +58,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 c20a4eb052b2..d6e304269e71 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 @@ -76,14 +76,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; @@ -102,14 +102,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; @@ -128,14 +128,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; @@ -162,14 +162,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 956861c2cbe9..e065abae9253 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 @@ -120,14 +120,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; @@ -144,14 +144,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; @@ -168,14 +168,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; @@ -192,14 +192,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; @@ -216,14 +216,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; @@ -240,14 +240,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 ccf90445ee9a..b2ece85058bf 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 @@ -68,14 +68,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; @@ -92,14 +92,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; @@ -116,14 +116,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 92d1a7d13066..229b2c99fcff 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 @@ -123,14 +123,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; @@ -147,14 +147,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; @@ -171,14 +171,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; @@ -203,14 +203,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; @@ -235,14 +235,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; @@ -259,14 +259,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 d9cc4c17c472..820af526bc8d 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 @@ -57,14 +57,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 4fe79b07f203..1942e7647505 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 @@ -65,7 +65,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; @@ -84,14 +84,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 7714be270326..8691132bc5ea 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 @@ -62,14 +62,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; @@ -86,14 +86,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 19aea7054731..a73764fbb884 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 @@ -57,14 +57,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 c4cdfa94f0a5..e511e9c9cca3 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 @@ -62,14 +62,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; @@ -86,14 +86,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 fdfcfb007823..8e6302729b22 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 @@ -62,14 +62,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; @@ -86,14 +86,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 50ad5fc31aff..0b0e4a33ff08 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 @@ -62,14 +62,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; @@ -86,14 +86,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 3e83584761df..d2c8814bc1b0 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 @@ -61,14 +61,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 e80c2b8d860c..9fd045af9812 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 @@ -57,14 +57,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 7fa85b46b2e6..dd99e8754066 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 @@ -113,14 +113,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; @@ -137,14 +137,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; @@ -161,14 +161,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; @@ -185,14 +185,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; @@ -209,14 +209,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; @@ -233,14 +233,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; @@ -257,14 +257,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; @@ -281,14 +281,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; @@ -305,14 +305,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; @@ -334,7 +334,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() { @@ -366,7 +366,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() { @@ -398,7 +398,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 5300ffcaacf2..34ae9fc7be98 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 @@ -67,14 +67,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; @@ -91,14 +91,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; @@ -115,14 +115,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 d9d51fcde2c0..3b911f1cfa1c 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 @@ -103,14 +103,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; @@ -127,14 +127,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 7afa7bb48b54..6055b22892e1 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 @@ -57,7 +57,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() { @@ -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/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 855f2d9d6234..6121428a7970 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 @@ -58,7 +58,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() { @@ -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/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 687758754884..d9374b576669 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 @@ -57,7 +57,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() { @@ -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/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 56819b671cbd..3d75a07b7a4f 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 @@ -116,7 +116,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() { @@ -124,7 +124,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; @@ -151,7 +151,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() { @@ -159,7 +159,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -219,7 +219,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() { @@ -227,7 +227,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; @@ -254,7 +254,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -262,7 +262,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; @@ -289,7 +289,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() { @@ -297,7 +297,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; @@ -324,7 +324,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -332,7 +332,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; @@ -359,7 +359,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -367,7 +367,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; @@ -385,7 +385,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() { @@ -393,7 +393,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; @@ -411,7 +411,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() { @@ -419,7 +419,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; @@ -437,7 +437,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() { @@ -445,7 +445,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 e84e6317c4fe..b1eb603aa4e9 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 @@ -57,7 +57,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() { @@ -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/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index b72954eac674..fe54f311f4bc 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 @@ -58,7 +58,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() { @@ -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/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 98826a1db232..d94721bcf011 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 @@ -57,7 +57,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() { @@ -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/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index ddddf2281849..1728f15e4735 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 @@ -57,7 +57,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() { @@ -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/Animal.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java index c9a116326a0d..2e95c940a226 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 @@ -74,7 +74,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() { @@ -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; @@ -100,7 +100,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() { @@ -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/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 779ff1f19d3f..8d2f5b6162c4 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 @@ -67,7 +67,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() { @@ -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/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 6e0d017b71c1..495199831c81 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 @@ -67,7 +67,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() { @@ -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/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 68cf8438c6e1..aa597c7a1fe7 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 @@ -76,7 +76,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() { @@ -84,7 +84,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; @@ -111,7 +111,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() { @@ -119,7 +119,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<@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() { @@ -154,7 +154,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 98a5cca7f7fa..938cafae62ae 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 @@ -104,7 +104,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() { @@ -112,7 +112,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 9dfda2d31807..8152205c52df 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 @@ -79,7 +79,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() { @@ -87,7 +87,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; @@ -105,7 +105,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() { @@ -113,7 +113,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; @@ -131,7 +131,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() { @@ -139,7 +139,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; @@ -157,7 +157,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() { @@ -165,7 +165,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; @@ -183,7 +183,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() { @@ -191,7 +191,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 d3bd1afe5dc7..d6ec0d151126 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 @@ -68,7 +68,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() { @@ -76,7 +76,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 2da83a34e057..2ba68545ce44 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 @@ -59,7 +59,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() { @@ -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; @@ -86,7 +86,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() { @@ -94,7 +94,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 1dda713f1b77..670aec2c85f7 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 c8d8fb1ec767..b5d59b9146c7 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 4adc301bdd5f..5dd9d7be240a 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 @@ -65,7 +65,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() { @@ -73,7 +73,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 894ed7eebe05..f15fa1089ed1 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 @@ -132,7 +132,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() { @@ -140,7 +140,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; @@ -166,7 +166,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() { @@ -174,7 +174,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 7c03dee5d93c..40080b9878db 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 @@ -220,7 +220,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() { @@ -228,7 +228,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; @@ -247,7 +247,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() { @@ -255,7 +255,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; @@ -273,7 +273,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() { @@ -281,7 +281,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; @@ -299,7 +299,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() { @@ -307,7 +307,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; @@ -326,7 +326,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() { @@ -334,7 +334,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 cf168ea3e283..1f4296e0b4d1 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 @@ -64,7 +64,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() { @@ -72,7 +72,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) { @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() { @@ -107,7 +107,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 acfba72240e4..828f7d185d65 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 @@ -127,7 +127,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() { @@ -135,7 +135,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; @@ -155,7 +155,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() { @@ -163,7 +163,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; @@ -181,7 +181,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() { @@ -189,7 +189,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) { @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() { @@ -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; @@ -239,7 +239,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() { @@ -247,7 +247,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; @@ -267,7 +267,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() { @@ -275,7 +275,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 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() { @@ -301,7 +301,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; @@ -320,7 +320,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() { @@ -328,7 +328,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; @@ -347,7 +347,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() { @@ -355,7 +355,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; @@ -375,7 +375,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() { @@ -383,7 +383,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; @@ -402,7 +402,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() { @@ -410,7 +410,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; @@ -429,7 +429,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() { @@ -437,7 +437,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; @@ -456,7 +456,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() { @@ -464,7 +464,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; @@ -483,7 +483,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() { @@ -491,7 +491,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 5fda4c02961f..acb213b0cf78 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 @@ -52,8 +52,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; @@ -66,7 +66,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() { @@ -81,7 +81,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 4da05d15f820..c928a8ab241a 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 @@ -115,7 +115,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() { @@ -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; @@ -149,7 +149,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() { @@ -157,7 +157,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; @@ -183,7 +183,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() { @@ -191,7 +191,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; @@ -217,7 +217,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() { @@ -225,7 +225,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 178f69dcd0ee..1cce93e243a4 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 @@ -70,7 +70,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() { @@ -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 @Valid - @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 @Valid - @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/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 9211e3da1043..b78cee6f4b83 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 @@ -60,7 +60,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() { @@ -68,7 +68,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; @@ -86,7 +86,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() { @@ -94,7 +94,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 d9f351c6b200..af2a09bd4e1d 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 @@ -65,7 +65,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() { @@ -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 - @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 - @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/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 5cb6b3a169cd..8cb73b98202a 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 @@ -55,7 +55,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() { @@ -63,7 +63,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 950f2d9d55f8..52eb5b11ad2b 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 @@ -55,7 +55,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() { @@ -63,7 +63,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 b3cc4261237d..1fdee0659518 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 @@ -55,7 +55,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() { @@ -63,7 +63,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 243fe5383834..4f7d1e4ccaa9 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 @@ -61,8 +61,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; @@ -82,7 +82,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() { @@ -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(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -102,7 +102,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() { @@ -123,7 +123,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() { @@ -131,7 +131,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; @@ -143,7 +143,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 a33a4768976d..4e46a901b706 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 @@ -56,7 +56,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() { @@ -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/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 1fa5129bf502..b65e3d058ae1 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 @@ -117,7 +117,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() { @@ -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 - @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 - @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; @@ -196,7 +196,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() { @@ -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 - @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 - @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonProperty(value = JSON_PROPERTY_COMPLETE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean isComplete() { @@ -256,7 +256,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 8f3ce472db70..3780bc855f9d 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 @@ -66,7 +66,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() { @@ -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; @@ -92,7 +92,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() { @@ -100,7 +100,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; @@ -118,7 +118,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() { @@ -126,7 +126,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 06f7f8d89eb5..21d894266c2e 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 @@ -124,7 +124,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() { @@ -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; @@ -151,7 +151,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() { @@ -159,7 +159,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; @@ -178,7 +178,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() { @@ -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(@javax.annotation.Nonnull String name) { this.name = name; @@ -213,7 +213,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() { @@ -222,7 +222,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; @@ -249,7 +249,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() { @@ -257,7 +257,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; @@ -275,7 +275,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() { @@ -283,7 +283,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 2d61698c4423..9ec683362b40 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 @@ -51,7 +51,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; @@ -63,7 +63,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() { @@ -84,7 +84,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() { @@ -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/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 a5b8dbcb50e8..24fa9840cac8 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 @@ -55,7 +55,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() { @@ -63,7 +63,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 a70b698b1276..f325cdbc7c75 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 @@ -59,7 +59,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() { @@ -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 - @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/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 65eb64532339..2ed0abac63b0 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 @@ -79,7 +79,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() { @@ -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; @@ -107,7 +107,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() { @@ -115,7 +115,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; @@ -134,7 +134,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() { @@ -142,7 +142,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; @@ -161,7 +161,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() { @@ -169,7 +169,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; @@ -196,7 +196,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() { @@ -204,7 +204,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 de657b960f28..faeec9617d36 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 @@ -84,7 +84,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() { @@ -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; @@ -112,7 +112,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() { @@ -120,7 +120,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; @@ -139,7 +139,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() { @@ -147,7 +147,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; @@ -166,7 +166,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() { @@ -174,7 +174,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; @@ -193,7 +193,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() { @@ -201,7 +201,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; @@ -228,7 +228,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() { @@ -236,7 +236,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 dd08acc163ca..69deb67371f9 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 @@ -89,7 +89,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() { @@ -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 - @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 - @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 - @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 - @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 - @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 - @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 - @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/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 be49e02ce75a..8ffdaefa00d5 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 @@ -198,7 +198,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() { @@ -206,7 +206,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; @@ -225,7 +225,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() { @@ -233,7 +233,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; @@ -251,7 +251,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() { @@ -259,7 +259,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; @@ -277,7 +277,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() { @@ -285,7 +285,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; @@ -311,7 +311,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() { @@ -319,7 +319,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; @@ -337,7 +337,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() { @@ -345,7 +345,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; @@ -364,7 +364,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() { @@ -372,7 +372,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; @@ -390,7 +390,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() { @@ -398,7 +398,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -450,7 +450,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() { @@ -458,7 +458,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; @@ -484,7 +484,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() { @@ -492,7 +492,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; @@ -510,7 +510,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() { @@ -518,7 +518,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; @@ -537,7 +537,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() { @@ -545,7 +545,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; @@ -563,7 +563,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() { @@ -571,7 +571,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; @@ -589,7 +589,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() { @@ -597,7 +597,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; @@ -623,7 +623,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() { @@ -631,7 +631,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; @@ -657,7 +657,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() { @@ -665,7 +665,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; @@ -683,7 +683,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() { @@ -691,7 +691,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; @@ -710,7 +710,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() { @@ -718,7 +718,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; @@ -736,7 +736,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() { @@ -744,7 +744,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; @@ -762,7 +762,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() { @@ -770,7 +770,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; @@ -796,7 +796,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() { @@ -804,7 +804,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; @@ -830,7 +830,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() { @@ -838,7 +838,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; @@ -856,7 +856,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() { @@ -864,7 +864,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; @@ -883,7 +883,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() { @@ -891,7 +891,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; @@ -909,7 +909,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() { @@ -917,7 +917,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; @@ -935,7 +935,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() { @@ -943,7 +943,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; @@ -969,7 +969,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() { @@ -977,7 +977,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; @@ -1003,7 +1003,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() { @@ -1011,7 +1011,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 9d6609593e36..388eb30e0365 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 @@ -81,7 +81,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() { @@ -108,7 +108,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() { @@ -116,7 +116,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; @@ -139,7 +139,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() { @@ -166,7 +166,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() { @@ -174,7 +174,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; @@ -191,7 +191,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() { @@ -199,7 +199,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 4a3c0df9cc2e..35611aad2467 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 @@ -67,7 +67,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() { @@ -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(@jakarta.annotation.Nullable Map mapProperty) { this.mapProperty = mapProperty; @@ -101,7 +101,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -109,7 +109,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 987d45cdef9b..b70795398035 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 @@ -58,7 +58,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() { @@ -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(@jakarta.annotation.Nullable String username) { this.username = username; @@ -84,7 +84,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() { @@ -92,7 +92,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 93e39160fc62..35fde59be1a8 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 @@ -70,7 +70,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() { @@ -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(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -96,7 +96,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() { @@ -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(@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 ed15d178056e..d8c94a3ac5d7 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 @@ -64,7 +64,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() { @@ -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(@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 f78b23397d02..b8bb29d1f8e0 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 @@ -64,7 +64,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() { @@ -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(@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 c216662a78c8..155e3aa0128f 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 @@ -74,7 +74,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() { @@ -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; @@ -108,7 +108,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() { @@ -116,7 +116,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; @@ -142,7 +142,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() { @@ -150,7 +150,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 590e1efc8a9a..cf9427605b79 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 @@ -77,7 +77,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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/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 82b0f511d431..435d527b0c31 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 @@ -63,7 +63,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() { @@ -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(@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 9c6887414dc6..95dcc59fae1e 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 @@ -57,7 +57,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() { @@ -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 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() { @@ -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(@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 66d30b4a691c..58a5fcf06500 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 @@ -64,7 +64,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() { @@ -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(@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 7164e1e739bc..875de73f8105 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 @@ -53,7 +53,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() { @@ -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(@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 b99a99f6c263..fa4ba6916e88 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 @@ -52,7 +52,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() { @@ -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/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 0c960ab9e620..f5cab33258df 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 @@ -54,7 +54,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() { @@ -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(@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 223bb9b2c1e3..8540c0be08cf 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 @@ -63,7 +63,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() { @@ -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/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 9d3ac59d8838..df5dd9e99132 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 @@ -130,7 +130,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() { @@ -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 @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() { @@ -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/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 c7132426bab3..fb4fee649d67 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 @@ -240,7 +240,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() { @@ -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(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -266,7 +266,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() { @@ -274,7 +274,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; @@ -292,7 +292,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() { @@ -300,7 +300,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; @@ -318,7 +318,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() { @@ -326,7 +326,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; @@ -350,7 +350,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() { @@ -378,7 +378,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() { @@ -386,7 +386,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; @@ -404,7 +404,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() { @@ -412,7 +412,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; @@ -430,7 +430,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() { @@ -438,7 +438,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 2df80fd0505c..ef0cf6beaa69 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 @@ -61,7 +61,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal someId) { this.someId = someId; @@ -95,7 +95,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() { @@ -103,7 +103,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 69b687cf7d04..3bfc296c43c6 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 @@ -61,7 +61,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() { @@ -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(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -95,7 +95,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() { @@ -103,7 +103,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 a6d7ce8f061c..8ac3e28621d3 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 @@ -52,7 +52,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() { @@ -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(@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 65bc312d25ef..568c2399628f 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 @@ -54,7 +54,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() { @@ -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(@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 866f92c5bfef..809d94ed9085 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 @@ -135,7 +135,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() { @@ -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(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -163,7 +163,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() { @@ -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(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -189,7 +189,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() { @@ -197,7 +197,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; @@ -217,7 +217,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() { @@ -225,7 +225,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; @@ -245,7 +245,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() { @@ -253,7 +253,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; @@ -273,7 +273,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() { @@ -281,7 +281,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; @@ -299,7 +299,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() { @@ -307,7 +307,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; @@ -325,7 +325,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() { @@ -333,7 +333,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; @@ -351,7 +351,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() { @@ -359,7 +359,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; @@ -377,7 +377,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() { @@ -385,7 +385,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; @@ -403,7 +403,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() { @@ -411,7 +411,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; @@ -429,7 +429,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() { @@ -437,7 +437,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; @@ -455,7 +455,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() { @@ -463,7 +463,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; @@ -481,7 +481,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() { @@ -489,7 +489,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; @@ -507,7 +507,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() { @@ -515,7 +515,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; @@ -533,7 +533,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() { @@ -541,7 +541,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 a711b2db349f..4032a368d38d 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 @@ -64,7 +64,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() { @@ -79,7 +79,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 d973f1e28e82..a1922245f935 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 @@ -63,7 +63,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/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 0e00948fe9e4..755b0e57e974 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 @@ -112,7 +112,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() { @@ -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(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -146,7 +146,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() { @@ -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(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -180,7 +180,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() { @@ -188,7 +188,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; @@ -214,7 +214,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() { @@ -222,7 +222,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 2b7468968fec..d8ac10263789 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 @@ -67,7 +67,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() { @@ -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(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -93,7 +93,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -127,7 +127,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() { @@ -135,7 +135,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 99c6461e8baf..5350c4dea469 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 @@ -59,7 +59,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() { @@ -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(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -85,7 +85,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() { @@ -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(@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 0dc565ea8550..2e42ca33ab0a 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 @@ -63,7 +63,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() { @@ -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 @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(@jakarta.annotation.Nullable String type) { this.type = type; @@ -115,7 +115,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() { @@ -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/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 033af31fba0a..ac2f1b7299f6 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 @@ -54,7 +54,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() { @@ -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(@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 7e8ea3af4262..a3b6110a3cfe 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 @@ -53,7 +53,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() { @@ -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/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 022c1740ea42..1c7cd7829fc6 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 @@ -54,7 +54,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() { @@ -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(@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 33badc537065..9d96f896507e 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 @@ -80,7 +80,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() { @@ -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 @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() { @@ -121,7 +121,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() { @@ -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 @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 9d88be7f65c5..869717bf376a 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 @@ -129,7 +129,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() { @@ -163,7 +163,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() { @@ -197,7 +197,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() { @@ -231,7 +231,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() { @@ -265,7 +265,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() { @@ -299,7 +299,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() { @@ -345,7 +345,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() { @@ -391,7 +391,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() { @@ -427,7 +427,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() { @@ -435,7 +435,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; @@ -471,7 +471,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() { @@ -517,7 +517,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() { @@ -553,7 +553,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() { @@ -561,7 +561,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 cc97d20867eb..fb49cf6e269d 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 @@ -53,7 +53,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() { @@ -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(@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 8a501950551a..429af66115cf 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 @@ -72,7 +72,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() { @@ -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(@jakarta.annotation.Nullable String uuid) { this.uuid = uuid; @@ -100,7 +100,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() { @@ -108,7 +108,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; @@ -128,7 +128,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() { @@ -136,7 +136,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; @@ -164,7 +164,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() { @@ -172,7 +172,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 7639563acc6a..27041f317777 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 @@ -115,7 +115,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() { @@ -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 @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(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -167,7 +167,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() { @@ -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; @@ -193,7 +193,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -219,7 +219,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() { @@ -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(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -245,7 +245,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() { @@ -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(@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 070329dfb1c0..1d17721a2f76 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 @@ -63,7 +63,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -89,7 +89,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() { @@ -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(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -115,7 +115,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() { @@ -123,7 +123,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 c1fd0678f898..b7859c56a36f 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 @@ -53,7 +53,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() { @@ -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(@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 2744174881b1..7bfadd2a4a1f 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 @@ -106,7 +106,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() { @@ -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(@jakarta.annotation.Nullable TypeEnum type) { this.type = type; @@ -138,7 +138,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/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 6bd43f4e1163..82d638e79132 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 @@ -122,7 +122,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() { @@ -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; @@ -148,7 +148,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() { @@ -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(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -174,7 +174,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -208,7 +208,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() { @@ -217,7 +217,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; @@ -243,7 +243,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() { @@ -251,7 +251,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; @@ -269,7 +269,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() { @@ -277,7 +277,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 5dbd7a4a442a..ee86a4e3de0a 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 @@ -61,7 +61,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() { @@ -82,7 +82,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() { @@ -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/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 867287f12465..65fbc9c1a87d 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 @@ -53,7 +53,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() { @@ -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/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 7bac797ac282..4db0feda7581 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 @@ -57,7 +57,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() { @@ -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 @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(@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 15b805f10cd2..eaacaa06b132 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 b9d82f4e9520..375f75b3c466 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 @@ -87,7 +87,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() { @@ -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 @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(@jakarta.annotation.Nullable String username) { this.username = username; @@ -139,7 +139,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() { @@ -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 @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(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -191,7 +191,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() { @@ -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 @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(@jakarta.annotation.Nullable String password) { this.password = password; @@ -243,7 +243,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() { @@ -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 @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(@jakarta.annotation.Nullable Integer userStatus) { this.userStatus = userStatus; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index a90c962979df..649ac5b808f4 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -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(@jakarta.annotation.Nullable Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index ed656c051154..a4c5dc440244 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@jakarta.annotation.Nullable SingleRefType singleRefType) { this.singleRefType = singleRefType; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Animal.java index 5d953f427297..a6079a052a2f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Animal.java @@ -68,7 +68,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() { @@ -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(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -93,7 +93,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() { @@ -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(@jakarta.annotation.Nullable String color) { this.color = color; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index a151adc7cecc..3f68c19abe62 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -62,7 +62,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 4fc87ba03b53..83a78a644596 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -62,7 +62,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() { @@ -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(@jakarta.annotation.Nullable List arrayNumber) { this.arrayNumber = arrayNumber; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayTest.java index 9b59d439f180..bdd1cbc6aa78 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -72,7 +72,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() { @@ -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(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -105,7 +105,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -138,7 +138,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Capitalization.java index e25fddbdc25c..5fffe092927b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Capitalization.java @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -100,7 +100,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() { @@ -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(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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-static/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Cat.java index d90e7608a7fd..623afc5cd55b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Cat.java @@ -61,7 +61,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() { @@ -69,7 +69,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-static/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Category.java index a40eb2dde2e5..b42bb6a12453 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Category.java @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ChildWithNullable.java index a1ab3b1e6782..ed50d7e7f7d3 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -62,7 +62,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() { @@ -70,7 +70,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-static/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ClassModel.java index 1bfbadd89a53..27ecd55725e2 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ClassModel.java @@ -50,7 +50,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() { @@ -58,7 +58,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-static/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Client.java index 34cee327d689..c04a3457e5c5 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Client.java @@ -50,7 +50,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() { @@ -58,7 +58,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-static/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/DeprecatedObject.java index efd8cae5654e..8d483ec3e8a9 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -52,7 +52,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() { @@ -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(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Dog.java index c7826d226a5a..1d04776ca4d9 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Dog.java @@ -61,7 +61,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() { @@ -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(@jakarta.annotation.Nullable String breed) { this.breed = breed; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumArrays.java index 463d95df3c0c..2006c0857f9a 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -128,7 +128,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() { @@ -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(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -161,7 +161,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() { @@ -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(@jakarta.annotation.Nullable List arrayEnum) { this.arrayEnum = arrayEnum; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumTest.java index 988251aa876b..03597917fa3f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/EnumTest.java @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -288,7 +288,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() { @@ -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(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,7 +344,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() { @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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-static/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 239661740b10..29c8e25c0082 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -92,7 +92,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() { @@ -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(@jakarta.annotation.Nullable Map someMap) { this.someMap = someMap; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 5668a7aea47c..40c3c6e52ff4 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -59,7 +59,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() { @@ -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(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -92,7 +92,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() { @@ -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(@jakarta.annotation.Nullable List files) { this.files = files; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Foo.java index 827cbd6bdfe8..6bbeb3b5ebdb 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Foo.java @@ -50,7 +50,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() { @@ -58,7 +58,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-static/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 14364cf9373e..a7b34141a2ed 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -52,7 +52,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() { @@ -60,7 +60,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-static/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FormatTest.java index 106d38f692c0..9b861c8a1a4b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/FormatTest.java @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -160,7 +160,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() { @@ -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(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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; @@ -266,7 +266,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() { @@ -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(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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-static/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 98cd4322dfe0..2a4c04441ffd 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -62,7 +62,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() { @@ -76,7 +76,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-static/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/HealthCheckResult.java index 8d9de7e74751..9c0ac6478fe3 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -60,7 +60,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/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/MapTest.java index 8610793925ee..fbb0c2a250aa 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/MapTest.java @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -143,7 +143,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() { @@ -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(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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-static/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 3b3b53bd6f44..633c1a3f7ec8 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -90,7 +90,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -123,7 +123,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() { @@ -131,7 +131,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-static/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Model200Response.java index d0f8853555e8..4259b8d2d6f2 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Model200Response.java @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@jakarta.annotation.Nullable String propertyClass) { this.propertyClass = propertyClass; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelApiResponse.java index bf4359eeee13..093fca7f6804 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String type) { this.type = type; @@ -111,7 +111,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() { @@ -119,7 +119,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-static/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelFile.java index f7f930b5f811..11ec90d12c8b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelFile.java @@ -51,7 +51,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() { @@ -59,7 +59,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-static/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelList.java index 70d61225642c..6b2b536f0342 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelList.java @@ -51,7 +51,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() { @@ -59,7 +59,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-static/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelReturn.java index b44e351a32f3..97d20efa034d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -51,7 +51,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() { @@ -59,7 +59,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-static/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Name.java index 1ba9f4b9efbc..572c8c455ffd 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Name.java @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -96,7 +96,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() { @@ -116,7 +116,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() { @@ -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(@jakarta.annotation.Nullable String property) { this.property = property; @@ -135,7 +135,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-static/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/NullableClass.java index e7b2b966bda6..0e1b52a8814b 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/NullableClass.java @@ -127,7 +127,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() { @@ -160,7 +160,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() { @@ -193,7 +193,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() { @@ -226,7 +226,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() { @@ -259,7 +259,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() { @@ -292,7 +292,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() { @@ -337,7 +337,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() { @@ -382,7 +382,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() { @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -460,7 +460,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() { @@ -505,7 +505,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 */ @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() { @@ -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(@jakarta.annotation.Nullable Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/NumberOnly.java index ecd1681390eb..e842bfd7f754 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -51,7 +51,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() { @@ -59,7 +59,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-static/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 4a49fa52b381..4c78d29d6c6e 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -97,7 +97,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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-static/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Order.java index 87736bbf7c43..581de823139f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Order.java @@ -113,7 +113,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() { @@ -121,7 +121,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 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() { @@ -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(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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-static/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/OuterComposite.java index 6c8f9c1cf227..246cc9e33299 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -111,7 +111,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() { @@ -119,7 +119,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-static/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 9e882650ff8d..ee662372ad09 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -51,7 +51,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() { @@ -59,7 +59,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-static/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ParentWithNullable.java index b77f962e34ce..c7397c9497b4 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,7 +135,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/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Pet.java index 972cf1acaa13..a20cf1b0f147 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Pet.java @@ -120,7 +120,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,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() { @@ -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(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -170,7 +170,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -203,7 +203,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() { @@ -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(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -237,7 +237,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() { @@ -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(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -262,7 +262,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() { @@ -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(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 8d99f52aca93..49cbb8b0e0ce 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -59,7 +59,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() { @@ -79,7 +79,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() { @@ -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(@jakarta.annotation.Nullable String baz) { this.baz = baz; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/SpecialModelName.java index 469b99502570..0ab26e1be2bc 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -51,7 +51,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() { @@ -59,7 +59,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-static/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Tag.java index 837a1aa18ff2..c72669d22575 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Tag.java @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@jakarta.annotation.Nullable String name) { this.name = name; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 296b99cb24f6..c7e901faf9ec 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -55,7 +55,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() { @@ -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-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java index 0d670d5492a6..6005ea81bee5 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -110,7 +110,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() { @@ -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(@jakarta.annotation.Nullable String username) { this.username = username; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 a90c962979df..649ac5b808f4 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -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(@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 ed656c051154..a4c5dc440244 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 @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@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 5d953f427297..a6079a052a2f 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 @@ -68,7 +68,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() { @@ -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(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -93,7 +93,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() { @@ -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(@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 a151adc7cecc..3f68c19abe62 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 @@ -62,7 +62,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() { @@ -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(@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 4fc87ba03b53..83a78a644596 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 @@ -62,7 +62,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() { @@ -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(@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 9b59d439f180..bdd1cbc6aa78 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 @@ -72,7 +72,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() { @@ -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(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -105,7 +105,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -138,7 +138,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() { @@ -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(@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 e25fddbdc25c..5fffe092927b 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -100,7 +100,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() { @@ -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(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 d90e7608a7fd..623afc5cd55b 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 a40eb2dde2e5..b42bb6a12453 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 a1ab3b1e6782..ed50d7e7f7d3 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 1bfbadd89a53..27ecd55725e2 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 34cee327d689..c04a3457e5c5 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 efd8cae5654e..8d483ec3e8a9 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 @@ -52,7 +52,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() { @@ -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(@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 c7826d226a5a..1d04776ca4d9 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 @@ -61,7 +61,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() { @@ -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(@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 463d95df3c0c..2006c0857f9a 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 @@ -128,7 +128,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() { @@ -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(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -161,7 +161,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() { @@ -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(@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 988251aa876b..03597917fa3f 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 @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -288,7 +288,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() { @@ -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(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,7 +344,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() { @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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 239661740b10..29c8e25c0082 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 @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -92,7 +92,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() { @@ -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(@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 5668a7aea47c..40c3c6e52ff4 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 @@ -59,7 +59,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() { @@ -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(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -92,7 +92,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() { @@ -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(@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 827cbd6bdfe8..6bbeb3b5ebdb 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 14364cf9373e..a7b34141a2ed 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 106d38f692c0..9b861c8a1a4b 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -160,7 +160,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() { @@ -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(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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; @@ -266,7 +266,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() { @@ -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(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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 98cd4322dfe0..2a4c04441ffd 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 @@ -62,7 +62,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() { @@ -76,7 +76,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 8d9de7e74751..9c0ac6478fe3 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 @@ -60,7 +60,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/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 8610793925ee..fbb0c2a250aa 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -143,7 +143,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() { @@ -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(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 3b3b53bd6f44..633c1a3f7ec8 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -90,7 +90,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -123,7 +123,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() { @@ -131,7 +131,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 d0f8853555e8..4259b8d2d6f2 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 @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@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 bf4359eeee13..093fca7f6804 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String type) { this.type = type; @@ -111,7 +111,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() { @@ -119,7 +119,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 f7f930b5f811..11ec90d12c8b 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 70d61225642c..6b2b536f0342 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b44e351a32f3..97d20efa034d 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 1ba9f4b9efbc..572c8c455ffd 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 @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -96,7 +96,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() { @@ -116,7 +116,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() { @@ -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(@jakarta.annotation.Nullable String property) { this.property = property; @@ -135,7 +135,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 e7b2b966bda6..0e1b52a8814b 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 @@ -127,7 +127,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() { @@ -160,7 +160,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() { @@ -193,7 +193,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() { @@ -226,7 +226,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() { @@ -259,7 +259,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() { @@ -292,7 +292,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() { @@ -337,7 +337,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() { @@ -382,7 +382,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() { @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -460,7 +460,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() { @@ -505,7 +505,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 */ @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() { @@ -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(@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 ecd1681390eb..e842bfd7f754 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 4a49fa52b381..4c78d29d6c6e 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -97,7 +97,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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 87736bbf7c43..581de823139f 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 @@ -113,7 +113,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() { @@ -121,7 +121,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 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() { @@ -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(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 6c8f9c1cf227..246cc9e33299 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -111,7 +111,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() { @@ -119,7 +119,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 9e882650ff8d..ee662372ad09 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b77f962e34ce..c7397c9497b4 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,7 +135,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/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 972cf1acaa13..a20cf1b0f147 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 @@ -120,7 +120,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,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() { @@ -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(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -170,7 +170,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -203,7 +203,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() { @@ -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(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -237,7 +237,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() { @@ -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(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -262,7 +262,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() { @@ -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(@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 8d99f52aca93..49cbb8b0e0ce 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 @@ -59,7 +59,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() { @@ -79,7 +79,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() { @@ -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(@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 469b99502570..0ab26e1be2bc 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 837a1aa18ff2..c72669d22575 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 296b99cb24f6..c7e901faf9ec 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 @@ -55,7 +55,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() { @@ -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-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 0d670d5492a6..6005ea81bee5 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -110,7 +110,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() { @@ -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(@jakarta.annotation.Nullable String username) { this.username = username; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 b55059fa8f47..17614a28c7dd 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -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(@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 ed656c051154..a4c5dc440244 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 @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@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 5d953f427297..a6079a052a2f 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 @@ -68,7 +68,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() { @@ -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(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -93,7 +93,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() { @@ -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(@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 bc98eb4dde50..986d5b27a7ec 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 @@ -62,7 +62,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() { @@ -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(@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 7b151f20ef7e..571f8e912e46 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 @@ -62,7 +62,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() { @@ -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(@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 b312f72e3d72..e84ca27edf10 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 @@ -72,7 +72,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() { @@ -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(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -105,7 +105,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -138,7 +138,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() { @@ -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(@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 e25fddbdc25c..5fffe092927b 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -100,7 +100,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() { @@ -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(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 d90e7608a7fd..623afc5cd55b 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 a40eb2dde2e5..b42bb6a12453 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 a1ab3b1e6782..ed50d7e7f7d3 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 1bfbadd89a53..27ecd55725e2 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 34cee327d689..c04a3457e5c5 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 efd8cae5654e..8d483ec3e8a9 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 @@ -52,7 +52,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() { @@ -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(@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 c7826d226a5a..1d04776ca4d9 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 @@ -61,7 +61,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() { @@ -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(@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 b911699943dc..d2b8dde5bd49 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 @@ -128,7 +128,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() { @@ -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(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -161,7 +161,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() { @@ -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(@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 988251aa876b..03597917fa3f 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 @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -288,7 +288,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() { @@ -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(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,7 +344,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() { @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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 a8900a262427..5140ec820b4d 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 @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -92,7 +92,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() { @@ -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(@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 b9b2448aec81..16ddf3085f00 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 @@ -59,7 +59,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() { @@ -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(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -92,7 +92,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() { @@ -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(@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 827cbd6bdfe8..6bbeb3b5ebdb 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 14364cf9373e..a7b34141a2ed 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 106d38f692c0..9b861c8a1a4b 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -160,7 +160,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() { @@ -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(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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; @@ -266,7 +266,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() { @@ -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(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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 98cd4322dfe0..2a4c04441ffd 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 @@ -62,7 +62,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() { @@ -76,7 +76,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 8d9de7e74751..9c0ac6478fe3 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 @@ -60,7 +60,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/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 24f3feea215b..f0404f6aebb3 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -143,7 +143,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() { @@ -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(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 035ec9b37fbb..fcfa5d4791e7 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -90,7 +90,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -123,7 +123,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() { @@ -131,7 +131,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 d0f8853555e8..4259b8d2d6f2 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 @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@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 bf4359eeee13..093fca7f6804 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String type) { this.type = type; @@ -111,7 +111,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() { @@ -119,7 +119,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 f7f930b5f811..11ec90d12c8b 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 70d61225642c..6b2b536f0342 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b44e351a32f3..97d20efa034d 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 1ba9f4b9efbc..572c8c455ffd 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 @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -96,7 +96,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() { @@ -116,7 +116,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() { @@ -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(@jakarta.annotation.Nullable String property) { this.property = property; @@ -135,7 +135,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 123492aa5ec0..5efdf61197b9 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 @@ -127,7 +127,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() { @@ -160,7 +160,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() { @@ -193,7 +193,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() { @@ -226,7 +226,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() { @@ -259,7 +259,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() { @@ -292,7 +292,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() { @@ -337,7 +337,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() { @@ -382,7 +382,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() { @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -460,7 +460,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() { @@ -505,7 +505,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 */ @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() { @@ -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(@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 ecd1681390eb..e842bfd7f754 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 6ee674ed1c09..6dcda1d97fb9 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -97,7 +97,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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 87736bbf7c43..581de823139f 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 @@ -113,7 +113,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() { @@ -121,7 +121,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 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() { @@ -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(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 6c8f9c1cf227..246cc9e33299 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -111,7 +111,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() { @@ -119,7 +119,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 9e882650ff8d..ee662372ad09 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b77f962e34ce..c7397c9497b4 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,7 +135,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/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 7bac1a76dd2b..7b4848eafea3 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 @@ -120,7 +120,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,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() { @@ -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(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -170,7 +170,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -203,7 +203,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() { @@ -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(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -237,7 +237,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() { @@ -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(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -262,7 +262,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() { @@ -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(@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 8d99f52aca93..49cbb8b0e0ce 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 @@ -59,7 +59,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() { @@ -79,7 +79,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() { @@ -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(@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 469b99502570..0ab26e1be2bc 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 837a1aa18ff2..c72669d22575 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 296b99cb24f6..c7e901faf9ec 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 @@ -55,7 +55,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() { @@ -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/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 0d670d5492a6..6005ea81bee5 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -110,7 +110,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() { @@ -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(@jakarta.annotation.Nullable String username) { this.username = username; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 f99361d4d0aa..0536c33fe905 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 @@ -65,7 +65,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() { @@ -73,7 +73,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/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 26d46cb0ac94..6d8944fce3d6 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 5ef4c91df203..19755da7cd80 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 @@ -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/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 6ce9b83c67ef..c2d684e2fcfc 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 @@ -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/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 f36135202ce4..28fbf8c2d5b3 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 @@ -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/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 2453f58cc35b..e0175f2d03db 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 @@ -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/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 5682f213b657..e4864216208c 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 33872f360268..be8e7fd55e9b 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 78cc077529bf..249f14c58a69 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 ec7b8f7e313d..f0910711118d 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 74dd4385a903..bc883861da55 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 99fe381a8761..76b0c5cac91d 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 667be6e27ff1..d06066490e98 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 @@ -52,7 +52,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() { @@ -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/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 9c932cb01bde..63cc53e66020 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 @@ -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/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 e6cca680c1f6..95af14f9eb16 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 @@ -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/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 fd1ad1a42dc3..905dfb17455d 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 @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,14 +344,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; } @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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 16f1b68bbcd6..4e6af414357f 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 @@ -59,7 +59,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() { @@ -67,7 +67,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/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 a05efa3c9138..28eae4a9c518 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 @@ -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/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 c85972a7b23e..9da778b7804c 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 1f2159ab4ec3..48668506357c 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 8e9b9fbbf775..6600f7b20e52 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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) { * @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() { @@ -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; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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 ef912674bde7..dd34438d5ed8 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 @@ -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; @@ -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() { @@ -76,7 +76,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 e7acb5847d1b..6c68cba6f3cb 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 @@ -60,14 +60,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 ec9e81743d7e..99c72041af48 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 b480c7d542dc..d0219f2e2173 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -123,7 +123,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() { @@ -131,7 +131,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 2a69b55cfd63..7a268eb4a14e 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 f080773624a8..1255ae56e3d0 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 21f812364f02..45f97655028f 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c24868360f69..dfef26ef7fbf 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b7ca4af717d3..6901c048a0aa 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 dce25ead2111..4c67288873e4 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 @@ -58,8 +58,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; @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -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/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 62877f172a81..4d9dc0c53706 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 @@ -124,14 +124,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; } @@ -157,14 +157,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; } @@ -190,14 +190,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; } @@ -223,14 +223,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; } @@ -256,14 +256,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; } @@ -289,14 +289,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; } @@ -334,14 +334,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; } @@ -379,14 +379,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; } @@ -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; @@ -457,14 +457,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; } @@ -502,14 +502,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; } @@ -537,7 +537,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() { @@ -545,7 +545,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 a91f0c49358f..c0748fb6a1c6 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 82e32c8a38c1..a7865e2253d9 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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 64b26edbd416..54308806a1d8 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 3ba67944ba15..d4122b6599f2 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 4dd4534e941e..db2c78fc32b7 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b59dbe0c7346..d85b036b919a 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,14 +135,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 2a0fdfd8c10c..91c273899150 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 @@ -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/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 d1147f1fda3a..eee83de7eadb 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 @@ -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; @@ -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/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 1e8cf30bc343..9ac2edeb2468 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c46a759548fa..666772aed4be 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 59a40a36e963..9e49fc2ab4bb 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 @@ -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/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 006f4222a31e..f342e9bcd3a5 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 214d8d91f319..231c5488552a 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 @@ -63,7 +63,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() { @@ -71,7 +71,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.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() { @@ -96,7 +96,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 fe0515e359f6..92c12ad234ab 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -95,7 +95,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() { @@ -103,7 +103,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; @@ -120,7 +120,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() { @@ -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(@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 81a29e6a1858..0ffa995a40fa 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 @@ -125,7 +125,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -225,7 +225,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() { @@ -233,7 +233,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) { * @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() { @@ -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/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 586c9f9cae0a..02aa54f3fc29 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 @@ -129,7 +129,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() { @@ -137,7 +137,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; @@ -154,7 +154,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() { @@ -162,7 +162,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; @@ -179,7 +179,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -245,7 +245,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() { @@ -253,7 +253,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; @@ -272,7 +272,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() { @@ -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/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 fa550c2067c9..96b0a0009dea 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 @@ -63,7 +63,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() { @@ -71,7 +71,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 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() { @@ -96,7 +96,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 a5a4d07fe269..af4064f71fa0 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 @@ -99,7 +99,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() { @@ -107,7 +107,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; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -149,7 +149,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() { @@ -157,7 +157,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; @@ -174,7 +174,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() { @@ -182,7 +182,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; @@ -199,7 +199,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() { @@ -207,7 +207,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; @@ -224,7 +224,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() { @@ -232,7 +232,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; @@ -249,7 +249,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() { @@ -257,7 +257,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; @@ -274,7 +274,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() { @@ -282,7 +282,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 1a895c2d58de..e42959cb5529 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 @@ -59,7 +59,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() { @@ -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 @ApiModelProperty(value = "") - @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/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 3ff45f50e074..ad2e6130c31b 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 @@ -65,7 +65,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() { @@ -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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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/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 b7c6e372af65..982f4de15282 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 @@ -117,7 +117,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() { @@ -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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "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 @ApiModelProperty(value = "") - @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/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 e5ada803fbf8..21e8f948d45b 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 @@ -121,7 +121,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() { @@ -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 @ApiModelProperty(value = "") - @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 @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() { @@ -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 @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() { @@ -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 @ApiModelProperty(value = "") - @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; @@ -269,7 +269,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() { @@ -277,7 +277,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 5398b4a2d481..405115f26c13 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 @@ -59,7 +59,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() { @@ -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 @ApiModelProperty(value = "") - @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/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 fa72657936bd..29e7677d26dc 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 @@ -89,7 +89,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() { @@ -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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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 @ApiModelProperty(value = "") - @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 @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() { @@ -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/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 3a6ba4ddb5d1..d0f875abf8f1 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 @@ -58,7 +58,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() { @@ -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 @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() { @@ -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-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 e65661314e3a..af309bd6a51a 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 @@ -64,7 +64,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() { @@ -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 @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() { @@ -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 @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() { @@ -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-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 2852ae16616d..70b7168f4614 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 @@ -116,7 +116,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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-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 f45892a3e7fe..f5eb8f68bfe9 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 @@ -120,7 +120,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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/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 73527453e8d7..14a9b877d7a8 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 @@ -58,7 +58,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() { @@ -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 @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() { @@ -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-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 6ccd07bfeffe..8a5e8862aee1 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 @@ -88,7 +88,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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-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 caa4d48bdd0d..d2c7fdb73b31 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 @@ -74,7 +74,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) @@ -84,7 +84,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) @@ -111,7 +111,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 7298a5ca86a6..6429eb8d843c 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 @@ -65,7 +65,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") @@ -74,7 +74,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) { @@ -92,7 +92,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") @@ -101,7 +101,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 e80e9e41f804..b7f541cdbd5b 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 @@ -77,7 +77,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") @@ -86,7 +86,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) { @@ -104,7 +104,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") @@ -113,7 +113,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 566e5e5ad1d7..a5cc1b51ce52 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 @@ -70,7 +70,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) @@ -80,7 +80,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 73f9591aca7f..fd4ee602d826 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 @@ -70,7 +70,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) @@ -80,7 +80,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 19c9fc50ec89..5d6fd73b1d6d 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 @@ -82,7 +82,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) @@ -92,7 +92,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) @@ -119,7 +119,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) @@ -129,7 +129,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) @@ -156,7 +156,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) @@ -166,7 +166,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 9f9e874c577a..b8ce6ca783eb 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 @@ -88,7 +88,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") @@ -97,7 +97,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) { @@ -115,7 +115,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") @@ -124,7 +124,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) { @@ -142,7 +142,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") @@ -151,7 +151,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) { @@ -169,7 +169,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") @@ -178,7 +178,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) { @@ -196,7 +196,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") @@ -205,7 +205,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) { @@ -223,7 +223,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") @@ -232,7 +232,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 c4648ec9b770..b804f2225908 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 @@ -69,7 +69,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") @@ -78,7 +78,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 876c2719878a..b17b2cb83152 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 @@ -64,7 +64,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") @@ -73,7 +73,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) { @@ -91,7 +91,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") @@ -100,7 +100,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 548133322e47..17d8d0e8cf57 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 @@ -70,7 +70,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") @@ -79,7 +79,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 8ec6a5653771..67166cdd6790 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 @@ -58,7 +58,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") @@ -67,7 +67,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 19e8756795e0..30d53cd9aaf1 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 @@ -58,7 +58,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") @@ -67,7 +67,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 db183cbc7879..8b06e3c26bfd 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 @@ -60,7 +60,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") @@ -69,7 +69,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 9aba5d8f8c63..11e6b8eaf7b7 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 @@ -69,7 +69,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") @@ -78,7 +78,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 7b4e7102dad8..323e452f696b 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 @@ -145,7 +145,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") @@ -154,7 +154,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) { @@ -180,7 +180,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) @@ -190,7 +190,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 f507eada5a4a..af1c738197bd 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 @@ -271,7 +271,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") @@ -280,7 +280,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) { @@ -298,7 +298,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") @@ -307,7 +307,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) { @@ -325,7 +325,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") @@ -334,7 +334,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) { @@ -352,7 +352,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") @@ -361,7 +361,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) { @@ -385,7 +385,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") @@ -413,7 +413,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") @@ -422,7 +422,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) { @@ -440,7 +440,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") @@ -449,7 +449,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) { @@ -467,7 +467,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") @@ -476,7 +476,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 1a02e667f8c6..c3cb7e5c430f 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 @@ -68,7 +68,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") @@ -77,7 +77,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) { @@ -103,7 +103,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) @@ -113,7 +113,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 017cf687799d..7ebc16f6e1f4 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 @@ -68,7 +68,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") @@ -77,7 +77,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) { @@ -103,7 +103,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) @@ -113,7 +113,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 695077a322c4..7b6984f89168 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 @@ -58,7 +58,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") @@ -67,7 +67,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 823c41692075..ec8665292023 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 @@ -60,7 +60,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") @@ -69,7 +69,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 cccb20990439..91f2914f7983 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 @@ -157,7 +157,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") @@ -166,7 +166,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) { @@ -186,7 +186,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") @@ -195,7 +195,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) { @@ -213,7 +213,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") @@ -222,7 +222,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) { @@ -242,7 +242,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") @@ -251,7 +251,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) { @@ -271,7 +271,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") @@ -280,7 +280,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) { @@ -300,7 +300,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") @@ -309,7 +309,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) { @@ -327,7 +327,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") @@ -336,7 +336,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) { @@ -354,7 +354,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") @@ -363,7 +363,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) { @@ -381,7 +381,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") @@ -390,7 +390,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) { @@ -408,7 +408,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") @@ -417,7 +417,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) { @@ -435,7 +435,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") @@ -444,7 +444,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) { @@ -462,7 +462,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") @@ -471,7 +471,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) { @@ -489,7 +489,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") @@ -498,7 +498,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) { @@ -516,7 +516,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") @@ -525,7 +525,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) { @@ -543,7 +543,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") @@ -552,7 +552,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) { @@ -570,7 +570,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") @@ -579,7 +579,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 356d9ced7344..94bcd64a272d 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 @@ -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) @JacksonXmlProperty(localName = "bar") @@ -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) @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 45d398acb4c9..8202c636cf91 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 @@ -68,7 +68,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 4b85a029f25d..21efbcd45b93 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 @@ -125,7 +125,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) @@ -135,7 +135,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) @@ -162,7 +162,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) @@ -172,7 +172,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) @@ -199,7 +199,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) @@ -209,7 +209,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) @@ -236,7 +236,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) @@ -246,7 +246,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 c7ce62ce3e37..eeb676a65731 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 @@ -76,7 +76,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") @@ -85,7 +85,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) { @@ -103,7 +103,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") @@ -112,7 +112,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) { @@ -138,7 +138,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) @@ -148,7 +148,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 1db13de81677..2431302a770a 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 @@ -65,7 +65,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") @@ -74,7 +74,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) { @@ -92,7 +92,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") @@ -101,7 +101,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 8e3ccf6e3b7a..3cf357dac0a5 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 @@ -71,7 +71,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") @@ -80,7 +80,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) { @@ -98,7 +98,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") @@ -107,7 +107,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) { @@ -125,7 +125,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") @@ -134,7 +134,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 738297724cd1..b772364365aa 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 @@ -59,7 +59,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") @@ -68,7 +68,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 2b3b23033dc8..fb2d2dec4d0c 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 @@ -59,7 +59,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") @@ -68,7 +68,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 7fecc905dec2..c17fd98594cf 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 @@ -59,7 +59,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") @@ -68,7 +68,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 b6f381ace7a3..b3cd356abdf4 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 @@ -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) @JacksonXmlProperty(localName = "name") @@ -85,7 +85,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) { @@ -97,7 +97,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") @@ -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) @JacksonXmlProperty(localName = "property") @@ -127,7 +127,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) { @@ -139,7 +139,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 706363e64b28..d0aba5bda811 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 @@ -147,7 +147,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") @@ -181,7 +181,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") @@ -215,7 +215,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") @@ -249,7 +249,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") @@ -283,7 +283,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") @@ -317,7 +317,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") @@ -363,7 +363,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) @@ -410,7 +410,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) @@ -447,7 +447,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) @@ -457,7 +457,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) @@ -494,7 +494,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) @@ -541,7 +541,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) @@ -578,7 +578,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) @@ -588,7 +588,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 527a1ca74139..d7bf16e535a8 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 @@ -59,7 +59,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") @@ -68,7 +68,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 b01e30fa38fa..6bf754fa77e8 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 @@ -81,7 +81,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") @@ -90,7 +90,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) { @@ -110,7 +110,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") @@ -119,7 +119,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) { @@ -139,7 +139,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") @@ -148,7 +148,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) { @@ -176,7 +176,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) @@ -186,7 +186,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 1cf25c4f9dee..073e0e919074 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 @@ -132,7 +132,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") @@ -141,7 +141,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) { @@ -159,7 +159,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") @@ -168,7 +168,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) { @@ -186,7 +186,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") @@ -195,7 +195,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) { @@ -213,7 +213,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") @@ -222,7 +222,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) { @@ -240,7 +240,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") @@ -249,7 +249,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) { @@ -267,7 +267,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") @@ -276,7 +276,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 b4884ae3e649..32bf089a38dd 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 @@ -71,7 +71,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") @@ -80,7 +80,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) { @@ -98,7 +98,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") @@ -107,7 +107,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) { @@ -125,7 +125,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") @@ -134,7 +134,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 a643010396fb..c71b108d1dd9 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 @@ -59,7 +59,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") @@ -68,7 +68,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 6e4652a2d673..4864de7df6c1 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 @@ -116,7 +116,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") @@ -125,7 +125,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) { @@ -149,7 +149,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 87dd7365c31e..866164d052a5 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 @@ -140,7 +140,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") @@ -149,7 +149,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) { @@ -167,7 +167,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") @@ -176,7 +176,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) { @@ -194,7 +194,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") @@ -203,7 +203,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) { @@ -229,7 +229,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) @@ -240,7 +240,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) @@ -267,7 +267,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) @@ -277,7 +277,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) @@ -296,7 +296,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") @@ -305,7 +305,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 b51616d7f092..f4d96bdc2977 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 @@ -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) @JacksonXmlProperty(localName = "bar") @@ -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) @JacksonXmlProperty(localName = "baz") @@ -88,7 +88,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 904045082b88..50634d79ce20 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 @@ -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) @JacksonXmlProperty(localName = "$special[property.name]") @@ -68,7 +68,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 2a691f47fdfd..d780965da81d 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 @@ -64,7 +64,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") @@ -73,7 +73,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) { @@ -91,7 +91,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") @@ -100,7 +100,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 8a5ce1ea5d84..d91115d40a1a 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 @@ -63,7 +63,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") @@ -72,7 +72,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 2c359c414186..248a9445692f 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 @@ -100,7 +100,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") @@ -109,7 +109,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) { @@ -127,7 +127,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") @@ -136,7 +136,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) { @@ -154,7 +154,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") @@ -163,7 +163,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) { @@ -181,7 +181,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") @@ -190,7 +190,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) { @@ -208,7 +208,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") @@ -217,7 +217,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) { @@ -235,7 +235,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") @@ -244,7 +244,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) { @@ -262,7 +262,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") @@ -271,7 +271,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) { @@ -289,7 +289,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") @@ -298,7 +298,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 bcba8b7fe964..aaa6435254eb 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 @@ -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) public Map getMapProperty() { @@ -81,7 +81,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; @@ -106,7 +106,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -114,7 +114,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 797c9901881e..e113d5a6dfc7 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 @@ -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) public String getUsername() { @@ -72,7 +72,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; @@ -89,7 +89,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() { @@ -97,7 +97,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 7a86da2b5301..6ad5d759dd20 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 @@ -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) public String getClassName() { @@ -84,7 +84,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) { * @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() { @@ -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/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 ecdb178d05e5..c053828df8ed 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 @@ -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) public List> getArrayArrayNumber() { @@ -77,7 +77,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 873a753564eb..a70067a9ded3 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 @@ -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) public List getArrayNumber() { @@ -77,7 +77,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 b24514f61486..0650850ffc2f 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 @@ -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) public List getArrayOfString() { @@ -89,7 +89,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; @@ -114,7 +114,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() { @@ -122,7 +122,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 * @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() { @@ -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/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 1ef86784b6b8..f58f93174402 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 @@ -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) public String getSmallCamel() { @@ -95,7 +95,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; @@ -112,7 +112,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() { @@ -120,7 +120,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; @@ -137,7 +137,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() { @@ -145,7 +145,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; @@ -162,7 +162,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() { @@ -170,7 +170,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; @@ -187,7 +187,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() { @@ -195,7 +195,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; @@ -212,7 +212,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() { @@ -220,7 +220,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 38fe848776be..f6d91178f23b 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 @@ -69,7 +69,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() { @@ -77,7 +77,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 847f70f4d848..b79edf0e2d3f 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 @@ -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) public Long getId() { @@ -71,7 +71,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; @@ -88,7 +88,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() { @@ -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(@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 45885b81148c..7106c5e3d4ed 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 @@ -70,7 +70,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() { @@ -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) 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 3b1aacae82f9..9551155194b9 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 @@ -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) public String getPropertyClass() { @@ -65,7 +65,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 9978bc018d9c..c66ce2647d38 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 @@ -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) public String getClient() { @@ -65,7 +65,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 854834544350..d5d655a02320 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 @@ -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) 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/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 ad493d820d00..2d9681597cbd 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 @@ -69,7 +69,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() { @@ -77,7 +77,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 e20cb742cef4..0c936fbfc5b7 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 @@ -136,7 +136,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() { @@ -144,7 +144,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; @@ -169,7 +169,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() { @@ -177,7 +177,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 41db7c8e9f9a..0b1ab0847750 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 @@ -252,7 +252,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() { @@ -260,7 +260,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; @@ -277,7 +277,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() { @@ -285,7 +285,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; @@ -302,7 +302,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() { @@ -310,7 +310,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; @@ -327,7 +327,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() { @@ -335,7 +335,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; @@ -358,7 +358,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() { @@ -385,7 +385,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() { @@ -393,7 +393,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; @@ -410,7 +410,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() { @@ -418,7 +418,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; @@ -435,7 +435,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() { @@ -443,7 +443,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 efd89324e21c..6c21c83172af 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 @@ -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) public BigDecimal getSomeId() { @@ -75,7 +75,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; @@ -100,7 +100,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() { @@ -108,7 +108,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 fb71c3cd1801..2f53e072edf9 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 @@ -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) public ModelFile getFile() { @@ -75,7 +75,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; @@ -100,7 +100,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() { @@ -108,7 +108,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 bd14dfea3f65..604a90207e22 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 @@ -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) public String getBar() { @@ -65,7 +65,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 1d9978430852..599939dd1fac 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 @@ -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) 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(@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 bd083c20fc32..4650ad75827a 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 @@ -155,7 +155,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() { @@ -163,7 +163,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; @@ -182,7 +182,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() { @@ -190,7 +190,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; @@ -207,7 +207,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() { @@ -215,7 +215,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; @@ -234,7 +234,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() { @@ -242,7 +242,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; @@ -261,7 +261,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() { @@ -269,7 +269,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; @@ -288,7 +288,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() { @@ -296,7 +296,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; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -338,7 +338,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() { @@ -346,7 +346,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; @@ -363,7 +363,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() { @@ -371,7 +371,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; @@ -388,7 +388,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() { @@ -396,7 +396,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; @@ -413,7 +413,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() { @@ -421,7 +421,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; @@ -438,7 +438,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() { @@ -446,7 +446,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; @@ -463,7 +463,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() { @@ -471,7 +471,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; @@ -488,7 +488,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() { @@ -496,7 +496,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; @@ -513,7 +513,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() { @@ -521,7 +521,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; @@ -538,7 +538,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() { @@ -546,7 +546,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 540e7bf4ca72..fd998c31d8df 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 @@ -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() { @@ -76,7 +76,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 ef874cfe6376..481a66b9e364 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 @@ -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) 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 ff9a014c8c64..b141c06eb3a9 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 @@ -120,7 +120,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() { @@ -128,7 +128,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; @@ -153,7 +153,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() { @@ -161,7 +161,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; @@ -186,7 +186,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() { @@ -194,7 +194,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; @@ -219,7 +219,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() { @@ -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(@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 ad1dacc935de..05828f94fdfb 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 @@ -74,7 +74,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() { @@ -82,7 +82,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; @@ -99,7 +99,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() { @@ -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(@javax.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -132,7 +132,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() { @@ -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/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 a643c04784bb..23a636c38401 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 @@ -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) public Integer getName() { @@ -72,7 +72,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 * @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() { @@ -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/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 a4413f60c9db..89a20d8ed270 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 @@ -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) public Integer getCode() { @@ -78,7 +78,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; @@ -95,7 +95,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() { @@ -103,7 +103,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) { * @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() { @@ -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/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 02aaddaeba94..ecf456736629 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 @@ -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) public String getSourceURI() { @@ -66,7 +66,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 f0754681cd55..55636e54f0b6 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 @@ -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) public String get123list() { @@ -66,7 +66,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 ba6d459617d7..78c725682a4a 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 @@ -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) public Integer getReturn() { @@ -66,7 +66,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 793d8d9e73b4..18216921b1ab 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 @@ -87,7 +87,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() { @@ -95,7 +95,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; @@ -106,7 +106,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() { @@ -126,7 +126,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() { @@ -134,7 +134,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) { * @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 46579c1237b4..cfebe28d4cfa 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 @@ -145,7 +145,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() { @@ -178,7 +178,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() { @@ -211,7 +211,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() { @@ -244,7 +244,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() { @@ -277,7 +277,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() { @@ -310,7 +310,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() { @@ -355,7 +355,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() { @@ -400,7 +400,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() { @@ -435,7 +435,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() { @@ -443,7 +443,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; @@ -478,7 +478,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() { @@ -523,7 +523,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() { @@ -558,7 +558,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() { @@ -566,7 +566,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 91babf5b7c50..1b801cb389b8 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 @@ -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) 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(@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 8a4c3e4583ca..01ae38bcd404 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 @@ -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) public String getUuid() { @@ -88,7 +88,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; @@ -107,7 +107,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() { @@ -115,7 +115,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; @@ -134,7 +134,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() { @@ -142,7 +142,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; @@ -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() { @@ -177,7 +177,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 0a3325c71ff2..cc9e15db8262 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 @@ -125,7 +125,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() { @@ -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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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; @@ -225,7 +225,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() { @@ -233,7 +233,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; @@ -250,7 +250,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() { @@ -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(@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 b8a0b1c43d19..85c8e0d74a79 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 @@ -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) public BigDecimal getMyNumber() { @@ -78,7 +78,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; @@ -95,7 +95,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() { @@ -103,7 +103,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) { * @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() { @@ -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(@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 ee090938c86c..09c767d8f305 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 @@ -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) public OuterEnumInteger getValue() { @@ -66,7 +66,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 217f93a421c7..8eac0383a47a 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 @@ -112,7 +112,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() { @@ -120,7 +120,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; @@ -143,7 +143,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 d3807c7ef9cc..d6ddbc551831 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 @@ -132,7 +132,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() { @@ -140,7 +140,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; @@ -157,7 +157,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() { @@ -165,7 +165,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; @@ -182,7 +182,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() { @@ -190,7 +190,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; @@ -215,7 +215,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() { @@ -224,7 +224,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; @@ -249,7 +249,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() { @@ -257,7 +257,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; @@ -274,7 +274,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() { @@ -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/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 bb6e501c6c3f..3f642c4a46bf 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 @@ -67,7 +67,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() { @@ -87,7 +87,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() { @@ -95,7 +95,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 db2f94127fb3..1bf3cab721c2 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 @@ -58,7 +58,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() { @@ -66,7 +66,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 1cef09eee0ae..9e8b9c24dab9 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 @@ -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) public Long getId() { @@ -71,7 +71,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; @@ -88,7 +88,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() { @@ -96,7 +96,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 b304ad0ee3d8..22bff35a89e2 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 @@ -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) public String getSomeProperty() { @@ -70,7 +70,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 59245d028f32..4642f1b230df 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 @@ -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) public Long getId() { @@ -107,7 +107,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; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -149,7 +149,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() { @@ -157,7 +157,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; @@ -174,7 +174,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() { @@ -182,7 +182,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; @@ -199,7 +199,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() { @@ -207,7 +207,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; @@ -224,7 +224,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() { @@ -232,7 +232,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; @@ -249,7 +249,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() { @@ -257,7 +257,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; @@ -274,7 +274,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() { @@ -282,7 +282,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 4ccce4284ce4..019a2c3ddd9f 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index e4069be39c40..9a601ab1f906 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 @@ -57,7 +57,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() { @@ -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(@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 79631d3a4b09..377b31d82fa2 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7ca892fb3cff..0961b8a73d30 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 @@ -115,7 +115,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() { @@ -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(@jakarta.annotation.Nullable Map mapString) { this.mapString = mapString; @@ -150,7 +150,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() { @@ -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(@jakarta.annotation.Nullable Map mapNumber) { this.mapNumber = mapNumber; @@ -184,7 +184,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() { @@ -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(@jakarta.annotation.Nullable Map mapInteger) { this.mapInteger = mapInteger; @@ -218,7 +218,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() { @@ -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(@jakarta.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(@jakarta.annotation.Nullable Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -288,7 +288,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() { @@ -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(@jakarta.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(@jakarta.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(@jakarta.annotation.Nullable Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -384,7 +384,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() { @@ -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(@jakarta.annotation.Nullable Object anytype1) { this.anytype1 = anytype1; @@ -410,7 +410,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() { @@ -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(@jakarta.annotation.Nullable Object anytype2) { this.anytype2 = anytype2; @@ -436,7 +436,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() { @@ -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(@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 4cc12b742347..dbfe7c128469 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index c04dadb8cdd5..646a4e1dfe65 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 @@ -57,7 +57,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() { @@ -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(@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 f2d8a6767e82..a050fb3d5bb4 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 @@ -56,7 +56,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() { @@ -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/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 3775365f8dd8..546ff89e17e7 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 @@ -56,7 +56,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() { @@ -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/Animal.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java index 9070112bdadd..ad45485eba52 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 @@ -73,7 +73,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() { @@ -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(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -99,7 +99,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() { @@ -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(@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 55c6ff38a291..d3d30eae5982 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 @@ -66,7 +66,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() { @@ -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(@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 ebb18fdd0b0a..357203796171 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 @@ -66,7 +66,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() { @@ -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(@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 2c9710c2bd78..fc2d80d40be1 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 @@ -75,7 +75,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() { @@ -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(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -110,7 +110,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -145,7 +145,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() { @@ -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(@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 fb115cbebd65..afe9095fc3a7 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 @@ -103,7 +103,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() { @@ -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(@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 75ffc68734a6..3391b762cfab 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 @@ -78,7 +78,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() { @@ -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(@jakarta.annotation.Nullable String smallCamel) { this.smallCamel = smallCamel; @@ -104,7 +104,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() { @@ -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(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -130,7 +130,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() { @@ -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(@jakarta.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -156,7 +156,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() { @@ -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(@jakarta.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -182,7 +182,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() { @@ -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(@jakarta.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -208,7 +208,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() { @@ -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(@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 968e3c1a0935..67c104f1ee9f 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 @@ -67,7 +67,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() { @@ -75,7 +75,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 e15375f3bec4..89146cb191e0 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 @@ -58,7 +58,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -85,7 +85,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() { @@ -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(@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 18aeff1c5520..6a658186362e 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 @@ -53,7 +53,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() { @@ -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(@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 688ecce52ee6..800cc12f7fa2 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 @@ -53,7 +53,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() { @@ -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(@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 cce91a43a741..f797e2895815 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 @@ -64,7 +64,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() { @@ -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(@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 f05fa0f72222..bede10b6bd21 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 @@ -131,7 +131,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() { @@ -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(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -165,7 +165,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() { @@ -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(@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 886d8fb3b761..7844c5358cea 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 @@ -219,7 +219,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() { @@ -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(@jakarta.annotation.Nullable EnumStringEnum enumString) { this.enumString = enumString; @@ -246,7 +246,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() { @@ -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(@jakarta.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -272,7 +272,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() { @@ -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(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -298,7 +298,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() { @@ -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(@jakarta.annotation.Nullable EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -325,7 +325,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() { @@ -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(@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 cada12453b2e..1f1fdcf35d68 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 @@ -63,7 +63,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() { @@ -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(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -98,7 +98,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() { @@ -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(@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 8ca67a1a06e6..3c18128f59fb 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 @@ -126,7 +126,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() { @@ -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(@jakarta.annotation.Nullable Integer integer) { this.integer = integer; @@ -154,7 +154,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() { @@ -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(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -180,7 +180,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() { @@ -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(@jakarta.annotation.Nullable Long int64) { this.int64 = int64; @@ -210,7 +210,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() { @@ -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(@jakarta.annotation.Nonnull BigDecimal number) { this.number = number; @@ -238,7 +238,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() { @@ -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; @@ -266,7 +266,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() { @@ -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(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -292,7 +292,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() { @@ -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(@jakarta.annotation.Nullable String string) { this.string = string; @@ -319,7 +319,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() { @@ -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(@jakarta.annotation.Nonnull byte[] _byte) { this._byte = _byte; @@ -346,7 +346,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() { @@ -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(@jakarta.annotation.Nullable File binary) { this.binary = binary; @@ -374,7 +374,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() { @@ -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(@jakarta.annotation.Nonnull LocalDate date) { this.date = date; @@ -401,7 +401,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -428,7 +428,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() { @@ -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(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -455,7 +455,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() { @@ -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(@jakarta.annotation.Nonnull String password) { this.password = password; @@ -482,7 +482,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() { @@ -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(@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 94bb5f78d663..c6c0c4048e6f 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 @@ -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( */ @jakarta.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() { */ @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 f1e2049deb7c..a74c3358579f 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 @@ -114,7 +114,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() { @@ -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(@jakarta.annotation.Nullable Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; @@ -148,7 +148,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() { @@ -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(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -182,7 +182,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() { @@ -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(@jakarta.annotation.Nullable Map directMap) { this.directMap = directMap; @@ -216,7 +216,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() { @@ -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(@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 8b6afe61668e..d9fe5e4b3d0e 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 @@ -69,7 +69,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() { @@ -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(@jakarta.annotation.Nullable UUID uuid) { this.uuid = uuid; @@ -96,7 +96,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -131,7 +131,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() { @@ -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(@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 2dd824d3cde1..c49524b23b6b 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 @@ -59,7 +59,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() { @@ -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(@jakarta.annotation.Nullable Integer name) { this.name = name; @@ -85,7 +85,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() { @@ -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(@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 b9e2b3209a3b..d714136dc2c1 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 @@ -64,7 +64,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() { @@ -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(@jakarta.annotation.Nullable Integer code) { this.code = code; @@ -90,7 +90,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() { @@ -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(@jakarta.annotation.Nullable String type) { this.type = type; @@ -116,7 +116,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() { @@ -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(@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 210fdbca8c23..507ea6b9768f 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 @@ -54,7 +54,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() { @@ -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(@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 638249853d51..fa9cd237fb5a 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 @@ -54,7 +54,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() { @@ -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(@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 4ef980ddbb32..84c1a7ba1e7f 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 @@ -54,7 +54,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() { @@ -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(@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 6b70762e6ddf..d1f82440db54 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 @@ -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(@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() { @@ -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(@jakarta.annotation.Nonnull Integer name) { this.name = name; @@ -101,7 +101,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() { @@ -122,7 +122,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() { @@ -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(@jakarta.annotation.Nullable String property) { this.property = property; @@ -142,7 +142,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 7c7c095179cd..e7d01cba9d5f 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 @@ -55,7 +55,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() { @@ -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(@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 48bf1a1bef2e..0a88a7ad6aa3 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 @@ -116,7 +116,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() { @@ -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; @@ -142,7 +142,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() { @@ -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(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -168,7 +168,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() { @@ -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(@jakarta.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -195,7 +195,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime shipDate) { this.shipDate = shipDate; @@ -221,7 +221,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() { @@ -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(@jakarta.annotation.Nullable StatusEnum status) { this.status = status; @@ -247,7 +247,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() { @@ -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(@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 1bf488f520f6..461af6c2f225 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 @@ -65,7 +65,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal myNumber) { this.myNumber = myNumber; @@ -91,7 +91,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() { @@ -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(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -117,7 +117,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() { @@ -125,7 +125,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 37512339c090..c4fa19d15d64 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 @@ -123,7 +123,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -150,7 +150,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() { @@ -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(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -177,7 +177,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -212,7 +212,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() { @@ -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(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -248,7 +248,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() { @@ -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(@jakarta.annotation.Nullable List<@Valid Tag> tags) { this.tags = tags; @@ -274,7 +274,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() { @@ -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(@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 a534ee81e00a..6535b5f95fe3 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 @@ -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( */ @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 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() { @@ -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(@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 c7fd24aaac63..efb3a1de3b32 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 @@ -54,7 +54,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() { @@ -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(@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 e3588b9f5ea8..e58f000e961c 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 @@ -58,7 +58,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -84,7 +84,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() { @@ -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(@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 b367d3bf73bc..71099d0ea1f1 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 @@ -78,7 +78,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() { @@ -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(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -106,7 +106,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() { @@ -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(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -133,7 +133,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() { @@ -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(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -195,7 +195,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() { @@ -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(@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 d18a4751b3e9..e594190018a9 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 @@ -83,7 +83,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() { @@ -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(@jakarta.annotation.Nonnull String stringItem) { this.stringItem = stringItem; @@ -111,7 +111,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() { @@ -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(@jakarta.annotation.Nonnull BigDecimal numberItem) { this.numberItem = numberItem; @@ -138,7 +138,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() { @@ -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(@jakarta.annotation.Nonnull Float floatItem) { this.floatItem = floatItem; @@ -165,7 +165,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() { @@ -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(@jakarta.annotation.Nonnull Integer integerItem) { this.integerItem = integerItem; @@ -192,7 +192,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() { @@ -200,7 +200,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; @@ -227,7 +227,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() { @@ -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(@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 be191af70ea9..05b437d40848 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 @@ -88,7 +88,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -114,7 +114,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() { @@ -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(@jakarta.annotation.Nullable String username) { this.username = username; @@ -140,7 +140,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() { @@ -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(@jakarta.annotation.Nullable String firstName) { this.firstName = firstName; @@ -166,7 +166,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() { @@ -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(@jakarta.annotation.Nullable String lastName) { this.lastName = lastName; @@ -192,7 +192,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() { @@ -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(@jakarta.annotation.Nullable String email) { this.email = email; @@ -218,7 +218,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() { @@ -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(@jakarta.annotation.Nullable String password) { this.password = password; @@ -244,7 +244,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() { @@ -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(@jakarta.annotation.Nullable String phone) { this.phone = phone; @@ -270,7 +270,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() { @@ -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(@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 b895008c76a0..415694156777 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 @@ -197,7 +197,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() { @@ -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(@jakarta.annotation.Nullable String attributeString) { this.attributeString = attributeString; @@ -224,7 +224,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -250,7 +250,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() { @@ -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(@jakarta.annotation.Nullable Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -276,7 +276,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() { @@ -284,7 +284,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; @@ -310,7 +310,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() { @@ -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(@jakarta.annotation.Nullable List wrappedArray) { this.wrappedArray = wrappedArray; @@ -336,7 +336,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() { @@ -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(@jakarta.annotation.Nullable String nameString) { this.nameString = nameString; @@ -363,7 +363,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -389,7 +389,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() { @@ -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(@jakarta.annotation.Nullable Integer nameInteger) { this.nameInteger = nameInteger; @@ -415,7 +415,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() { @@ -423,7 +423,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; @@ -449,7 +449,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() { @@ -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(@jakarta.annotation.Nullable List nameArray) { this.nameArray = nameArray; @@ -483,7 +483,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() { @@ -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(@jakarta.annotation.Nullable List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -509,7 +509,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() { @@ -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(@jakarta.annotation.Nullable String prefixString) { this.prefixString = prefixString; @@ -536,7 +536,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -562,7 +562,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() { @@ -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(@jakarta.annotation.Nullable Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -588,7 +588,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() { @@ -596,7 +596,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; @@ -622,7 +622,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() { @@ -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(@jakarta.annotation.Nullable List prefixArray) { this.prefixArray = prefixArray; @@ -656,7 +656,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() { @@ -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(@jakarta.annotation.Nullable List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -682,7 +682,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() { @@ -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(@jakarta.annotation.Nullable String namespaceString) { this.namespaceString = namespaceString; @@ -709,7 +709,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -735,7 +735,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() { @@ -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(@jakarta.annotation.Nullable Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -761,7 +761,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() { @@ -769,7 +769,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; @@ -795,7 +795,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() { @@ -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(@jakarta.annotation.Nullable List namespaceArray) { this.namespaceArray = namespaceArray; @@ -829,7 +829,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() { @@ -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(@jakarta.annotation.Nullable List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -855,7 +855,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() { @@ -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(@jakarta.annotation.Nullable String prefixNsString) { this.prefixNsString = prefixNsString; @@ -882,7 +882,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -908,7 +908,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() { @@ -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(@jakarta.annotation.Nullable Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -934,7 +934,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() { @@ -942,7 +942,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; @@ -968,7 +968,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() { @@ -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(@jakarta.annotation.Nullable List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -1002,7 +1002,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() { @@ -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(@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 8afd2f5020e0..610378be1a19 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesArray.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index cec74b5439cf..0b2756a13a21 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 @@ -54,7 +54,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() { @@ -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/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 864af85f5253..20dc974d3eb0 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 5fc006ae735d..c8a10cd27d4c 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 @@ -112,7 +112,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() { @@ -120,7 +120,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; @@ -145,7 +145,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() { @@ -153,7 +153,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; @@ -178,7 +178,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() { @@ -186,7 +186,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; @@ -211,7 +211,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() { @@ -219,7 +219,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; @@ -244,7 +244,7 @@ public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List> getMapArrayInteger() { @@ -252,7 +252,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; @@ -277,7 +277,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() { @@ -285,7 +285,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; @@ -310,7 +310,7 @@ public AdditionalPropertiesClass putMapMapStringItem(String key, Map> getMapMapString() { @@ -318,7 +318,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; @@ -343,7 +343,7 @@ public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map> getMapMapAnytype() { @@ -351,7 +351,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; @@ -368,7 +368,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() { @@ -376,7 +376,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; @@ -393,7 +393,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() { @@ -401,7 +401,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; @@ -418,7 +418,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() { @@ -426,7 +426,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 c0628c3f7990..139c4eb93231 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesNumber.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 87d3efd48e48..e3bc73e29471 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 @@ -54,7 +54,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() { @@ -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/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 f5bb8adb470f..0e5595951903 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 @@ -53,7 +53,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() { @@ -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/AdditionalPropertiesString.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index b2ac0ee76ee1..9ecc332272b2 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 @@ -53,7 +53,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() { @@ -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/Animal.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index 4dfe4513e004..093d8446f101 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 @@ -69,7 +69,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() { @@ -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; @@ -94,7 +94,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() { @@ -102,7 +102,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 6ce9b83c67ef..c2d684e2fcfc 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 @@ -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/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 f36135202ce4..28fbf8c2d5b3 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 @@ -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/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 2453f58cc35b..e0175f2d03db 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 @@ -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/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 07c91941dbfc..d9c0cb3a9a03 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 @@ -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/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 5682f213b657..e4864216208c 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 6e1800185d62..f4ea08ab72bd 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 @@ -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/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 78cc077529bf..249f14c58a69 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 74dd4385a903..bc883861da55 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 99fe381a8761..76b0c5cac91d 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 9c932cb01bde..63cc53e66020 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 @@ -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/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 e6cca680c1f6..95af14f9eb16 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 @@ -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/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 da91df336aa4..6c7c1718ee75 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 @@ -216,7 +216,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() { @@ -224,7 +224,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; @@ -241,7 +241,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() { @@ -249,7 +249,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; @@ -266,7 +266,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() { @@ -274,7 +274,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; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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 a05efa3c9138..28eae4a9c518 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 @@ -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/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 c62bf47bde87..c17bd7a09c16 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 @@ -123,7 +123,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() { @@ -131,7 +131,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -202,7 +202,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() { @@ -210,7 +210,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; @@ -229,7 +229,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() { @@ -237,7 +237,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; @@ -256,7 +256,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() { @@ -264,7 +264,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; @@ -281,7 +281,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() { @@ -289,7 +289,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; @@ -306,7 +306,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() { @@ -314,7 +314,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; @@ -331,7 +331,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() { @@ -339,7 +339,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; @@ -356,7 +356,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() { @@ -364,7 +364,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; @@ -381,7 +381,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() { @@ -389,7 +389,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; @@ -406,7 +406,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() { @@ -414,7 +414,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; @@ -431,7 +431,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() { @@ -439,7 +439,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; @@ -456,7 +456,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() { @@ -464,7 +464,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 ef912674bde7..dd34438d5ed8 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 @@ -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; @@ -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() { @@ -76,7 +76,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 ec9e81743d7e..99c72041af48 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 b480c7d542dc..d0219f2e2173 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -123,7 +123,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() { @@ -131,7 +131,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 2a69b55cfd63..7a268eb4a14e 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 f080773624a8..1255ae56e3d0 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 21f812364f02..45f97655028f 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c24868360f69..dfef26ef7fbf 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b7ca4af717d3..6901c048a0aa 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 dce25ead2111..4c67288873e4 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 @@ -58,8 +58,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; @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -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/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 a91f0c49358f..c0748fb6a1c6 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 64b26edbd416..54308806a1d8 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 3ba67944ba15..d4122b6599f2 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 2a0fdfd8c10c..91c273899150 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 @@ -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/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 d1147f1fda3a..eee83de7eadb 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 @@ -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; @@ -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/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 2d571740d952..4ab74a64c278 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c46a759548fa..666772aed4be 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 0548be6b0e30..10f17b5ff913 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 @@ -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/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 39766e339f9f..d482405dc446 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 @@ -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/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 006f4222a31e..f342e9bcd3a5 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 f10791f784a2..92df8c1d5b31 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 @@ -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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f99361d4d0aa..0536c33fe905 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -65,7 +65,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() { @@ -73,7 +73,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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java index 26d46cb0ac94..6d8944fce3d6 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java @@ -56,7 +56,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() { @@ -64,7 +64,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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Animal.java index 5ef4c91df203..19755da7cd80 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6ce9b83c67ef..c2d684e2fcfc 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index f36135202ce4..28fbf8c2d5b3 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayTest.java index 2453f58cc35b..e0175f2d03db 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Capitalization.java index 5682f213b657..e4864216208c 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Capitalization.java @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Cat.java index 33872f360268..be8e7fd55e9b 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Cat.java @@ -61,7 +61,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() { @@ -69,7 +69,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Category.java index 78cc077529bf..249f14c58a69 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Category.java @@ -55,7 +55,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() { @@ -63,7 +63,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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ChildWithNullable.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ChildWithNullable.java index ec7b8f7e313d..f0910711118d 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ChildWithNullable.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ChildWithNullable.java @@ -62,7 +62,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() { @@ -70,7 +70,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-supportVertxFuture/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ClassModel.java index 74dd4385a903..bc883861da55 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ClassModel.java @@ -50,7 +50,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() { @@ -58,7 +58,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Client.java index 99fe381a8761..76b0c5cac91d 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Client.java @@ -50,7 +50,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() { @@ -58,7 +58,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-supportVertxFuture/src/main/java/org/openapitools/client/model/DeprecatedObject.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/DeprecatedObject.java index 667be6e27ff1..d06066490e98 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/DeprecatedObject.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/DeprecatedObject.java @@ -52,7 +52,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() { @@ -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-supportVertxFuture/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Dog.java index 9c932cb01bde..63cc53e66020 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/EnumArrays.java index e6cca680c1f6..95af14f9eb16 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/EnumTest.java index fd1ad1a42dc3..905dfb17455d 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/EnumTest.java @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,14 +344,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; } @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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-supportVertxFuture/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java index 16f1b68bbcd6..4e6af414357f 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FakeBigDecimalMap200Response.java @@ -59,7 +59,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() { @@ -67,7 +67,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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index a05efa3c9138..28eae4a9c518 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Foo.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Foo.java index c85972a7b23e..9da778b7804c 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Foo.java @@ -50,7 +50,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() { @@ -58,7 +58,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-supportVertxFuture/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java index 1f2159ab4ec3..48668506357c 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java @@ -52,7 +52,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() { @@ -60,7 +60,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-supportVertxFuture/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FormatTest.java index 5e18bcfc2fde..89e3d930d0e9 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/FormatTest.java @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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) { * @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() { @@ -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; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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-supportVertxFuture/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index ef912674bde7..dd34438d5ed8 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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; @@ -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() { @@ -76,7 +76,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-supportVertxFuture/src/main/java/org/openapitools/client/model/HealthCheckResult.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/HealthCheckResult.java index e7acb5847d1b..6c68cba6f3cb 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/HealthCheckResult.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/HealthCheckResult.java @@ -60,14 +60,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-supportVertxFuture/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/MapTest.java index ec9e81743d7e..99c72041af48 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/MapTest.java @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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-supportVertxFuture/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index b480c7d542dc..d0219f2e2173 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -123,7 +123,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() { @@ -131,7 +131,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Model200Response.java index 2a69b55cfd63..7a268eb4a14e 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Model200Response.java @@ -56,7 +56,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() { @@ -64,7 +64,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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f080773624a8..1255ae56e3d0 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelFile.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelFile.java index 21f812364f02..45f97655028f 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelFile.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelFile.java @@ -51,7 +51,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() { @@ -59,7 +59,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-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelList.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelList.java index c24868360f69..dfef26ef7fbf 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelList.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelList.java @@ -51,7 +51,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() { @@ -59,7 +59,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-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelReturn.java index b7ca4af717d3..6901c048a0aa 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -51,7 +51,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() { @@ -59,7 +59,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Name.java index dce25ead2111..4c67288873e4 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Name.java @@ -58,8 +58,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; @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/NullableClass.java index 62877f172a81..4d9dc0c53706 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/NullableClass.java @@ -124,14 +124,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; } @@ -157,14 +157,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; } @@ -190,14 +190,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; } @@ -223,14 +223,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; } @@ -256,14 +256,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; } @@ -289,14 +289,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; } @@ -334,14 +334,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; } @@ -379,14 +379,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; } @@ -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; @@ -457,14 +457,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; } @@ -502,14 +502,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; } @@ -537,7 +537,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() { @@ -545,7 +545,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-supportVertxFuture/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/NumberOnly.java index a91f0c49358f..c0748fb6a1c6 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -51,7 +51,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() { @@ -59,7 +59,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-supportVertxFuture/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java index 82e32c8a38c1..a7865e2253d9 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Order.java index 64b26edbd416..54308806a1d8 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Order.java @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterComposite.java index 3ba67944ba15..d4122b6599f2 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java index 4dd4534e941e..db2c78fc32b7 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java @@ -51,7 +51,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() { @@ -59,7 +59,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-supportVertxFuture/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ParentWithNullable.java index b59dbe0c7346..d85b036b919a 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,14 +135,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Pet.java index 2a0fdfd8c10c..91c273899150 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index d1147f1fda3a..eee83de7eadb 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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; @@ -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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/SpecialModelName.java index 1e8cf30bc343..9ac2edeb2468 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -51,7 +51,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() { @@ -59,7 +59,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-supportVertxFuture/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Tag.java index c46a759548fa..666772aed4be 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/Tag.java @@ -55,7 +55,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() { @@ -63,7 +63,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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java index 59a40a36e963..9e49fc2ab4bb 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/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/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java index 006f4222a31e..f342e9bcd3a5 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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/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 f99361d4d0aa..0536c33fe905 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 @@ -65,7 +65,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() { @@ -73,7 +73,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/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 26d46cb0ac94..6d8944fce3d6 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 5ef4c91df203..19755da7cd80 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 @@ -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/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 6ce9b83c67ef..c2d684e2fcfc 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 @@ -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/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 f36135202ce4..28fbf8c2d5b3 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 @@ -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/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 2453f58cc35b..e0175f2d03db 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 @@ -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/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 5682f213b657..e4864216208c 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 33872f360268..be8e7fd55e9b 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 78cc077529bf..249f14c58a69 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 ec7b8f7e313d..f0910711118d 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 74dd4385a903..bc883861da55 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 99fe381a8761..76b0c5cac91d 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 667be6e27ff1..d06066490e98 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 @@ -52,7 +52,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() { @@ -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/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 9c932cb01bde..63cc53e66020 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 @@ -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/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 e6cca680c1f6..95af14f9eb16 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 @@ -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/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 fd1ad1a42dc3..905dfb17455d 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 @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,14 +344,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; } @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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 16f1b68bbcd6..4e6af414357f 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 @@ -59,7 +59,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() { @@ -67,7 +67,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/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 a05efa3c9138..28eae4a9c518 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 @@ -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/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 c85972a7b23e..9da778b7804c 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 1f2159ab4ec3..48668506357c 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 5e18bcfc2fde..89e3d930d0e9 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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) { * @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() { @@ -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; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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 ef912674bde7..dd34438d5ed8 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 @@ -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; @@ -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() { @@ -76,7 +76,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 e7acb5847d1b..6c68cba6f3cb 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 @@ -60,14 +60,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 ec9e81743d7e..99c72041af48 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 b480c7d542dc..d0219f2e2173 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -123,7 +123,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() { @@ -131,7 +131,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 2a69b55cfd63..7a268eb4a14e 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 f080773624a8..1255ae56e3d0 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 21f812364f02..45f97655028f 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c24868360f69..dfef26ef7fbf 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b7ca4af717d3..6901c048a0aa 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 dce25ead2111..4c67288873e4 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 @@ -58,8 +58,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; @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -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/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 62877f172a81..4d9dc0c53706 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 @@ -124,14 +124,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; } @@ -157,14 +157,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; } @@ -190,14 +190,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; } @@ -223,14 +223,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; } @@ -256,14 +256,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; } @@ -289,14 +289,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; } @@ -334,14 +334,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; } @@ -379,14 +379,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; } @@ -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; @@ -457,14 +457,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; } @@ -502,14 +502,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; } @@ -537,7 +537,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() { @@ -545,7 +545,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 a91f0c49358f..c0748fb6a1c6 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 82e32c8a38c1..a7865e2253d9 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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 64b26edbd416..54308806a1d8 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 3ba67944ba15..d4122b6599f2 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 4dd4534e941e..db2c78fc32b7 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b59dbe0c7346..d85b036b919a 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,14 +135,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 2a0fdfd8c10c..91c273899150 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 @@ -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/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 d1147f1fda3a..eee83de7eadb 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 @@ -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; @@ -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/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 1e8cf30bc343..9ac2edeb2468 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c46a759548fa..666772aed4be 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 59a40a36e963..9e49fc2ab4bb 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 @@ -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/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 006f4222a31e..f342e9bcd3a5 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 a90c962979df..649ac5b808f4 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -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(@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 ed656c051154..a4c5dc440244 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 @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@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 5d953f427297..a6079a052a2f 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 @@ -68,7 +68,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() { @@ -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(@jakarta.annotation.Nonnull String className) { this.className = className; @@ -93,7 +93,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() { @@ -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(@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 a151adc7cecc..3f68c19abe62 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 @@ -62,7 +62,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() { @@ -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(@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 4fc87ba03b53..83a78a644596 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 @@ -62,7 +62,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() { @@ -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(@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 9b59d439f180..bdd1cbc6aa78 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 @@ -72,7 +72,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() { @@ -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(@jakarta.annotation.Nullable List arrayOfString) { this.arrayOfString = arrayOfString; @@ -105,7 +105,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() { @@ -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(@jakarta.annotation.Nullable List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -138,7 +138,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() { @@ -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(@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 e25fddbdc25c..5fffe092927b 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -100,7 +100,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() { @@ -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(@jakarta.annotation.Nullable String capitalCamel) { this.capitalCamel = capitalCamel; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 d90e7608a7fd..623afc5cd55b 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 a40eb2dde2e5..b42bb6a12453 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 a1ab3b1e6782..ed50d7e7f7d3 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 1bfbadd89a53..27ecd55725e2 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 34cee327d689..c04a3457e5c5 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 efd8cae5654e..8d483ec3e8a9 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 @@ -52,7 +52,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() { @@ -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(@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 c7826d226a5a..1d04776ca4d9 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 @@ -61,7 +61,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() { @@ -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(@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 463d95df3c0c..2006c0857f9a 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 @@ -128,7 +128,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() { @@ -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(@jakarta.annotation.Nullable JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; @@ -161,7 +161,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() { @@ -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(@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 988251aa876b..03597917fa3f 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 @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -288,7 +288,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() { @@ -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(@jakarta.annotation.Nullable EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,7 +344,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() { @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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 239661740b10..29c8e25c0082 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 @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -92,7 +92,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() { @@ -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(@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 5668a7aea47c..40c3c6e52ff4 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 @@ -59,7 +59,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() { @@ -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(@jakarta.annotation.Nullable ModelFile _file) { this._file = _file; @@ -92,7 +92,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() { @@ -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(@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 827cbd6bdfe8..6bbeb3b5ebdb 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 14364cf9373e..a7b34141a2ed 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 106d38f692c0..9b861c8a1a4b 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -160,7 +160,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() { @@ -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(@jakarta.annotation.Nullable Integer int32) { this.int32 = int32; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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; @@ -266,7 +266,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() { @@ -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(@jakarta.annotation.Nullable Double _double) { this._double = _double; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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 98cd4322dfe0..2a4c04441ffd 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 @@ -62,7 +62,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() { @@ -76,7 +76,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 8d9de7e74751..9c0ac6478fe3 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 @@ -60,7 +60,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 8610793925ee..fbb0c2a250aa 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -143,7 +143,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() { @@ -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(@jakarta.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 3b3b53bd6f44..633c1a3f7ec8 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -90,7 +90,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() { @@ -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(@jakarta.annotation.Nullable OffsetDateTime dateTime) { this.dateTime = dateTime; @@ -123,7 +123,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() { @@ -131,7 +131,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 d0f8853555e8..4259b8d2d6f2 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 @@ -56,7 +56,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() { @@ -64,7 +64,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; @@ -81,7 +81,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() { @@ -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(@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 bf4359eeee13..093fca7f6804 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String type) { this.type = type; @@ -111,7 +111,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() { @@ -119,7 +119,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 f7f930b5f811..11ec90d12c8b 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 70d61225642c..6b2b536f0342 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b44e351a32f3..97d20efa034d 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 1ba9f4b9efbc..572c8c455ffd 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 @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -96,7 +96,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() { @@ -116,7 +116,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() { @@ -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(@jakarta.annotation.Nullable String property) { this.property = property; @@ -135,7 +135,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 e7b2b966bda6..0e1b52a8814b 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 @@ -127,7 +127,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() { @@ -160,7 +160,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() { @@ -193,7 +193,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() { @@ -226,7 +226,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() { @@ -259,7 +259,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() { @@ -292,7 +292,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() { @@ -337,7 +337,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() { @@ -382,7 +382,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() { @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -460,7 +460,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() { @@ -505,7 +505,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 */ @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() { @@ -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(@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 ecd1681390eb..e842bfd7f754 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 4a49fa52b381..4c78d29d6c6e 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -97,7 +97,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() { @@ -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(@jakarta.annotation.Nullable BigDecimal id) { this.id = id; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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 87736bbf7c43..581de823139f 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 @@ -113,7 +113,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() { @@ -121,7 +121,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 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() { @@ -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(@jakarta.annotation.Nullable Long petId) { this.petId = petId; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 6c8f9c1cf227..246cc9e33299 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -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(@jakarta.annotation.Nullable String myString) { this.myString = myString; @@ -111,7 +111,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() { @@ -119,7 +119,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 9e882650ff8d..ee662372ad09 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 b77f962e34ce..c7397c9497b4 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,7 +135,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 972cf1acaa13..a20cf1b0f147 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 @@ -120,7 +120,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() { @@ -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(@jakarta.annotation.Nullable Long id) { this.id = id; @@ -145,7 +145,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() { @@ -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(@jakarta.annotation.Nullable Category category) { this.category = category; @@ -170,7 +170,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() { @@ -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(@jakarta.annotation.Nonnull String name) { this.name = name; @@ -203,7 +203,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() { @@ -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(@jakarta.annotation.Nonnull Set photoUrls) { this.photoUrls = photoUrls; @@ -237,7 +237,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() { @@ -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(@jakarta.annotation.Nullable List tags) { this.tags = tags; @@ -262,7 +262,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() { @@ -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(@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 8d99f52aca93..49cbb8b0e0ce 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 @@ -59,7 +59,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() { @@ -79,7 +79,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() { @@ -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(@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 469b99502570..0ab26e1be2bc 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 837a1aa18ff2..c72669d22575 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 @@ -55,7 +55,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() { @@ -63,7 +63,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; @@ -80,7 +80,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() { @@ -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(@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 296b99cb24f6..c7e901faf9ec 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 @@ -55,7 +55,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() { @@ -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/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 0d670d5492a6..6005ea81bee5 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -110,7 +110,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() { @@ -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(@jakarta.annotation.Nullable String username) { this.username = username; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 cb9773e1e995..50a6e341b9f4 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 @@ -81,7 +81,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() { @@ -108,7 +108,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() { @@ -116,7 +116,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; @@ -139,7 +139,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() { @@ -166,7 +166,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() { @@ -174,7 +174,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; @@ -191,7 +191,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() { @@ -199,7 +199,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 92f6253c236c..f0d188665957 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 @@ -67,7 +67,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() { @@ -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; @@ -101,7 +101,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -109,7 +109,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 314507782715..840a066677a4 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 @@ -58,7 +58,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() { @@ -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; @@ -84,7 +84,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() { @@ -92,7 +92,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 9455a7f8a40d..294c669464e9 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 @@ -70,7 +70,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() { @@ -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; @@ -96,7 +96,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() { @@ -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/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 04b54ae2a476..80bcd457ada8 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 @@ -64,7 +64,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() { @@ -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/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 96e759187846..292ca20d8d41 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 @@ -64,7 +64,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() { @@ -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/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 c32f88c223ae..bb407c4518b0 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 @@ -74,7 +74,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() { @@ -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; @@ -108,7 +108,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() { @@ -116,7 +116,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; @@ -142,7 +142,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() { @@ -150,7 +150,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 e5f0a5b3ea06..f124bc56c545 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 @@ -77,7 +77,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() { @@ -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; @@ -103,7 +103,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() { @@ -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; @@ -129,7 +129,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() { @@ -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(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -155,7 +155,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() { @@ -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(@javax.annotation.Nullable String capitalSnake) { this.capitalSnake = capitalSnake; @@ -181,7 +181,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() { @@ -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(@javax.annotation.Nullable String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -207,7 +207,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() { @@ -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(@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 e88c4a960d3f..5f0e8e2056fc 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 @@ -63,7 +63,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() { @@ -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/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 05779efcad46..0fd0b765f261 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 @@ -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.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() { @@ -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/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 c0b1fe3d4843..6a6e845b3759 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 @@ -64,7 +64,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() { @@ -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/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 e2948579bfef..ba1bb85d00c5 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 @@ -53,7 +53,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() { @@ -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/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 90d78dd5a4f7..3c174b1f9ed8 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 @@ -52,7 +52,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() { @@ -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/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 b79f5e1d63d7..6e01bab8f08a 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 @@ -54,7 +54,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() { @@ -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/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 14aedb45b6b4..512d8611f107 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 @@ -63,7 +63,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() { @@ -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/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 9c5613ab92d9..1db13240b86f 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 @@ -130,7 +130,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() { @@ -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; @@ -164,7 +164,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() { @@ -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(@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 24706aaea465..ac1503eb6075 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 @@ -240,7 +240,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() { @@ -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; @@ -266,7 +266,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() { @@ -274,7 +274,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; @@ -292,7 +292,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() { @@ -300,7 +300,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; @@ -318,7 +318,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() { @@ -326,7 +326,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; @@ -350,7 +350,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() { @@ -378,7 +378,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() { @@ -386,7 +386,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; @@ -404,7 +404,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() { @@ -412,7 +412,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; @@ -430,7 +430,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() { @@ -438,7 +438,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 556398c7b592..f5328c997575 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 @@ -61,7 +61,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() { @@ -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; @@ -95,7 +95,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() { @@ -103,7 +103,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 ace595944b7b..d484eeda0b2d 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 @@ -61,7 +61,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() { @@ -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; @@ -95,7 +95,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() { @@ -103,7 +103,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 9c72045fa19f..022b9fd557a0 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 @@ -52,7 +52,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() { @@ -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/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 4624fba54932..edf2cc6e828b 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 @@ -54,7 +54,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() { @@ -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/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 8a0b1508cfc6..2f3f2d9419b7 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 @@ -135,7 +135,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() { @@ -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; @@ -163,7 +163,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() { @@ -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; @@ -189,7 +189,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() { @@ -197,7 +197,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; @@ -217,7 +217,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() { @@ -225,7 +225,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; @@ -245,7 +245,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() { @@ -253,7 +253,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; @@ -273,7 +273,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() { @@ -281,7 +281,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; @@ -299,7 +299,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() { @@ -307,7 +307,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; @@ -325,7 +325,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() { @@ -333,7 +333,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; @@ -351,7 +351,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() { @@ -359,7 +359,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; @@ -377,7 +377,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() { @@ -385,7 +385,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; @@ -403,7 +403,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() { @@ -411,7 +411,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; @@ -429,7 +429,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() { @@ -437,7 +437,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; @@ -455,7 +455,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() { @@ -463,7 +463,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; @@ -481,7 +481,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() { @@ -489,7 +489,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; @@ -507,7 +507,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() { @@ -515,7 +515,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; @@ -533,7 +533,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() { @@ -541,7 +541,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 9b8481be246b..cb7979a0f00a 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 @@ -64,7 +64,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() { @@ -79,7 +79,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 287113fe425f..22407af20cb3 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 @@ -63,7 +63,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 e10ede1f927d..5c36056ce6d3 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 @@ -112,7 +112,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() { @@ -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; @@ -146,7 +146,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() { @@ -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; @@ -180,7 +180,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() { @@ -188,7 +188,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; @@ -214,7 +214,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() { @@ -222,7 +222,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 1ba95b2589b0..af7746656cd0 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 @@ -67,7 +67,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() { @@ -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; @@ -93,7 +93,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() { @@ -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; @@ -127,7 +127,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() { @@ -135,7 +135,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 d86c6774594b..9e59865ab159 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 @@ -59,7 +59,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() { @@ -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 @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() { @@ -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/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 233fa43fef7e..028614475551 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 @@ -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/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 00f137ffc129..f063b1c104d1 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 @@ -54,7 +54,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() { @@ -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/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 04c0031109b9..0d535b648895 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 @@ -53,7 +53,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() { @@ -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/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 86646d3353ca..6643563a9154 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 @@ -54,7 +54,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() { @@ -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/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 884baccb68b6..8f4e01b287f0 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 @@ -80,7 +80,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() { @@ -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(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -100,7 +100,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() { @@ -121,7 +121,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() { @@ -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(@javax.annotation.Nullable String property) { this.property = property; @@ -141,7 +141,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 f55d76b222a7..7590ec2f6a1f 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 @@ -129,7 +129,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() { @@ -163,7 +163,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() { @@ -197,7 +197,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() { @@ -231,7 +231,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() { @@ -265,7 +265,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() { @@ -299,7 +299,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() { @@ -345,7 +345,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() { @@ -391,7 +391,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() { @@ -427,7 +427,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() { @@ -435,7 +435,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; @@ -471,7 +471,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() { @@ -517,7 +517,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() { @@ -553,7 +553,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() { @@ -561,7 +561,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 6a97846bacc2..1084b52aa363 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 @@ -53,7 +53,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() { @@ -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/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 5e37a6add31c..e8c03d64047b 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 @@ -72,7 +72,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() { @@ -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; @@ -100,7 +100,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() { @@ -108,7 +108,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; @@ -128,7 +128,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() { @@ -136,7 +136,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; @@ -164,7 +164,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() { @@ -172,7 +172,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 4a653e68a4f6..a76782320088 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 @@ -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/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 895fe2363507..9afa9aa7ebc5 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 @@ -63,7 +63,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() { @@ -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; @@ -89,7 +89,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() { @@ -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; @@ -115,7 +115,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() { @@ -123,7 +123,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 40491e18d1fa..17900bbf5413 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 @@ -53,7 +53,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() { @@ -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/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 a2df381276a4..946b66eaa64f 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 @@ -106,7 +106,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() { @@ -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; @@ -138,7 +138,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 83244ea8acaf..c6d9bef024ce 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 @@ -122,7 +122,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -217,7 +217,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; @@ -243,7 +243,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() { @@ -251,7 +251,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; @@ -269,7 +269,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() { @@ -277,7 +277,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 46dcb78e0f92..ca2a3efa7206 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 @@ -61,7 +61,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() { @@ -82,7 +82,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() { @@ -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(@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 1fbc4b115403..4062894a1e97 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 @@ -53,7 +53,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() { @@ -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/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 c5d2f12678f0..e8a3e8183fb9 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 @@ -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/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 9fb025ce0474..5b733844b2e6 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 @@ -57,7 +57,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() { @@ -65,7 +65,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 2da3ee0db04e..23442787c9ed 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 @@ -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/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 fffa31c60b0f..c5c1a4729b37 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 @@ -65,7 +65,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() { @@ -73,7 +73,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/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 7917de6283ed..3e834b79c707 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 d2b30b7be5e2..c57ba7240196 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 @@ -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/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 48a9566027ca..6872779a0244 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 @@ -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/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 b3618cd6bb37..4cb5c0a30b2b 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 @@ -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/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 95b37fd27250..77a277749ee9 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 @@ -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/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 69deb4a1f44d..603d62302dd0 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 1811528ef383..52c80d3d0318 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 2c4f93c11850..069770946bde 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 2d4526d4cc9d..f9513c201f32 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 1d2b984a2cdb..df3587f2cb18 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 1f741134586d..3aa9e08d8629 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 6a376d1d3c23..2ac6efe31ae5 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 @@ -52,7 +52,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() { @@ -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/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 feabffb7d9ed..cf5655a34e43 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 @@ -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/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 1dd2eb4af2f0..c960c69487d8 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 @@ -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/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 29c2ea66790b..7467156dd32b 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 @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,7 +344,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() { @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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 537bf077a8e0..d0c52e55864b 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 @@ -59,7 +59,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() { @@ -67,7 +67,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/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 6c9547de0381..400953904eb8 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 @@ -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/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 1343e29a90e2..58c0c144e2cd 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 b8e4d184c0fb..9870f6d3a4d5 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 72ef0dc8ebdf..fa28fe184570 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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) { * @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() { @@ -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; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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 1511f85c7510..19aa41b36682 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 @@ -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() { @@ -76,7 +76,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 54fe28228059..1dc69ad7323d 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 @@ -60,7 +60,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 4f8da332db1a..728ef0e3f587 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 2f4808e37caf..a5aa126c16b2 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -123,7 +123,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() { @@ -131,7 +131,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 5b3e06aa9827..de54dbab7096 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 2fdce1434838..a83ea02a10d9 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 e573334caab3..638a21db0589 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 a4f2f2219462..0a30e58fe241 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c4f64dc9a66a..6217c43b9dcb 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 5132a575a66b..5c2e53284899 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 @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -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/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 4fa4b531ce2b..b78b3f685e68 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 @@ -127,7 +127,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() { @@ -160,7 +160,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() { @@ -193,7 +193,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() { @@ -226,7 +226,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() { @@ -259,7 +259,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() { @@ -292,7 +292,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() { @@ -337,7 +337,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() { @@ -382,7 +382,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() { @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -460,7 +460,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() { @@ -505,7 +505,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/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 93f1be9d1d96..ee6767819fd6 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 8031fc620546..af1347e9cd65 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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 a45e221a64e1..06796399c780 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 758a2e7dcd6b..df1c3898b28f 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 bb003e14871e..c9d09b761aa3 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 6b90f664f54a..81102ce36e93 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,7 +135,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 d6bb563afc19..2f23d76354f6 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 @@ -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/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 50e9c6eac9c3..4a04863cef88 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 @@ -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/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 f77d213e8b7b..03eaec13fbf8 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 e5411e1aa51f..5b0f5deb6132 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 598d5be46bba..839c0fec3f8c 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 @@ -55,7 +55,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() { @@ -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(@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 d5089f07be6a..b5ad5a3154bb 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 a4b13544673b..ba34e6bd5879 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 @@ -65,7 +65,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() { @@ -73,7 +73,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/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 7917de6283ed..3e834b79c707 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 d2b30b7be5e2..c57ba7240196 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 @@ -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/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 5f8a004d80d8..d903902b0fac 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 @@ -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/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 9b87a52cef4b..8a3e88bef4bf 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 @@ -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/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 3a595fa67767..cec45a64d2b4 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 @@ -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/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 69deb4a1f44d..603d62302dd0 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -125,7 +125,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() { @@ -133,7 +133,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; @@ -150,7 +150,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() { @@ -158,7 +158,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; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -200,7 +200,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() { @@ -208,7 +208,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 1811528ef383..52c80d3d0318 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 @@ -61,7 +61,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() { @@ -69,7 +69,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 2c4f93c11850..069770946bde 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 2d4526d4cc9d..f9513c201f32 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 @@ -62,7 +62,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() { @@ -70,7 +70,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 1d2b984a2cdb..df3587f2cb18 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 1f741134586d..3aa9e08d8629 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 6a376d1d3c23..2ac6efe31ae5 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 @@ -52,7 +52,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() { @@ -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/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 feabffb7d9ed..cf5655a34e43 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 @@ -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/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 0590d680fec0..e46d171d7ab1 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 @@ -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/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 29c2ea66790b..7467156dd32b 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 @@ -238,7 +238,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() { @@ -246,7 +246,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; @@ -263,7 +263,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() { @@ -271,7 +271,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; @@ -313,7 +313,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() { @@ -321,7 +321,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; @@ -344,7 +344,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() { @@ -371,7 +371,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() { @@ -379,7 +379,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; @@ -396,7 +396,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() { @@ -404,7 +404,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; @@ -421,7 +421,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() { @@ -429,7 +429,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 5b295cd44c14..5aecb559dbae 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 @@ -59,7 +59,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() { @@ -67,7 +67,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/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 5f861d37f8df..4ba01a505bf7 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 @@ -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/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 1343e29a90e2..58c0c144e2cd 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 @@ -50,7 +50,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() { @@ -58,7 +58,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 b8e4d184c0fb..9870f6d3a4d5 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 @@ -52,7 +52,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() { @@ -60,7 +60,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 72ef0dc8ebdf..fa28fe184570 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 @@ -133,7 +133,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() { @@ -141,7 +141,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -212,7 +212,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() { @@ -220,7 +220,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; @@ -239,7 +239,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() { @@ -247,7 +247,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) { * @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() { @@ -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; @@ -291,7 +291,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() { @@ -299,7 +299,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; @@ -316,7 +316,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() { @@ -324,7 +324,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; @@ -341,7 +341,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() { @@ -349,7 +349,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; @@ -366,7 +366,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() { @@ -374,7 +374,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; @@ -391,7 +391,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() { @@ -399,7 +399,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; @@ -416,7 +416,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() { @@ -424,7 +424,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; @@ -441,7 +441,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() { @@ -449,7 +449,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; @@ -466,7 +466,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() { @@ -474,7 +474,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; @@ -491,7 +491,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() { @@ -499,7 +499,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; @@ -516,7 +516,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() { @@ -524,7 +524,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 1511f85c7510..19aa41b36682 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 @@ -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() { @@ -76,7 +76,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 54fe28228059..1dc69ad7323d 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 @@ -60,7 +60,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 6635edc3eb34..1428ea74f60e 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -176,7 +176,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() { @@ -184,7 +184,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; @@ -209,7 +209,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() { @@ -217,7 +217,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 4f2b05ddc943..11f0c75b6e84 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -123,7 +123,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() { @@ -131,7 +131,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 5b3e06aa9827..de54dbab7096 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 @@ -56,7 +56,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() { @@ -64,7 +64,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/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 2fdce1434838..a83ea02a10d9 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 e573334caab3..638a21db0589 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 a4f2f2219462..0a30e58fe241 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 c4f64dc9a66a..6217c43b9dcb 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 5132a575a66b..5c2e53284899 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 @@ -77,7 +77,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() { @@ -85,7 +85,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; @@ -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/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 3ea75832f02f..ea3a9ce01321 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 @@ -127,7 +127,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() { @@ -160,7 +160,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() { @@ -193,7 +193,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() { @@ -226,7 +226,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() { @@ -259,7 +259,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() { @@ -292,7 +292,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() { @@ -337,7 +337,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() { @@ -382,7 +382,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() { @@ -417,7 +417,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() { @@ -425,7 +425,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; @@ -460,7 +460,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() { @@ -505,7 +505,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/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 93f1be9d1d96..ee6767819fd6 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 8c871297ab05..199803cfd2ee 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 @@ -70,7 +70,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() { @@ -78,7 +78,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; @@ -124,7 +124,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() { @@ -132,7 +132,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; @@ -159,7 +159,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() { @@ -167,7 +167,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 a45e221a64e1..06796399c780 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 @@ -113,7 +113,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() { @@ -121,7 +121,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; @@ -163,7 +163,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() { @@ -171,7 +171,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; @@ -188,7 +188,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() { @@ -196,7 +196,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; @@ -213,7 +213,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() { @@ -221,7 +221,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; @@ -238,7 +238,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() { @@ -246,7 +246,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 758a2e7dcd6b..df1c3898b28f 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -111,7 +111,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() { @@ -119,7 +119,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 bb003e14871e..c9d09b761aa3 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 6b90f664f54a..81102ce36e93 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 @@ -104,7 +104,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() { @@ -112,7 +112,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; @@ -135,7 +135,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 1baadc449a6e..bb19131ea51d 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 @@ -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/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 50e9c6eac9c3..4a04863cef88 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 @@ -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/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 f77d213e8b7b..03eaec13fbf8 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 @@ -51,7 +51,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() { @@ -59,7 +59,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 e5411e1aa51f..5b0f5deb6132 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 @@ -55,7 +55,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() { @@ -63,7 +63,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/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 598d5be46bba..839c0fec3f8c 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 @@ -55,7 +55,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() { @@ -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(@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 d5089f07be6a..b5ad5a3154bb 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 @@ -85,7 +85,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() { @@ -93,7 +93,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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 d66c3a60265f..bfbe607974dc 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 @@ -66,7 +66,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() { @@ -74,7 +74,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 2b7fdc946e75..063a337a9e91 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 @@ -67,7 +67,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() { @@ -75,7 +75,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 7eb909160bff..7a453b0a431f 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 @@ -65,7 +65,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() { @@ -73,7 +73,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 c0b93e33fb36..3f350253099e 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 @@ -61,7 +61,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() { @@ -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(@javax.annotation.Nullable Long id) { this.id = id; @@ -87,7 +87,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() { @@ -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/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 302471036fc8..5432f052dfd2 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 @@ -67,7 +67,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() { @@ -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(@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; @@ -119,7 +119,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() { @@ -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/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 f4eab45a4557..d78429aad2fb 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 @@ -119,7 +119,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() { @@ -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 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; @@ -171,7 +171,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() { @@ -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(@javax.annotation.Nullable Integer quantity) { this.quantity = quantity; @@ -197,7 +197,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() { @@ -205,7 +205,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; @@ -223,7 +223,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() { @@ -231,7 +231,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) { */ @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() { @@ -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/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 f797b6f8774a..255884d6a35d 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 @@ -123,7 +123,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() { @@ -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; @@ -149,7 +149,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() { @@ -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(@javax.annotation.Nullable Category category) { this.category = category; @@ -175,7 +175,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() { @@ -183,7 +183,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; @@ -209,7 +209,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() { @@ -217,7 +217,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; @@ -243,7 +243,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() { @@ -251,7 +251,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; @@ -272,7 +272,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() { @@ -281,7 +281,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 916a0d8aff3f..7d641e2aa557 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 @@ -61,7 +61,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() { @@ -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(@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/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 cc19d9b42851..6975d6fc3e50 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 @@ -91,7 +91,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() { @@ -99,7 +99,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; @@ -143,7 +143,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() { @@ -151,7 +151,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; @@ -169,7 +169,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() { @@ -177,7 +177,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; @@ -195,7 +195,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() { @@ -203,7 +203,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; @@ -221,7 +221,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() { @@ -229,7 +229,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; @@ -247,7 +247,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() { @@ -255,7 +255,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) { */ @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() { @@ -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/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 7a4d3097252f..7161d3ac8ca2 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 @@ -60,7 +60,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() { @@ -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 @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() { @@ -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-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 55a545bcfe42..0e5ee97221c0 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 @@ -66,7 +66,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() { @@ -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 @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() { @@ -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 @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() { @@ -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-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 0ed4265f8734..840737e3af46 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 @@ -118,7 +118,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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-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 9e19fa9b54bb..740e8c3f3d55 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 @@ -122,7 +122,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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; @@ -271,7 +271,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() { @@ -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-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 2eefeff6e549..b2a8573f11bc 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 @@ -60,7 +60,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() { @@ -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 @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() { @@ -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-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 53b342521345..152ef11cc201 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 @@ -90,7 +90,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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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 @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() { @@ -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/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 e9a761df01cb..14f4977e3a8e 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 @@ -102,7 +102,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() { @@ -110,7 +110,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; @@ -135,7 +135,7 @@ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map> getMapOfMapProperty() { @@ -143,7 +143,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; @@ -166,7 +166,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() { @@ -193,7 +193,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() { @@ -201,7 +201,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; @@ -218,7 +218,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() { @@ -226,7 +226,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; @@ -251,7 +251,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() { @@ -259,7 +259,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; @@ -276,7 +276,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() { @@ -284,7 +284,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; @@ -309,7 +309,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() { @@ -317,7 +317,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 ec382de22bf7..8d36bbf6b93e 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 @@ -72,7 +72,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() { @@ -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(@javax.annotation.Nonnull String className) { this.className = className; @@ -97,7 +97,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() { @@ -105,7 +105,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 8a1a9c7a915c..4fb3916e9bc6 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 @@ -60,7 +60,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() { @@ -68,7 +68,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; @@ -85,7 +85,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() { @@ -93,7 +93,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 2de9f7af0735..69a9d811b0f2 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 @@ -60,7 +60,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() { @@ -68,7 +68,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; @@ -85,7 +85,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() { @@ -93,7 +93,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 a1d5e44a270c..d44b15bfb237 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 @@ -65,7 +65,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() { @@ -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(@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 a4714902beef..16c2c585cfc8 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 @@ -65,7 +65,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() { @@ -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(@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 174b9b928a49..b1c50ff5fa0a 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 @@ -75,7 +75,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() { @@ -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; @@ -108,7 +108,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() { @@ -116,7 +116,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 * @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() { @@ -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/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 5cf561211470..13a5695b6c30 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 @@ -56,7 +56,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() { @@ -64,7 +64,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 662d5927eb9e..59e2e8b77551 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 @@ -61,7 +61,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() { @@ -69,7 +69,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; @@ -86,7 +86,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() { @@ -94,7 +94,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 4da630e8cb6a..709e92325aff 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 319a099f0a0e..b08bcad3277e 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 @@ -79,7 +79,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() { @@ -87,7 +87,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 * @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() { @@ -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; @@ -129,7 +129,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() { @@ -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(@javax.annotation.Nullable String smallSnake) { this.smallSnake = smallSnake; @@ -154,7 +154,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() { @@ -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; @@ -179,7 +179,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() { @@ -187,7 +187,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/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 d030ec9197a4..67ad27079a0d 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 @@ -69,7 +69,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() { @@ -77,7 +77,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 db00d8f65668..a3495554927a 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 @@ -59,7 +59,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() { @@ -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; @@ -84,7 +84,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() { @@ -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(@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 b037a4abe443..0513013060c6 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 @@ -75,7 +75,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() { @@ -83,7 +83,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; @@ -108,7 +108,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() { @@ -116,7 +116,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 9bc1ecb111b4..bc96dc18d6ae 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 993338995c2f..1fabea0eeda1 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 103734010103..8124cb0c834a 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 @@ -63,7 +63,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() { @@ -71,7 +71,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; @@ -88,7 +88,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() { @@ -96,7 +96,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 b123d6a94ab2..decabf13e1a6 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 1f4d810ff410..f147f647444d 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 @@ -56,7 +56,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() { @@ -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/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 fc5e733bf428..8b86f748a595 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 @@ -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/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 a4349e25c6d8..c6f787d0b1bf 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 @@ -81,7 +81,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() { @@ -89,7 +89,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; @@ -112,7 +112,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() { @@ -145,7 +145,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() { @@ -180,7 +180,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() { @@ -188,7 +188,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 b4f6b18473e1..85756c4f8f3a 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 @@ -131,7 +131,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() { @@ -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; @@ -164,7 +164,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() { @@ -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(@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 2ce79666ca84..7b6758a79ad2 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 @@ -281,7 +281,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() { @@ -289,7 +289,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; @@ -306,7 +306,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() { @@ -314,7 +314,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; @@ -331,7 +331,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() { @@ -339,7 +339,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; @@ -356,7 +356,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() { @@ -364,7 +364,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; @@ -381,7 +381,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() { @@ -389,7 +389,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; @@ -412,7 +412,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() { @@ -439,7 +439,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() { @@ -447,7 +447,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; @@ -464,7 +464,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() { @@ -472,7 +472,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; @@ -489,7 +489,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() { @@ -497,7 +497,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 1c08de914914..f4a7b183144c 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 @@ -63,7 +63,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() { @@ -71,7 +71,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; @@ -88,7 +88,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() { @@ -96,7 +96,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 e720ea817c35..e35def380918 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 @@ -62,7 +62,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() { @@ -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(@javax.annotation.Nullable ModelFile _file) { this._file = _file; @@ -95,7 +95,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() { @@ -103,7 +103,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 fe433b59b126..f6e453242980 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 1bb9db7f356d..c53d70f0c54f 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 @@ -56,7 +56,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() { @@ -64,7 +64,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 a915028fb53d..f2da3986565f 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 @@ -137,7 +137,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() { @@ -145,7 +145,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; @@ -164,7 +164,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() { @@ -172,7 +172,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; @@ -189,7 +189,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() { @@ -197,7 +197,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) { * @return number */ @javax.annotation.Nonnull - @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; @@ -243,7 +243,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() { @@ -251,7 +251,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; @@ -295,7 +295,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() { @@ -303,7 +303,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; @@ -320,7 +320,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() { @@ -328,7 +328,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; @@ -345,7 +345,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() { @@ -353,7 +353,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; @@ -370,7 +370,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() { @@ -378,7 +378,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; @@ -395,7 +395,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() { @@ -403,7 +403,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; @@ -420,7 +420,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() { @@ -428,7 +428,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; @@ -445,7 +445,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() { @@ -453,7 +453,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; @@ -470,7 +470,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() { @@ -478,7 +478,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; @@ -495,7 +495,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() { @@ -503,7 +503,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; @@ -520,7 +520,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() { @@ -528,7 +528,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 f555046df237..b6828dc32454 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 @@ -67,7 +67,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() { @@ -75,7 +75,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 759eddd3e5b4..105096f2f679 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 @@ -65,7 +65,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() { @@ -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() { 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 6e2bb5db882b..2b8b4612119b 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 @@ -63,7 +63,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 95154b00324b..abb01af70099 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 @@ -59,7 +59,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() { @@ -67,7 +67,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; @@ -84,7 +84,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() { @@ -92,7 +92,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 c3eb3a90c02e..c9c8cfb43014 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 @@ -114,7 +114,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() { @@ -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; @@ -147,7 +147,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() { @@ -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(@javax.annotation.Nullable Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -180,7 +180,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() { @@ -188,7 +188,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) { * @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() { @@ -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/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 7d00e09f7263..466ecb367e58 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 @@ -69,7 +69,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() { @@ -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; @@ -94,7 +94,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() { @@ -102,7 +102,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; @@ -127,7 +127,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() { @@ -135,7 +135,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 689215b2f3d3..092573737fec 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 @@ -60,7 +60,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() { @@ -68,7 +68,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 * @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() { @@ -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/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 fe01dd7efc5e..4d09cf9cb261 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 @@ -65,7 +65,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() { @@ -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; @@ -90,7 +90,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() { @@ -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; @@ -115,7 +115,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() { @@ -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/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 9c3fd6cecbb0..2b38ff10178e 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 @@ -55,7 +55,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() { @@ -63,7 +63,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 0ac81084e1ef..1f1be589b16f 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 @@ -55,7 +55,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() { @@ -63,7 +63,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 ffba75a639f9..675a9b3f957d 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 @@ -55,7 +55,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() { @@ -63,7 +63,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 1931fa74d7af..5bd8e203d64a 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 @@ -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; @@ -99,7 +99,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() { @@ -119,7 +119,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() { @@ -127,7 +127,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; @@ -139,7 +139,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 c0be1e095cc5..17aabaaee1e0 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 @@ -120,7 +120,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() { @@ -186,7 +186,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() { @@ -219,7 +219,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() { @@ -285,7 +285,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() { @@ -330,7 +330,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() { @@ -375,7 +375,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() { @@ -410,7 +410,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() { @@ -418,7 +418,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; @@ -453,7 +453,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() { @@ -498,7 +498,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() { @@ -533,7 +533,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() { @@ -541,7 +541,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 2c01d975939b..cb277085d4d2 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 @@ -55,7 +55,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() { @@ -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/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 eb32f3d34073..19fb8b5c03da 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 @@ -76,7 +76,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() { @@ -84,7 +84,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; @@ -104,7 +104,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() { @@ -113,7 +113,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; @@ -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() { @@ -142,7 +142,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; @@ -170,7 +170,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() { @@ -179,7 +179,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 1c4e36d89d18..afac53c8baf1 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 @@ -117,7 +117,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() { @@ -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; @@ -142,7 +142,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() { @@ -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; @@ -167,7 +167,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() { @@ -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; @@ -192,7 +192,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() { @@ -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; @@ -217,7 +217,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() { @@ -225,7 +225,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 getComplete() { @@ -250,7 +250,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 692fd9a0cd11..0709a6d9bb9a 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 @@ -65,7 +65,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() { @@ -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; @@ -90,7 +90,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() { @@ -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(@javax.annotation.Nullable String myString) { this.myString = myString; @@ -115,7 +115,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() { @@ -123,7 +123,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 6c661d72b500..7b8deeda2b7f 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 @@ -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 List getPhotoUrls() { @@ -211,7 +211,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; @@ -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/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 701bdd2d83b3..bd05a6a2c36c 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 0938d25d08f2..c1f72a093c67 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 @@ -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() { @@ -82,7 +82,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() { @@ -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(@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 60f7aca7603b..e0892a9dfbbe 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 @@ -63,7 +63,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() { @@ -71,7 +71,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; @@ -88,7 +88,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() { @@ -96,7 +96,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 25643d63a010..00fd96a2b901 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 54ab913f16ed..2bf8633963e3 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 @@ -63,7 +63,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() { @@ -71,7 +71,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; @@ -88,7 +88,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() { @@ -96,7 +96,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 dbcd59298d0a..84451301658a 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 @@ -60,7 +60,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() { @@ -68,7 +68,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; @@ -85,7 +85,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() { @@ -93,7 +93,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 52594c765703..10cd7471c4f1 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 @@ -59,7 +59,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() { @@ -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; @@ -84,7 +84,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() { @@ -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/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 fd598046669c..00ae87fcb645 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 @@ -59,7 +59,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() { @@ -67,7 +67,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 4ff30b356fd0..af1cf1ca3198 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 @@ -54,7 +54,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() { @@ -62,7 +62,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 11d7e35b474e..5b2b42abd2bf 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 @@ -110,7 +110,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() { @@ -118,7 +118,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; @@ -135,7 +135,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() { @@ -143,7 +143,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; @@ -160,7 +160,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() { @@ -168,7 +168,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; @@ -185,7 +185,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() { @@ -193,7 +193,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; @@ -210,7 +210,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() { @@ -218,7 +218,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; @@ -235,7 +235,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() { @@ -243,7 +243,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; @@ -260,7 +260,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() { @@ -268,7 +268,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; @@ -285,7 +285,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() { @@ -293,7 +293,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; @@ -310,7 +310,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() { @@ -318,7 +318,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; @@ -341,7 +341,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() { @@ -374,7 +374,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() { @@ -407,7 +407,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 c9026153aebe..92a72dbd1380 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 @@ -65,7 +65,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() { @@ -73,7 +73,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; @@ -90,7 +90,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() { @@ -98,7 +98,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; @@ -115,7 +115,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() { @@ -123,7 +123,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 840916fd1a3c..fb56da188969 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 @@ -101,7 +101,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() { @@ -109,7 +109,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; @@ -126,7 +126,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() { @@ -134,7 +134,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 163f85e70dfe..ad1dda1ffc24 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 @@ -48,7 +48,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; @@ -57,7 +57,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; @@ -72,7 +72,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; @@ -81,7 +81,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 372b9293b83c..125278c51ce5 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 @@ -54,7 +54,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; @@ -63,7 +63,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; @@ -78,7 +78,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; @@ -87,7 +87,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; @@ -102,7 +102,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; @@ -111,7 +111,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 17713873ba0d..bdd6ee370a08 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 @@ -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 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; @@ -137,7 +137,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; @@ -152,7 +152,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; @@ -161,7 +161,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; @@ -176,7 +176,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; @@ -185,7 +185,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; @@ -200,7 +200,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; @@ -209,7 +209,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; @@ -224,7 +224,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; @@ -233,7 +233,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 485b3a23b7ac..ed5f6bf6c56f 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 @@ -108,7 +108,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; @@ -117,7 +117,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; @@ -132,7 +132,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; @@ -141,7 +141,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; @@ -156,7 +156,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; @@ -165,7 +165,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; @@ -180,7 +180,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; @@ -189,7 +189,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; @@ -212,7 +212,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; @@ -221,7 +221,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; @@ -246,7 +246,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; @@ -255,7 +255,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 da24f6b0b53f..54aa5945d77f 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 @@ -48,7 +48,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; @@ -57,7 +57,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; @@ -72,7 +72,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; @@ -81,7 +81,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 dfdd5a3f82c2..d1359873cfc8 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 @@ -81,7 +81,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; @@ -90,7 +90,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; @@ -105,7 +105,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; @@ -114,7 +114,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; @@ -129,7 +129,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; @@ -138,7 +138,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; @@ -153,7 +153,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; @@ -162,7 +162,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; @@ -177,7 +177,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; @@ -186,7 +186,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; @@ -201,7 +201,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; @@ -210,7 +210,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; @@ -225,7 +225,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; @@ -234,7 +234,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; @@ -249,7 +249,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; @@ -258,7 +258,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;