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 4fbaf983be8..08b43352e48 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 ebdea8b6192..d4133686321 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 24d02b510e8..8eed5697e12 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 class JavaClientCodegenTest { 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 06f845179a2..287ecef8644 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 class Bird { * @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 class Bird { } - @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 class Bird { * @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 class Bird { } - @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 7ff4ce49257..030cf4d7e99 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 90b54a66761..174b0af6b3c 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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 0d7cb986a72..d25c334efe1 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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 7ea3b30b998..106b8e39628 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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 4da18d65512..7cf1c57c228 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 dcf399eec9f..df8b7c3b43b 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 class Query { * @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 class Query { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Query { * @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 class Query { } - @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 f01968cbe72..46e7343d3f6 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 684501f2e16..1ba68fe32b3 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 class TestFormObjectMultipartRequestMarker { * @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 class TestFormObjectMultipartRequestMarker { } - @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 ecb9756d320..cb765eb8ac8 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @JsonProperty(JSON_PROPERTY_ID) + @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 7e08f171879..f488461482a 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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { * @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { } - @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 c9f37623bef..9a2246b06be 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 class Bird { * @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 class Bird { * @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 c2a9d52f544..ff125f83430 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 class Category { * @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 class Category { * @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 cf48072fc78..0fab96204b0 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 class DataQuery extends Query { * @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 class DataQuery extends Query { * @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 class DataQuery extends Query { * @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 679a8ca4d55..418a35cde77 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 class DefaultValue { * @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 class DefaultValue { * @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 class DefaultValue { * @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 class DefaultValue { * @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 class DefaultValue { * @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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 db637a9ca16..dd4bcf0d66a 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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { * @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 bc3827be1d1..5971623b8b2 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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 ce8c1ffee8b..d5f21fb4e84 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 class Query { * @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 class Query { * @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 3f6bb18404a..11c0fcc0d9a 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 class Tag { * @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 class Tag { * @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 24ed53ddf36..af0e0282c12 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 class TestFormObjectMultipartRequestMarker { * @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 5a3763185c2..558b7f67607 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 5b7c704af8a..91f8863eb49 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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { * @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 975a9dc431a..9cf4ddddde5 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 class Bird { * @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 class Bird { } - @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 class Bird { * @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 class Bird { } - @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 60c02f39fd2..cfb1aa573e6 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 class Category { * @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 class Category { } - @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 class Category { * @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 class Category { } - @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 bd54ecdb3d1..ec3e1cafa39 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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 c766f20bab5..4b3af80aa83 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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 cbf77a4fabf..1f9167f5f41 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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 53f76bd6635..f863d56ecdb 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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 52509751063..142b9f0744f 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 class Query { * @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 class Query { } - @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 class Query { * @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 class Query { } - @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 562ef208f48..86d03332dd8 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 class Tag { * @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 class Tag { } - @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 class Tag { * @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 class Tag { } - @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 024aaf6963f..b336d2c6c63 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 class TestFormObjectMultipartRequestMarker { * @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 class TestFormObjectMultipartRequestMarker { } - @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 a1db893f4a9..9260a135430 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 aab92b39e28..1c5990fd0e5 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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { * @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { } - @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 92b238e34d8..9927effbdf3 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 class Bird { * @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 class Bird { } - @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 class Bird { * @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 class Bird { } - @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 9e869527523..f367d726a60 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 5aa8add6f33..3fcaa5787e5 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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 7af76b56beb..4ac5da160be 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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 14657e0e4e0..961689a7251 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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 7729a46aa72..0d25b5c89a0 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 9b7df902f31..aee7a4b741e 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 class Query { * @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 class Query { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Query { * @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 class Query { } - @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 b03f9124789..91cbb67fe4d 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 78cedabb311..afe1c90764d 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 class TestFormObjectMultipartRequestMarker { * @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 class TestFormObjectMultipartRequestMarker { } - @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 514b4452f39..ebd388bc597 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @JsonProperty(JSON_PROPERTY_ID) + @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 7ea59823aab..9285a8e5af9 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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { * @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { } - @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 fc1c8ed702b..fdc99c7e2e3 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 class Bird { * @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 class Bird { } - @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 class Bird { * @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 class Bird { } - @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 af06f2102b3..54489761ada 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 bedeac2de31..d07329c2076 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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 class DataQuery extends Query { * @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 class DataQuery extends Query { } - @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 055b607a458..6242b44fbe3 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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { * @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 class DefaultValue { } - @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 class DefaultValue { 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 class DefaultValue { 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 class DefaultValue { 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 96f2b15e7df..e73bb900357 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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 class NumberPropertiesOnly { * @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 class NumberPropertiesOnly { } - @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 5d5a9fa3328..2ae97ad1f46 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 91067f5033a..b2c48ed0e3d 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 class Query { * @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 class Query { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Query { * @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 class Query { } - @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 a64fb501fb8..12b03c2c443 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 af1486a506e..64a7ecdf3d0 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 class TestFormObjectMultipartRequestMarker { * @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 class TestFormObjectMultipartRequestMarker { } - @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 af4cd985430..53d9f24c15e 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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @JsonProperty(JSON_PROPERTY_ID) + @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter * @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 class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter } - @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 d3be005a7fd..61dcd19032d 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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { * @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 class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter { } - @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 c61a3ccf369..9d9ebad9f2c 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 class InlineObject { * @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 class InlineObject { } - @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 7320a079ff4..038f3b1c930 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 class Addressable { * @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 class Addressable { } - @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 class Addressable { * @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 class Addressable { } - @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 7372ae0f030..43da5bb89f7 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 final class Apple implements Fruit { * @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 final class Apple implements Fruit { } - @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 final class Apple implements Fruit { * @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 final class Apple implements Fruit { } - @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 9eedf912aa3..ef87516eed7 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 final class Banana implements Fruit { * @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 final class Banana implements Fruit { } - @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 final class Banana implements Fruit { * @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 final class Banana implements Fruit { } - @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 c68aad46c5a..85849876b36 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 final class Bar extends Entity implements BarRefOrValue { * @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 final class Bar extends Entity implements BarRefOrValue { } - @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 final class Bar extends Entity implements BarRefOrValue { * @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 final class Bar extends Entity implements BarRefOrValue { } - @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 final class Bar extends Entity implements BarRefOrValue { * @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 final class Bar extends Entity implements BarRefOrValue { } - @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 final class Bar extends Entity implements BarRefOrValue { * @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 final class Bar extends Entity implements BarRefOrValue { } - @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 dc8b590e4e7..bde7fe3bdef 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 class BarCreate extends Entity { * @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 class BarCreate extends Entity { } - @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 class BarCreate extends Entity { * @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 class BarCreate extends Entity { } - @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 class BarCreate extends Entity { * @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 class BarCreate extends Entity { } - @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 01290f52d13..a60e9b783b8 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 class Entity { * @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 class Entity { } - @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 class Entity { * @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 class Entity { } - @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 class Entity { * @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 class Entity { } - @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 class Entity { * @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 class Entity { } - @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 class Entity { * @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 class Entity { } - @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 bd81921d4a5..0ba18979052 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 class EntityRef { * @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 class EntityRef { } - @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 class EntityRef { * @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 class EntityRef { } - @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 class EntityRef { * @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 class EntityRef { } - @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 class EntityRef { * @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 class EntityRef { } - @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 class EntityRef { * @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 class EntityRef { } - @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 class EntityRef { * @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 class EntityRef { } - @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 class EntityRef { * @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 class EntityRef { } - @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 c6dc4fd549e..a0f2b6a9ebc 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 class Extensible { * @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 class Extensible { } - @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 class Extensible { * @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 class Extensible { } - @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 class Extensible { * @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 class Extensible { } - @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 9789f3302d0..96bb226467f 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 final class Foo extends Entity implements FooRefOrValue { * @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 final class Foo extends Entity implements FooRefOrValue { } - @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 final class Foo extends Entity implements FooRefOrValue { * @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 final class Foo extends Entity implements FooRefOrValue { } - @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 08dd57fe170..63681ab8116 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 final class FooRef extends EntityRef implements FooRefOrValue { * @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 final class FooRef extends EntityRef implements FooRefOrValue { } - @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 8fc0889dc0a..7b2403ee739 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 class Pasta extends Entity { * @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 class Pasta extends Entity { } - @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 6d278481922..66f7254fbe3 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 class Pizza extends Entity { * @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 class Pizza extends Entity { } - @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 cdf3b3e91b6..90617497ff7 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 class PizzaSpeziale extends Pizza { * @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 class PizzaSpeziale extends Pizza { } - @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 6e02ac8143e..b9674ea5f83 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -109,7 +109,7 @@ public class AdditionalPropertiesClass { } - @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 1a4fd7c8fcf..372c3fdfbd6 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 f2ec7920776..432317e80f9 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 0c1d8e3eba3..3798d7766c8 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 b7f76bcc1d1..4ef1612fdd2 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 6ae04f80688..9b353d6ccca 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 6a4476be146..9763f7117a2 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 23149f0f7b3..73e9e8930f1 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 74b16faf896..db17d3c40fb 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 d0cb8f970ae..4ffc3fc8d0c 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 2beafc76b73..b7be8bb0964 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 class ClassModel { * @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 class ClassModel { } - @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 1b6d91416fa..79b2d7ab912 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 class 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 class 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/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 b48b19b391c..e845fee4b12 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 cd6e9c8d84a..41c51a84bc3 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 08aa385c696..52ffa0a0c15 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 2bf448cd7d8..ead88027f5e 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 6717bcd8740..ebbf32d8b2f 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 d4bff303664..d9e64e21a86 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 fc6b1be25d1..d723fb6fd2d 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 class Foo { * @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 class Foo { } - @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 54dd731e9cc..9cb5f377f19 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 277cb8d190a..e67dffc8f4f 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 6c0ef1bd75b..42f7c8b9fb1 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 class 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 class 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 class HasOnlyReadOnly { * @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 43d8408b4fd..dbb0003010e 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 class HealthCheckResult { 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 7b63a9d99b1..c0471df6bff 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 28a1e233ac8..3eb9fa6ce7d 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 af1e10a74cd..c0eea7937cd 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 17ce92bcd41..f420579841e 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 0a091599895..bf2fd2b993f 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 class ModelFile { * @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 class ModelFile { } - @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 ba53e092111..eb26fdd4d37 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 class ModelList { * @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 class ModelList { } - @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 66420c5ab62..dd708439c5f 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 class ModelReturn { * @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 class ModelReturn { } - @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 49c8d2e6a60..e09bb76d67f 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 class 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 class 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 class 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 class 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 class Name { * @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 class Name { } - @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 class Name { * @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 e6ece570c95..7958fb0ccfd 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 022f36112c6..356a23dc3dc 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 class NumberOnly { * @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 class NumberOnly { } - @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 4c27ae76866..285bd6ece9b 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 0a4dc4b7941..91e1883b7a8 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 2671985307b..ae521960d7b 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 760d412e563..30b2b2811d7 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 d7c8c8c7809..1c239fadba1 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 178bcdf5a62..93ee44799cc 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 d7fe46e812c..9bbc3996a5a 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 class 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 1ebc72ac3a1..df5ec4acfc8 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 class 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 class 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 6a65527b1e2..2542f7dbdbd 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 041204a7bc2..7d4fd937f0d 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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap getMapProperty() { @@ -73,7 +73,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -107,7 +107,7 @@ public class AdditionalPropertiesClass { } - @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 6cf1b1af63d..3796f7a337a 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 3cb0c0ec4c7..6b97a3d2709 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 48a9566027c..6872779a024 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 b3618cd6bb3..4cb5c0a30b2 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 c898e1d8038..f4650bf62d9 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 61e2a6cbb8c..cb3de8a47df 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 db2cf2a7e7e..639661476fe 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 033f50b7676..046f100ee89 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 2cda978c379..4e947e67a48 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1d2b984a2cd..df3587f2cb1 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 class ClassModel { * @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 class ClassModel { } - @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 1f741134586..3aa9e08d862 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 class 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 class 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/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 6a376d1d3c2..2ac6efe31ae 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 6bc6de6e196..982d98f19a4 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 eceadd7fdb0..849334be0f8 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 003b2bb4a1d..a6d9a2632c9 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 06987804723..5baa7501532 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 fb2a9bb0ba0..85a65ea43eb 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 class File { * @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 class File { } - @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 ddc0c63e75c..16e482e3f2f 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 1343e29a90e..58c0c144e2c 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 class Foo { * @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 class Foo { } - @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 b8e4d184c0f..9870f6d3a4d 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 3d52274486b..fcb09a26743 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 7c4a334d50e..9c10d1e40ad 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 class 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 class HasOnlyReadOnly { * @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 91b101d36e3..4ea7a5b57f6 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 class HealthCheckResult { 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 1e33c5d356b..2406bc60925 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 35fc496e043..97e81a9172c 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 f6ba2eaecc0..110ea86dcb3 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 6e3b10f29d2..aa74261abf5 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 a4f2f221946..0a30e58fe24 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 class ModelList { * @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 class ModelList { } - @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 c4f64dc9a66..6217c43b9dc 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 class ModelReturn { * @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 class ModelReturn { } - @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 c960d818abf..379491b6472 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 class 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 class 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; @@ -95,7 +95,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 dcc4d006a09..10309cafeb9 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 93f1be9d1d9..ee6767819fd 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 class NumberOnly { * @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 class NumberOnly { } - @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 5d41c6ad971..9e835a4d220 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 175fdf7e48e..2466f5e8e71 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 7d44a03ed8b..314b073d421 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 bb003e14871..c9d09b761aa 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 be54ca76ea2..f2e8a3ea944 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 7443c1c1f4a..32893ec2202 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 abc888cc0f8..258267bf3f3 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 f77d213e8b7..03eaec13fbf 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 class 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 class 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 3ebd839fc00..dc6d909d470 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 598d5be46bb..839c0fec3f8 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 41a720b9b06..a63c9387e01 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 63d0643a02c..5a00601d9b9 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 class AdditionalPropertiesAnyType { */ @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 class AdditionalPropertiesAnyType { } - @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 5302b991144..037be1ed0c4 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 class AdditionalPropertiesArray { */ @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 class AdditionalPropertiesArray { } - @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 774896820ea..64ab41427ff 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 class AdditionalPropertiesBoolean { */ @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 class AdditionalPropertiesBoolean { } - @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 5518a4dee76..a6e09091e13 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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayInteger() { @@ -266,7 +266,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapString() { @@ -336,7 +336,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapAnytype() { @@ -371,7 +371,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 852546a6732..0ea7697f67d 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 class AdditionalPropertiesInteger { */ @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 class AdditionalPropertiesInteger { } - @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 84619c9b698..dda788b1660 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 class AdditionalPropertiesNumber { */ @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 class AdditionalPropertiesNumber { } - @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 045289dd5ee..60d48540188 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 class AdditionalPropertiesObject { */ @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 class AdditionalPropertiesObject { } - @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 3672021e21e..a050dd36392 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 class AdditionalPropertiesString { */ @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 class AdditionalPropertiesString { } - @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 2c7101170ab..900f493a9eb 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 class Animal { */ @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 class Animal { } - @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 class Animal { */ @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 class Animal { } - @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 52e60fb16cd..6651ba92765 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 class ArrayOfArrayOfNumberOnly { */ @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 class ArrayOfArrayOfNumberOnly { } - @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 4d4563a2a99..64ce38ecdb3 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 class ArrayOfNumberOnly { */ @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 class ArrayOfNumberOnly { } - @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 67691d1d0c7..0d4cf72edb9 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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { */ @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 class ArrayTest { } - @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 2ae5a69ccee..9f9ca3e1a3c 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 class BigCat extends Cat { */ @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 class BigCat extends Cat { } - @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 22e0ed1083d..da36d34ef20 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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 5be75660b4f..951a7d14359 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 class Cat extends Animal { */ @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 class Cat extends Animal { } - @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 91554ea6168..4805e533caf 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 class Category { */ @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { */ @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 class Category { } - @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 6d020666560..673c4ab5e97 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 class ClassModel { */ @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 class ClassModel { } - @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 d038bc5e20d..4c350579907 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 class 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 class 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/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 888e70f85b9..7ed62c30012 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 class Dog extends Animal { */ @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 class Dog extends Animal { } - @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 c412bf74092..66a113f994a 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 class EnumArrays { */ @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 class EnumArrays { } - @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 class EnumArrays { */ @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 class EnumArrays { } - @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 5ecc21666cc..8ebd04cac48 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 3e72c52d574..6b9b33f92a5 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 class File { */ @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 class File { } - @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 b8b11af3e2c..30080b82db2 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 class FileSchemaTestClass { */ @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { */ @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 class FileSchemaTestClass { } - @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 66ec9f08da5..1086b32b992 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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 5fcc92d5a5a..fac750d11d4 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 class 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 class HasOnlyReadOnly { */ @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 0c4977a745a..141fcb2fb60 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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 b7ab11702e8..30f2d7e45ae 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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 d2ed8760125..b4b09e157f1 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 class Model200Response { */ @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 class Model200Response { } - @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 class Model200Response { */ @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 class Model200Response { } - @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 508950b3b3f..a78d19918d2 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 fbd91b164fc..89f06608997 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 class ModelList { */ @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 class ModelList { } - @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 00984d19a40..05db1f34e8a 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 class ModelReturn { */ @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 class ModelReturn { } - @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 a9dd9d034b9..4f79cd75752 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 class 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 class 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; @@ -103,7 +103,7 @@ public class 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 class Name { */ @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 class Name { } - @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 class Name { */ @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 f136994b8da..575b14fd7b0 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 class NumberOnly { */ @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 class NumberOnly { } - @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 d40f71bdde2..449c0f0aa1f 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 class Order { */ @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 1681a52b79f..7bb88743d0f 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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 a4f161034d9..cbf7e16ee49 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 class Pet { */ @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 2ad33bb9189..9bb90aed82c 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 class 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 class ReadOnlyFirst { */ @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 class ReadOnlyFirst { } - @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 7cf5f00bc71..d6502fc8506 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 class 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 class 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 adfb86f8f94..786e6115778 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 class Tag { */ @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { */ @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 class Tag { } - @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 ab43f995f92..af746dbf6de 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 class TypeHolderDefault { */ @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { */ @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { */ @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { */ @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { */ @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 class TypeHolderDefault { } - @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 9455dcedfb6..591ca3c7507 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 class TypeHolderExample { */ @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 class TypeHolderExample { } - @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 class TypeHolderExample { */ @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 class TypeHolderExample { } - @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 class TypeHolderExample { */ @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 class TypeHolderExample { } - @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 class TypeHolderExample { */ @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 class TypeHolderExample { } - @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 class TypeHolderExample { */ @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 class TypeHolderExample { } - @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 class TypeHolderExample { */ @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 class TypeHolderExample { } - @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 cabbaed555a..ffc4adbf47c 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 class User { */ @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 cf8bd91783a..6681734e257 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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 8e9d4da7934..2e119eed415 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -107,7 +107,7 @@ public class AdditionalPropertiesClass { } - @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 6cf1b1af63d..3796f7a337a 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 3cb0c0ec4c7..6b97a3d2709 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 48a9566027c..6872779a024 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 b3618cd6bb3..4cb5c0a30b2 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 c898e1d8038..f4650bf62d9 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 61e2a6cbb8c..cb3de8a47df 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 db2cf2a7e7e..639661476fe 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 033f50b7676..046f100ee89 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 2cda978c379..4e947e67a48 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1d2b984a2cd..df3587f2cb1 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 class ClassModel { * @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 class ClassModel { } - @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 1f741134586..3aa9e08d862 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 class 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 class 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/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 6a376d1d3c2..2ac6efe31ae 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 6bc6de6e196..982d98f19a4 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 eceadd7fdb0..849334be0f8 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 003b2bb4a1d..a6d9a2632c9 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 06987804723..5baa7501532 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 fb2a9bb0ba0..85a65ea43eb 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 class File { * @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 class File { } - @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 ddc0c63e75c..16e482e3f2f 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 1343e29a90e..58c0c144e2c 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 class Foo { * @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 class Foo { } - @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 b8e4d184c0f..9870f6d3a4d 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 3d52274486b..fcb09a26743 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 7c4a334d50e..9c10d1e40ad 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 class 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 class HasOnlyReadOnly { * @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 91b101d36e3..4ea7a5b57f6 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 class HealthCheckResult { 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 1e33c5d356b..2406bc60925 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 35fc496e043..97e81a9172c 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 f6ba2eaecc0..110ea86dcb3 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 6e3b10f29d2..aa74261abf5 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 a4f2f221946..0a30e58fe24 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 class ModelList { * @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 class ModelList { } - @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 c4f64dc9a66..6217c43b9dc 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 class ModelReturn { * @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 class ModelReturn { } - @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 c960d818abf..379491b6472 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 class 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 class 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; @@ -95,7 +95,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 dcc4d006a09..10309cafeb9 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 93f1be9d1d9..ee6767819fd 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 class NumberOnly { * @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 class NumberOnly { } - @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 5d41c6ad971..9e835a4d220 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 175fdf7e48e..2466f5e8e71 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 7d44a03ed8b..314b073d421 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 bb003e14871..c9d09b761aa 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 be54ca76ea2..f2e8a3ea944 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 7443c1c1f4a..32893ec2202 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 abc888cc0f8..258267bf3f3 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 f77d213e8b7..03eaec13fbf 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 class 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 class 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 3ebd839fc00..dc6d909d470 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 598d5be46bb..839c0fec3f8 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 41a720b9b06..a63c9387e01 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 8afd2f5020e..610378be1a1 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 class AdditionalPropertiesAnyType extends HashMap { * @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 class AdditionalPropertiesAnyType extends HashMap { } - @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 cec74b5439c..0b2756a13a2 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 class AdditionalPropertiesArray extends HashMap { * @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 class AdditionalPropertiesArray extends HashMap { } - @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 864af85f525..20dc974d3eb 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 class AdditionalPropertiesBoolean extends HashMap { * @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 class AdditionalPropertiesBoolean extends HashMap { } - @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 5fc006ae735..c8a10cd27d4 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapArrayInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayInteger() { @@ -252,7 +252,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapString() { @@ -318,7 +318,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapAnytype() { @@ -351,7 +351,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 c0628c3f799..139c4eb9323 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 class AdditionalPropertiesInteger extends HashMap { * @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 class AdditionalPropertiesInteger extends HashMap { } - @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 87d3efd48e4..e3bc73e2947 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 class AdditionalPropertiesNumber extends HashMap { * @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 class AdditionalPropertiesNumber extends HashMap { } - @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 f5bb8adb470..0e559595190 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 class AdditionalPropertiesObject extends HashMap { * @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 class AdditionalPropertiesObject extends HashMap { } - @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 b2ac0ee76ee..9ecc332272b 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 class AdditionalPropertiesString extends HashMap { * @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 class AdditionalPropertiesString extends HashMap { } - @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 4dfe4513e00..093d8446f10 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 6ce9b83c67e..c2d684e2fcf 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 f36135202ce..28fbf8c2d5b 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 2453f58cc35..e0175f2d03d 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 07c91941dbf..d9c0cb3a9a0 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 class BigCat extends Cat { * @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 class BigCat extends Cat { } - @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 5682f213b65..e4864216208 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 6e1800185d6..f4ea08ab72b 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 78cc077529b..249f14c58a6 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 74dd4385a90..bc883861da5 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 class ClassModel { * @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 class ClassModel { } - @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 99fe381a876..76b0c5cac91 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 class 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 class 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/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 9c932cb01bd..63cc53e6602 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 e6cca680c1f..95af14f9eb1 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 da91df336aa..6c7c1718ee7 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 a05efa3c913..28eae4a9c51 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 079a4a757ce..4bbf3908ac9 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 ef912674bde..dd34438d5ed 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 class 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 class 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 class HasOnlyReadOnly { * @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 ec9e81743d7..99c72041af4 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 b480c7d542d..d0219f2e217 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 2a69b55cfd6..7a268eb4a14 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 f080773624a..1255ae56e3d 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 21f812364f0..45f97655028 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 class ModelFile { * @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 class ModelFile { } - @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 c24868360f6..dfef26ef7fb 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 class ModelList { * @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 class ModelList { } - @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 b7ca4af717d..6901c048a0a 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 class ModelReturn { * @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 class ModelReturn { } - @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 dce25ead211..4c67288873e 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 class 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 class 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 class 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; @@ -96,7 +96,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 a91f0c49358..c0748fb6a1c 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 class NumberOnly { * @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 class NumberOnly { } - @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 64b26edbd41..54308806a1d 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 3ba67944ba1..d4122b6599f 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 2a0fdfd8c10..91c27389915 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 d1147f1fda3..eee83de7ead 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 class 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 2d571740d95..4ab74a64c27 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 class 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 class 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 c46a759548f..666772aed4b 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 0548be6b0e3..10f17b5ff91 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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 39766e339f9..d482405dc44 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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 006f4222a31..f342e9bcd3a 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 f10791f784a..92df8c1d5b3 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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 3669ec2b749..b13c7a2af78 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 class AdditionalPropertiesAnyType { * @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 class AdditionalPropertiesAnyType { } - @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 58d207b799d..582b84fcebb 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 class AdditionalPropertiesArray { * @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 class AdditionalPropertiesArray { } - @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 ceeb4ff66c7..509fab02d8a 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 class AdditionalPropertiesBoolean { * @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 class AdditionalPropertiesBoolean { } - @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 a4271593547..7234016ff96 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapArrayInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayInteger() { @@ -254,7 +254,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapString() { @@ -320,7 +320,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapAnytype() { @@ -353,7 +353,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 f84eb037573..89df7723d44 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 class AdditionalPropertiesInteger { * @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 class AdditionalPropertiesInteger { } - @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 1efe49749df..96be54b277e 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 class AdditionalPropertiesNumber { * @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 class AdditionalPropertiesNumber { } - @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 fd7a2bdcc6b..e52a4456ca2 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 class AdditionalPropertiesObject { * @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 class AdditionalPropertiesObject { } - @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 40bb58f247b..ecc06add09b 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 class AdditionalPropertiesString { * @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 class AdditionalPropertiesString { } - @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 762ce1ea840..e1d4d805c82 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 b98cafbbbce..4cc84bbc2ab 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 cfed0670014..134f60a31ef 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 dac39d2b9a7..f8d129483f8 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 657ed427dba..a40f9d59476 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 class BigCat extends Cat { * @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 class BigCat extends Cat { } - @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 660e37085ac..b40a09ba0ea 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 37b88ce8392..32d94ea0e0c 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 6f93cc06f76..a1a8b50ce17 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 1d79b6426ba..ed88bd95c91 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 class ClassModel { * @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 class ClassModel { } - @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 7974fd221a5..4f301ba7fa5 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 class 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 class 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/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 c65f99508fb..6f5340ae638 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 4bf6b5b8adc..a6ddc12711a 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 7fd6743e859..7582662f1b6 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 f918f74ed26..7fb3ec15d83 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 ef745adae3d..84b602e1a0e 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 17cca6a2320..9f0c0cc4fc5 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 class 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 class HasOnlyReadOnly { * @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 a91343d4e39..c038bf4bed7 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 2bb465df587..15d839effcc 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 3f582ce9966..2db77a7e154 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 3afd743b68c..8785ead7f9a 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 573a0f09ae4..ee94ca72349 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 class ModelFile { * @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 class ModelFile { } - @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 c443b42e2fa..c8ad5a307f3 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 class ModelList { * @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 class ModelList { } - @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 488f0dfe2ab..441e6b8844b 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 class ModelReturn { * @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 class ModelReturn { } - @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 d59aaa66fd0..ab6dae15f68 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 class 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 class 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; @@ -97,7 +97,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 8df7be2d2cb..47079120d64 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 class NumberOnly { * @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 class NumberOnly { } - @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 9f5bfe08f73..058f7a1654c 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 bd9277f2cdb..871f76488c9 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 007f5360513..2748ec3e5bc 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 b0eebf16a2b..9bef3dbf783 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 94252cf596d..284775c73d0 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 class 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 class 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 19ff6fb3898..b134681ce37 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 5d1b1f95715..8c4625176d2 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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 a6e5a79a951..28e6de7315a 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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 19ee89b4614..17888e808d6 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 6fb1e58896d..60ebd664c90 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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 3669ec2b749..b13c7a2af78 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 class AdditionalPropertiesAnyType { * @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 class AdditionalPropertiesAnyType { } - @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 58d207b799d..582b84fcebb 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 class AdditionalPropertiesArray { * @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 class AdditionalPropertiesArray { } - @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 ceeb4ff66c7..509fab02d8a 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 class AdditionalPropertiesBoolean { * @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 class AdditionalPropertiesBoolean { } - @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 a4271593547..7234016ff96 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapArrayInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayInteger() { @@ -254,7 +254,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapString() { @@ -320,7 +320,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapAnytype() { @@ -353,7 +353,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 f84eb037573..89df7723d44 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 class AdditionalPropertiesInteger { * @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 class AdditionalPropertiesInteger { } - @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 1efe49749df..96be54b277e 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 class AdditionalPropertiesNumber { * @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 class AdditionalPropertiesNumber { } - @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 fd7a2bdcc6b..e52a4456ca2 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 class AdditionalPropertiesObject { * @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 class AdditionalPropertiesObject { } - @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 40bb58f247b..ecc06add09b 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 class AdditionalPropertiesString { * @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 class AdditionalPropertiesString { } - @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 762ce1ea840..e1d4d805c82 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 b98cafbbbce..4cc84bbc2ab 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 cfed0670014..134f60a31ef 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 dac39d2b9a7..f8d129483f8 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 657ed427dba..a40f9d59476 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 class BigCat extends Cat { * @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 class BigCat extends Cat { } - @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 660e37085ac..b40a09ba0ea 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 37b88ce8392..32d94ea0e0c 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 6f93cc06f76..a1a8b50ce17 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 1d79b6426ba..ed88bd95c91 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 class ClassModel { * @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 class ClassModel { } - @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 7974fd221a5..4f301ba7fa5 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 class 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 class 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/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 c65f99508fb..6f5340ae638 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 4bf6b5b8adc..a6ddc12711a 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 7fd6743e859..7582662f1b6 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 f918f74ed26..7fb3ec15d83 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 a23084be7de..8f1fc37a4e3 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 17cca6a2320..9f0c0cc4fc5 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 class 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 class HasOnlyReadOnly { * @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 a91343d4e39..c038bf4bed7 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 5568c4597fe..b6b1a7fe2ca 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 3f582ce9966..2db77a7e154 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 3afd743b68c..8785ead7f9a 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 573a0f09ae4..ee94ca72349 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 class ModelFile { * @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 class ModelFile { } - @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 c443b42e2fa..c8ad5a307f3 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 class ModelList { * @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 class ModelList { } - @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 488f0dfe2ab..441e6b8844b 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 class ModelReturn { * @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 class ModelReturn { } - @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 d59aaa66fd0..ab6dae15f68 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 class 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 class 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; @@ -97,7 +97,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 8df7be2d2cb..47079120d64 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 class NumberOnly { * @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 class NumberOnly { } - @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 0de7c4fd5aa..98ad072ef64 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 bd9277f2cdb..871f76488c9 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 007f5360513..2748ec3e5bc 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 b0eebf16a2b..9bef3dbf783 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 94252cf596d..284775c73d0 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 class 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 class 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 19ff6fb3898..b134681ce37 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 5d1b1f95715..8c4625176d2 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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 a6e5a79a951..28e6de7315a 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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 19ee89b4614..17888e808d6 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 6fb1e58896d..60ebd664c90 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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 309c6be14f5..d63d15f8dfb 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 class SchemaA { * @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 class SchemaA { } - @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 7e8bf2513e9..19c1ec494c8 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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @jakarta.annotation.Nullable @Valid - @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() { @@ -148,7 +148,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 d0904fddcae..891b863ca51 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 class Animal { @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 class Animal { } - @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 class Animal { */ @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 class Animal { } - @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 2f9adffa344..a38e4ab44df 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 class Apple { */ @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 class Apple { } - @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 class Apple { */ @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 class Apple { } - @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 f685ac9ce5d..3fe8656c029 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 class AppleReq { @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 class AppleReq { } - @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 class AppleReq { */ @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 class AppleReq { } - @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 44a3b0e65fc..2b4004fd7de 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 class ArrayOfArrayOfNumberOnly { @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 class ArrayOfArrayOfNumberOnly { } - @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 305ea65f710..93c63bc240a 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 class ArrayOfNumberOnly { @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 class ArrayOfNumberOnly { } - @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 89c0a9f8414..22917c7343a 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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { @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 class ArrayTest { } - @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 class ArrayTest { @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 class ArrayTest { } - @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 faf2b839937..c49709825c0 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 class Banana { @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 class Banana { } - @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 293cd9bd584..ea709d1d49e 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 class BananaReq { @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 class BananaReq { } - @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 class BananaReq { */ @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 class BananaReq { } - @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 bc6c3f9f388..768d4bbd7ac 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 class BasquePig { @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 class BasquePig { } - @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 a91d77bf59d..239f06866b3 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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 831cd6473de..d2fdc98f3cd 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 class Cat extends Animal { */ @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 class Cat extends Animal { } - @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 132a97f8a14..f5bb478cfd8 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 class Category { */ @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 class Category { } - @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 class Category { @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 class Category { } - @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 ca01b62706a..9d7b7ce7cc6 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 class ChildCat extends ParentPet { */ @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 class ChildCat extends ParentPet { } - @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 class ChildCat extends ParentPet { */ @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 class ChildCat extends ParentPet { } - @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 be21fbd47a5..64fac0042e6 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 class ClassModel { */ @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 class ClassModel { } - @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 e6887790370..37349316226 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 class 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 class Client { } - @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 749824c5e81..94101af82b2 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 class ComplexQuadrilateral { @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 class ComplexQuadrilateral { } - @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 class ComplexQuadrilateral { @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 class ComplexQuadrilateral { } - @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 1ab5593c747..55fbc25e5f6 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 class DanishPig { @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 class DanishPig { } - @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 b3b7e019a3a..f56753fe690 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 class DeprecatedObject { */ @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 class DeprecatedObject { } - @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 973191757aa..d8b0ddea2e5 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 class Dog extends Animal { */ @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 class Dog extends Animal { } - @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 9688ea12133..eafa78975f8 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 class Drawing { @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 class Drawing { } - @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 class Drawing { 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 class Drawing { 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 class Drawing { @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 class Drawing { } - @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 3eceb4708d3..9e55ba0a882 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 class EnumArrays { */ @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 class EnumArrays { } - @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 class EnumArrays { */ @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 class EnumArrays { } - @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 ae70bec7d17..3012ee98253 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { @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 class EnumTest { } - @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 class EnumTest { @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 class EnumTest { } - @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 class EnumTest { @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 class EnumTest { } - @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 9df45528f01..8077cf54f2d 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 class EquilateralTriangle { @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 class EquilateralTriangle { } - @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 class EquilateralTriangle { @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 class EquilateralTriangle { } - @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 71f0185cd4b..23773bafe00 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 class FileSchemaTestClass { @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { } - @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 062fb2c52d0..c86f3948c65 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 class Foo { */ @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 class Foo { } - @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 2b0275421af..e3b1d35f4e5 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 class FooGetDefaultResponse { @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 class FooGetDefaultResponse { } - @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 938ead6ded2..9c053b18adf 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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 fa160c59d5a..2a43ed84667 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 class GrandparentAnimal { @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 class GrandparentAnimal { } - @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 d0c1efaf1de..e9a5c97ee88 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 class 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 class HasOnlyReadOnly { */ @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 c9486a08bad..6c29e049a5b 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 class HealthCheckResult { 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 8d2f314f243..f7cad836282 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 class IsoscelesTriangle { @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 class IsoscelesTriangle { } - @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 class IsoscelesTriangle { @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 class IsoscelesTriangle { } - @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 cc9dfc98847..a6f6b23ab00 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 class MapTest { @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 47fbbe7f88e..f2a6a08ccae 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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 a61ca3fab08..fa1ab72dba0 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 class Model200Response { */ @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 class Model200Response { } - @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 class Model200Response { */ @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 class Model200Response { } - @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 5a19fb5ff83..f5b571ebbf9 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 c5087f32483..d03c6a230fe 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 class ModelFile { */ @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 class ModelFile { } - @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 a2d7fcae01e..45c89c5bf85 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 class ModelList { */ @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 class ModelList { } - @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 0fe64813220..0523a2be4ad 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 class ModelReturn { */ @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 class ModelReturn { } - @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 34b42f2429f..daf8e5c84ff 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 class 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 class Name { } - @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 class 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 class Name { */ @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 class Name { } - @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 class Name { */ @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 8e161772e7e..7882f28c5e2 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { */ @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { */ @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 class NullableClass { } - @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 41df1fe90ec..513545770e1 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 class NumberOnly { @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 class NumberOnly { } - @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 edfd6c35617..fad17af34b1 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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { @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 7ee5f36792d..26a4b066e0f 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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 96d0cb226c6..f1a4fcb3dd3 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 class OuterComposite { @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 4e7b36a3a92..24583e24f6c 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 class Pet { */ @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 d12ca28f606..1e59fa958eb 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 class QuadrilateralInterface { @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 class QuadrilateralInterface { } - @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 c8162694107..617144e3405 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 class 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 class ReadOnlyFirst { */ @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 class ReadOnlyFirst { } - @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 75d6d678331..71b9e594baf 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 class ScaleneTriangle { @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 class ScaleneTriangle { } - @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 class ScaleneTriangle { @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 class ScaleneTriangle { } - @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 cbd23267bc9..441cbabcdb3 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 class ShapeInterface { @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 class ShapeInterface { } - @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 251faf32324..94b8e05c3ff 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 class SimpleQuadrilateral { @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 class SimpleQuadrilateral { } - @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 class SimpleQuadrilateral { @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 class SimpleQuadrilateral { } - @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 88b02205d4c..cad2bc05f46 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 class 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 class 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 class SpecialModelName { */ @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 class 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(@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 480ed80f815..f70def4ee66 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 class Tag { */ @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 class Tag { } - @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 class Tag { */ @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 class Tag { } - @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 9deb8e42eb8..5cf53d94cc0 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 class TestInlineFreeformAdditionalPropertiesRequest { */ @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 b6ee99810d6..2670df4047e 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 class TriangleInterface { @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 class TriangleInterface { } - @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 243ad7db0a9..e3285b54b13 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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { 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 class User { 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 class User { 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 74f14d907fc..3eecc513f93 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 class Whale { */ @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 class Whale { } - @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 class Whale { */ @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 class Whale { } - @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 class Whale { @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 class Whale { } - @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 947ca9ce466..f3169d12698 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 class Zebra { */ @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 class Zebra { } - @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 class Zebra { @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 class Zebra { } - @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 46b73b36878..fb2a6df6b92 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 class Category { /** * 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 class Category { * 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 class Category { /** * 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 6531ab9e376..31a0ba63137 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 07a5b214ab9..e2b33bc02bd 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 5f40b703388..00fd6a640de 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * @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 class Pet { /** * 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 21bfb71f68b..aa1d2fbd439 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 class Tag { /** * 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 class Tag { * 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 class Tag { /** * 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 04ec9f8d768..fd0a47b7a2a 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 61fc1862849..175536c48db 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 class Category { /** * 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 class Category { * 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 class Category { /** * 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 4ef13f11df3..13609451c4e 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 b942a9b2fa4..fd163e6f314 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 c70012e839d..8e81c6eb672 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * @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 class Pet { /** * 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 562946c04ea..ff358af4ba2 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 class Tag { /** * 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 class Tag { * 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 class Tag { /** * 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 10708b47a1a..de8cfd45f1d 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 0354b66a397..e5ddc33bd87 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 class AdditionalPropertiesClass { /** * 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 class AdditionalPropertiesClass { * 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 class AdditionalPropertiesClass { /** * 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 7469d9ecd94..19a452ada7e 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 class AllOfWithSingleRef { /** * 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 class AllOfWithSingleRef { * 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 class AllOfWithSingleRef { /** * 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 6677658943b..f6fe599d53b 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 class Animal { /** * 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 class Animal { * 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 class Animal { /** * 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 0b5c66a5fba..0095acfb135 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 class ArrayOfArrayOfNumberOnly { /** * 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 4be23980a0d..093e2d80b56 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 class ArrayOfNumberOnly { /** * 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 c7dabc6e838..d015a89a42d 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 class ArrayTest { /** * 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 class ArrayTest { * 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 class ArrayTest { /** * 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 class ArrayTest { * 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 class ArrayTest { /** * 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 ca0ed12acce..7d3e5df30d9 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 class Capitalization { /** * 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 class Capitalization { * 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 class Capitalization { /** * 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 class Capitalization { * 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 class Capitalization { /** * 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 class Capitalization { * 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 class Capitalization { /** * 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 class Capitalization { * 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 class Capitalization { /** * 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 class Capitalization { * 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 class Capitalization { /** * 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 c1bb142a09a..6f2bb16131f 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 class Cat extends Animal { /** * 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 84669467914..c47cd7f1655 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 class Category { /** * 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 class 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; @@ -80,7 +80,7 @@ public class Category { /** * 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 dcdb25dcf66..d003ac41d9c 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 class ChildWithNullable extends ParentWithNullable { /** * 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 8e1eb1ee3e0..127ed0fc357 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 class ClassModel { /** * 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 9a1ad3a96c1..1ab85887966 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 class Client { /** * 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 611c8759e1f..3e404a88111 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 class DeprecatedObject { /** * 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 2b966a99cc2..5a2ce86f156 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 class Dog extends Animal { /** * 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 017a14a66bd..c3fd3f535c9 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 class EnumArrays { * 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 class EnumArrays { /** * 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 class EnumArrays { * 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 class EnumArrays { /** * 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 322885fb2ae..c2eb5fdfc72 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 class EnumTest { * 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 class EnumTest { /** * 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 class EnumTest { * 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 class EnumTest { /** * 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 class EnumTest { * 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 class EnumTest { /** * 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 class EnumTest { * 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 class EnumTest { /** * 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 class EnumTest { * 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 class EnumTest { /** * 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 class EnumTest { * 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 class EnumTest { /** * 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 class EnumTest { * 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 class EnumTest { /** * 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 class EnumTest { * 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 class EnumTest { /** * 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 556e1774b82..dcf42bf76bc 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 class FakeBigDecimalMap200Response { /** * 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 class FakeBigDecimalMap200Response { * 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 class FakeBigDecimalMap200Response { /** * 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 b5fbcb8543a..9497c9330e0 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 class FileSchemaTestClass { /** * 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 class FileSchemaTestClass { * 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 class FileSchemaTestClass { /** * 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 95892d69a40..813a17df239 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 class Foo { /** * 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 508867aa7f9..08f9ee6f5f7 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 class FooGetDefaultResponse { /** * 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 4ec278fdc8b..7ecdfd5a2ff 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 class FormatTest { * 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 class FormatTest { /** * 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 1ceca0d6bd2..36a7d2fbe6d 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 class 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 class HasOnlyReadOnly { * 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 4b7c119ff66..2420e5040df 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 class HealthCheckResult { /** * 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 19c6935aaf0..0e9e6ed6cf9 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 class MapTest { * 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 class MapTest { /** * 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 class MapTest { * 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 class MapTest { /** * 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 class MapTest { * 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 class MapTest { /** * 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 class MapTest { * 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 class MapTest { /** * 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 ef409f2784e..e49082b3c17 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 class MixedPropertiesAndAdditionalPropertiesClass { /** * 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 class MixedPropertiesAndAdditionalPropertiesClass { * 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 class MixedPropertiesAndAdditionalPropertiesClass { /** * 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 class MixedPropertiesAndAdditionalPropertiesClass { * 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 class MixedPropertiesAndAdditionalPropertiesClass { /** * 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 2ed59729546..582dae8d586 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 class Model200Response { /** * 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 class Model200Response { * 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 class Model200Response { /** * 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 ff29cadc48b..4f80ea548f6 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 9fbfa0745f1..888498bd40c 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 class ModelFile { /** * 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 76389d75e43..daeb4cf8bc3 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 class ModelList { /** * 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 1bf4558bc91..ce5ed31fb4f 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 class ModelReturn { /** * 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 e681959a4e8..1413bcea338 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 class 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 class Name { /** * 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 class 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 class Name { * 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 class Name { /** * 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 class Name { * 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 437cdf4273f..1e0b3171b64 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 class NullableClass { * 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 class NullableClass { /** * 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 ee2c68ff315..5f53ae658c8 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 class NumberOnly { /** * 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 0c40349a930..40e9c0778e2 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 class ObjectWithDeprecatedFields { /** * 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { /** * 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { /** * 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { /** * 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 829c874d169..35690b36320 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 e2917e9aec0..3a9063ae886 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 class OuterComposite { /** * 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 class OuterComposite { * 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 class OuterComposite { /** * 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 class OuterComposite { * 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 class OuterComposite { /** * 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 6cbb441875d..66d50f0c6d4 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 class OuterObjectWithEnumProperty { /** * 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 a4cd3c7c792..d8ecc7f0a4e 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 class ParentWithNullable { * 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 class ParentWithNullable { /** * 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 class ParentWithNullable { * 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 class ParentWithNullable { /** * 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 b9da2c6d91e..f435638173a 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 87bb00535f5..e304cb423d8 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 class 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 class ReadOnlyFirst { * 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 class ReadOnlyFirst { /** * 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 bb65c5c1e26..dd4e4d51147 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 782de436506..78a4994e991 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 class Tag { /** * 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 class Tag { * 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 class Tag { /** * 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 b55e7b75c29..210204020b2 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 class TestInlineFreeformAdditionalPropertiesRequest { * 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 class TestInlineFreeformAdditionalPropertiesRequest { /** * 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 76c4f6853eb..67986847eb1 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 273e5c4e443..6203fcc32ea 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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; } - @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 3a070bc8287..9985e57b243 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 class Animal { * @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 class Animal { * @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 3479968fc46..209f99324ec 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 class Apple { * @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 class Apple { * @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 d6580a5560a..943ed221e1e 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 class AppleReq { * @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 class AppleReq { * @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 9a075aa0931..bf0e784b132 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 class ArrayOfArrayOfNumberOnly { * @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 739fd802ab9..5f81b605a8b 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 class ArrayOfNumberOnly { * @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 7d5ad1c241a..f4c589d6d76 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 class ArrayTest { * @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 class ArrayTest { * @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 class ArrayTest { * @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 e49f3f7b3c4..31a852ad24d 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 class Banana { * @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 bb9dad61f1e..1ade230fa85 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 class BananaReq { * @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 class BananaReq { * @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 67517bb09fa..ee24232d46c 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 class BasquePig { * @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 d66d057dfae..522f186420f 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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 ec8e8f26951..7bf01cf6a3b 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 class Cat extends Animal { * @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 697c52fe717..a6f68dcd656 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 class Category { * @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 class Category { * @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 73607f6c8df..105517cef06 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 class ChildCat extends ParentPet { * @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 class ChildCat extends ParentPet { * @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 c76ff089086..6db0fb6fde1 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 class ClassModel { * @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 fcdb70adb09..def75a9d7ca 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 class 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 f47ddeca221..c64d5b36bf6 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 class ComplexQuadrilateral { * @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 class ComplexQuadrilateral { * @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 caee9a124c2..55c18d0fa18 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 class DanishPig { * @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 1c0023c9901..781544464e7 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 class DeprecatedObject { * @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 6a48f515f22..07d47eacebb 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 class Dog extends Animal { * @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 a9e055ef926..eac73d2e05b 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 class Drawing { * @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 class Drawing { * @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 class Drawing { 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 class Drawing { * @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 a904c4ff9d0..2e6860ff2a6 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 class EnumArrays { * @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 class EnumArrays { * @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 b72371b7bcb..a0f2359c5ab 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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 977db1970f7..0664d09c8ee 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 class EquilateralTriangle { * @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 class EquilateralTriangle { * @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 ed234f495bd..77a990b6623 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { * @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 815bbd2d8e8..11a0a4edb56 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { * @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 23836b3697c..0133e435d48 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 class Foo { * @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 b7d03157e72..1aa86130597 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 class FooGetDefaultResponse { * @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 ddc5434c8a3..82486070a07 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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 197804ac683..ed44ae7685d 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 class GrandparentAnimal { * @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 697eca755a5..9978e53c3db 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 class 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 class HasOnlyReadOnly { * @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 84410e511ae..ab18f1c46fa 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 class HealthCheckResult { 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 5ee277a1fb8..70e451abe68 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 class IsoscelesTriangle { * @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 class IsoscelesTriangle { * @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 97eb9e32cbc..2690457f47e 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 class MapTest { * @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 class MapTest { * @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 class MapTest { * @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 class MapTest { * @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 698a0dfd83e..83c72537a7e 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 9d9009e0d97..54778b44615 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 class Model200Response { * @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 class Model200Response { * @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 010e0d82b30..3c09f251908 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 class ModelApiResponse { * @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 class ModelApiResponse { * @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 class ModelApiResponse { * @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 d233df8a40e..3cdf542341f 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 class ModelFile { * @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 1f23bb31267..0fdfe2d9a10 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 class ModelList { * @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 5d5eb607a78..1f1c20eb6ec 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 class ModelReturn { * @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 be626a3417e..7c24de85136 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 class 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 class 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 class Name { * @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 class Name { * @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 383ab3b2c67..0a56ec9d127 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 305ea00b06e..8250e1c9a5f 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 class NumberOnly { * @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 a688abc8c1c..eec5723f2c4 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { */ @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 9f71d96892e..1e29f87050c 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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 1ae80f55325..9bc67b48804 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 class OuterComposite { * @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 class OuterComposite { * @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 class OuterComposite { * @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 190903e5da1..8cd92c2da9b 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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 0fdb7d9846e..9d3037ee7ef 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 class QuadrilateralInterface { * @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 6dc9fa80698..ce4bdcbe08b 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 class 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 class ReadOnlyFirst { * @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 42f6b6e3ca2..baee4f2ffd2 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 class ScaleneTriangle { * @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 class ScaleneTriangle { * @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 33cbf1468c3..12f884999dc 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 class ShapeInterface { * @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 2bd8ed8cee7..5727bb30d7a 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 class SimpleQuadrilateral { * @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 class SimpleQuadrilateral { * @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 4c68c65e101..725f927a688 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 class 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 class SpecialModelName { * @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 1f3d1b70d43..c001523c795 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 class Tag { * @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 class Tag { * @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 5009106af44..1f040a0612f 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 a42e130202e..79e0da32b0f 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 class TriangleInterface { * @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 df3c1d62a1d..95f1f98f673 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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { 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 class User { 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 class User { 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 6915209da7e..8a9d1d911ee 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 class Whale { * @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 class Whale { * @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 class Whale { * @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 f243b140473..6418fdd087d 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 class Zebra { * @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 class Zebra { * @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 2cf25a2f999..b468b8e5d4a 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 class Category { * @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 class Category { * @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 d3006b6d90e..4ca9e881d6d 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 class ModelApiResponse { * @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 class ModelApiResponse { * @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 class ModelApiResponse { * @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 5f26e5ea72b..7d371a731fe 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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 0583aea38c8..d1d4085f29b 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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { */ @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 c1167878632..0acdf6fa6aa 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 class Tag { * @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 class Tag { * @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 ac81688d3e5..c5f2f711d66 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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 4d5873ff4be..a369b87ae28 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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; } - @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { * @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 8c4120f43c3..c7ade34dcf8 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 class Animal { * @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 class Animal { * @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 7208141b66e..89ebbba9f08 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 class Apple { * @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 class Apple { * @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 1fc9194c0a2..8dc311927f0 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 class AppleReq { * @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 class AppleReq { * @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 cf74edc4da5..b6ab26fd392 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 class ArrayOfArrayOfNumberOnly { * @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 e055897bc83..7b103825b27 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 class ArrayOfNumberOnly { * @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 c48a63105c5..31f126664e3 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 class ArrayTest { * @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 class ArrayTest { * @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 class ArrayTest { * @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 655edeb7bd3..61a49897f95 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 class Banana { * @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 0f0c5016c79..bf3538f8fee 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 class BananaReq { * @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 class BananaReq { * @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 7a5337831d0..311ee80f802 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 class BasquePig { * @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 51296c35d41..293fef0613d 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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 class Capitalization { * @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 f5bd7cfc618..ba8e0027d07 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 class Cat extends Animal { * @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 3fe366d4531..8b5f1175a2e 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 class Category { * @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 class Category { * @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 fbf01365599..5da7dc88372 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 class ChildCat extends ParentPet { * @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 class ChildCat extends ParentPet { * @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 3fc8f53290e..266138705a1 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 class ClassModel { * @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 858c2faca44..d1f3c580323 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 class 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 8597a09b728..0413d1ff74a 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 class ComplexQuadrilateral { * @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 class ComplexQuadrilateral { * @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 c8979d5657a..8dddd7f1e39 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 class DanishPig { * @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 34d6a368aba..1a7f3ad403b 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 class DeprecatedObject { * @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 57738a491c5..002a0ebdffa 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 class Dog extends Animal { * @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 736e513b91e..2de6deb0713 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 class Drawing { * @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 class Drawing { * @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 class Drawing { 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 class Drawing { * @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 042102f55db..ea3f5cb3103 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 class EnumArrays { * @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 class EnumArrays { * @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 8bb98473445..818c7281d64 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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { * @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 class EnumTest { * @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 e32d754481c..f76722a19c2 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 class EquilateralTriangle { * @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 class EquilateralTriangle { * @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 b07c8b48e04..5c34272a5a8 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { * @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 48665cd8949..805c0babbd7 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { * @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 64331c187b7..54ec257f8ed 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 class Foo { * @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 96cde0a9187..90c9302b8d7 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 class FooGetDefaultResponse { * @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 03ff756440b..5c98c183607 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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 class FormatTest { * @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 1bba7dff3bc..a6e3ac4e04a 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 class GrandparentAnimal { * @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 a78aa3516d0..3eafe6e94e8 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 class 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 class HasOnlyReadOnly { * @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 bb041ee2a52..681ab15f173 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 class HealthCheckResult { 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 65fd85df9f9..5a5707264dc 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 class IsoscelesTriangle { * @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 class IsoscelesTriangle { * @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 d175d24f263..b221c7b6ad0 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 class MapTest { * @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 class MapTest { * @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 class MapTest { * @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 class MapTest { * @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 73cb44a3468..8e4ef0780d0 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 e8340c41380..111afd50b5f 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 class Model200Response { * @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 class Model200Response { * @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 fa5d0110f22..81f78519fc8 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 class ModelApiResponse { * @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 class ModelApiResponse { * @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 class ModelApiResponse { * @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 b9265f67f0a..e89344ba925 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 class ModelFile { * @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 032474560ba..457d3abaa9c 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 class ModelList { * @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 1f6a48c3898..07916edda29 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 class ModelReturn { * @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 7c94b56f879..440415993e3 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 class 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 class 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 class Name { * @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 class Name { * @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 cdad5996870..7b99a712d2a 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 53b210b4804..e70dff802fd 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 class NumberOnly { * @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 c20a4eb052b..d6e304269e7 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { */ @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 956861c2cbe..e065abae925 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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 class Order { * @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 ccf90445ee9..b2ece85058b 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 class OuterComposite { * @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 class OuterComposite { * @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 class OuterComposite { * @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 92d1a7d1306..229b2c99fcf 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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 class Pet { * @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 d9cc4c17c47..820af526bc8 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 class QuadrilateralInterface { * @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 4fe79b07f20..1942e764750 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 class 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 class ReadOnlyFirst { * @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 7714be27032..8691132bc5e 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 class ScaleneTriangle { * @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 class ScaleneTriangle { * @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 19aea705473..a73764fbb88 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 class ShapeInterface { * @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 c4cdfa94f0a..e511e9c9cca 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 class SimpleQuadrilateral { * @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 class SimpleQuadrilateral { * @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 fdfcfb00782..8e6302729b2 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 class 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 class SpecialModelName { * @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 50ad5fc31af..0b0e4a33ff0 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 class Tag { * @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 class Tag { * @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 3e83584761d..d2c8814bc1b 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 e80c2b8d860..9fd045af981 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 class TriangleInterface { * @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 7fa85b46b2e..dd99e875406 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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { * @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 class User { 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 class User { 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 class User { 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 5300ffcaacf..34ae9fc7be9 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 class Whale { * @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 class Whale { * @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 class Whale { * @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 d9d51fcde2c..3b911f1cfa1 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 class Zebra { * @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 class Zebra { * @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 7afa7bb48b5..6055b22892e 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 class AdditionalPropertiesAnyType extends HashMap { */ @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 class AdditionalPropertiesAnyType extends HashMap { } - @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 855f2d9d623..6121428a797 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 class AdditionalPropertiesArray extends HashMap { */ @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 class AdditionalPropertiesArray extends HashMap { } - @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 68775875488..d9374b57666 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 class AdditionalPropertiesBoolean extends HashMap { */ @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 class AdditionalPropertiesBoolean extends HashMap { } - @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 56819b671cb..3d75a07b7a4 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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayInteger() { @@ -262,7 +262,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapString() { @@ -332,7 +332,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @javax.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapAnytype() { @@ -367,7 +367,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 e84e6317c4f..b1eb603aa4e 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 class AdditionalPropertiesInteger extends HashMap { */ @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 class AdditionalPropertiesInteger extends HashMap { } - @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 b72954eac67..fe54f311f4b 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 class AdditionalPropertiesNumber extends HashMap { */ @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 class AdditionalPropertiesNumber extends HashMap { } - @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 98826a1db23..d94721bcf01 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 class AdditionalPropertiesObject extends HashMap { */ @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 class AdditionalPropertiesObject extends HashMap { } - @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 ddddf228184..1728f15e473 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 class AdditionalPropertiesString extends HashMap { */ @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 class AdditionalPropertiesString extends HashMap { } - @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 c9a116326a0..2e95c940a22 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 class Animal { @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 class Animal { } - @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 class Animal { */ @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 class Animal { } - @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 779ff1f19d3..8d2f5b6162c 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 class ArrayOfArrayOfNumberOnly { @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 class ArrayOfArrayOfNumberOnly { } - @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 6e0d017b71c..495199831c8 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 class ArrayOfNumberOnly { @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 class ArrayOfNumberOnly { } - @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 68cf8438c6e..aa597c7a1fe 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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { @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 class ArrayTest { } - @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 class ArrayTest { @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 class ArrayTest { } - @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 98a5cca7f7f..938cafae62a 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 class BigCat extends Cat { */ @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 class BigCat extends Cat { } - @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 9dfda2d3180..8152205c52d 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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 d3bd1afe5dc..d6ec0d15112 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 class Cat extends Animal { */ @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 class Cat extends Animal { } - @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 2da83a34e05..2ba68545ce4 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 class Category { */ @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { @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 class Category { } - @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 1dda713f1b7..670aec2c85f 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 class ClassModel { */ @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 class ClassModel { } - @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 c8d8fb1ec76..b5d59b9146c 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 class 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 class 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/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 4adc301bdd5..5dd9d7be240 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 class Dog extends Animal { */ @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 class Dog extends Animal { } - @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 894ed7eebe0..f15fa1089ed 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 class EnumArrays { */ @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 class EnumArrays { } - @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 class EnumArrays { */ @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 class EnumArrays { } - @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 7c03dee5d93..40080b9878d 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { @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 class EnumTest { } - @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 cf168ea3e28..1f4296e0b4d 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 class FileSchemaTestClass { @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { } - @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 acfba72240e..828f7d185d6 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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 5fda4c02961..acb213b0cf7 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 class 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 class 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 class HasOnlyReadOnly { */ @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 4da05d15f82..c928a8ab241 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 class MapTest { @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 178f69dcd0e..1cce93e243a 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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 9211e3da104..b78cee6f4b8 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 class Model200Response { */ @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 class Model200Response { } - @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 class Model200Response { */ @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 class Model200Response { } - @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 d9f351c6b20..af2a09bd4e1 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 5cb6b3a169c..8cb73b98202 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 class ModelFile { */ @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 class ModelFile { } - @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 950f2d9d55f..52eb5b11ad2 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 class ModelList { */ @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 class ModelList { } - @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 b3cc4261237..1fdee065951 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 class ModelReturn { */ @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 class ModelReturn { } - @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 243fe538383..4f7d1e4ccaa 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 class 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 class 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 class 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; @@ -102,7 +102,7 @@ public class 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 class Name { */ @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 class Name { } - @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 class Name { */ @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 a33a4768976..4e46a901b70 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 class NumberOnly { @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 class NumberOnly { } - @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 1fa5129bf50..b65e3d058ae 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 class Order { */ @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 8f3ce472db7..3780bc855f9 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 class OuterComposite { @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 06f7f8d89eb..21d894266c2 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 class Pet { */ @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 2d61698c442..9ec683362b4 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 class 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 class 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 class ReadOnlyFirst { */ @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 class ReadOnlyFirst { } - @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 a5b8dbcb50e..24fa9840cac 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 class 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 class 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 a70b698b127..f325cdbc7c7 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 class Tag { */ @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { */ @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 class Tag { } - @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 65eb6453233..2ed0abac63b 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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 de657b960f2..faeec9617d3 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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 dd08acc163c..69deb67371f 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 class User { */ @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 be49e02ce75..8ffdaefa00d 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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 9d6609593e3..388eb30e036 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 class ByteArrayObject { 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 class ByteArrayObject { * @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 class ByteArrayObject { } - @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 class ByteArrayObject { 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 class ByteArrayObject { * @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 class ByteArrayObject { } - @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 class ByteArrayObject { * @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 class ByteArrayObject { } - @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 4a3c0df9cc2..35611aad246 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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @jakarta.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @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() { @@ -109,7 +109,7 @@ public class AdditionalPropertiesClass { } - @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 987d45cdef9..b7079539803 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 class AllOfWithSingleRef { */ @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { */ @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 class AllOfWithSingleRef { } - @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 93e39160fc6..35fde59be1a 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 class Animal { */ @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 class Animal { } - @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 class Animal { */ @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 class Animal { } - @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 ed15d178056..d8c94a3ac5d 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 class ArrayOfArrayOfNumberOnly { */ @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 class ArrayOfArrayOfNumberOnly { } - @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 f78b23397d0..b8bb29d1f8e 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 class ArrayOfNumberOnly { */ @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 class ArrayOfNumberOnly { } - @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 c216662a78c..155e3aa0128 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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { */ @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 class ArrayTest { } - @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 590e1efc8a9..cf9427605b7 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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 82b0f511d43..435d527b0c3 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 class Cat extends Animal { */ @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 class Cat extends Animal { } - @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 9c6887414dc..95dcc59fae1 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 class Category { */ @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 class Category { } - @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 class Category { */ @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 class Category { } - @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 66d30b4a691..58a5fcf0650 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 class ChildWithNullable extends ParentWithNullable { */ @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 class ChildWithNullable extends ParentWithNullable { } - @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 7164e1e739b..875de73f810 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 class ClassModel { */ @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 class ClassModel { } - @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 b99a99f6c26..fa4ba6916e8 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 class 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 class Client { } - @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 0c960ab9e62..f5cab33258d 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 class DeprecatedObject { */ @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 class DeprecatedObject { } - @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 223bb9b2c1e..8540c0be08c 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 class Dog extends Animal { */ @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 class Dog extends Animal { } - @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 9d3ac59d883..df5dd9e9913 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 class EnumArrays { */ @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 class EnumArrays { } - @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 class EnumArrays { */ @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 class EnumArrays { } - @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 c7132426bab..fb4fee649d6 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 2df80fd0505..ef0cf6beaa6 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 class FakeBigDecimalMap200Response { */ @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { */ @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 class FakeBigDecimalMap200Response { } - @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 69b687cf7d0..3bfc296c43c 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 class FileSchemaTestClass { */ @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { */ @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 class FileSchemaTestClass { } - @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 a6d7ce8f061..8ac3e28621d 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 class Foo { */ @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 class Foo { } - @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 65bc312d25e..568c2399628 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 class FooGetDefaultResponse { */ @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 class FooGetDefaultResponse { } - @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 866f92c5bfe..809d94ed908 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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 a711b2db349..4032a368d38 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 class 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 class HasOnlyReadOnly { */ @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 d973f1e28e8..a1922245f93 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 class HealthCheckResult { 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 0e00948fe9e..755b0e57e97 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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 2b7468968fe..d8ac1026378 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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 99c6461e8ba..5350c4dea46 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 class Model200Response { */ @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 class Model200Response { } - @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 class Model200Response { */ @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 class Model200Response { } - @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 0dc565ea855..2e42ca33ab0 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 033af31fba0..ac2f1b7299f 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 class ModelFile { */ @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 class ModelFile { } - @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 7e8ea3af426..a3b6110a3cf 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 class ModelList { */ @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 class ModelList { } - @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 022c1740ea4..1c7cd7829fc 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 class ModelReturn { */ @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 class ModelReturn { } - @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 33badc53706..9d96f896507 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 class 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 class Name { } - @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 class 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 class Name { */ @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 class Name { } - @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 class Name { */ @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 9d88be7f65c..869717bf376 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { */ @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { */ @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 class NullableClass { } - @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 cc97d20867e..fb49cf6e269 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 class NumberOnly { */ @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 class NumberOnly { } - @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 8a501950551..429af66115c 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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { } - @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 7639563acc6..27041f31777 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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 070329dfb1c..1d17721a2f7 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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 c1fd0678f89..b7859c56a36 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 class OuterObjectWithEnumProperty { */ @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 class OuterObjectWithEnumProperty { } - @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 2744174881b..7bfadd2a4a1 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 class ParentWithNullable { */ @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 6bd43f4e116..82d638e7913 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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 5dbd7a4a442..ee86a4e3de0 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 class 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 class ReadOnlyFirst { */ @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 class ReadOnlyFirst { } - @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 867287f1246..65fbc9c1a87 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 class 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 class 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 7bac797ac28..4db0feda758 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 class Tag { */ @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 class Tag { } - @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 class Tag { */ @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 class Tag { } - @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 15b805f10cd..eaacaa06b13 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 class TestInlineFreeformAdditionalPropertiesRequest { */ @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 b9d82f4e952..375f75b3c46 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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 a90c962979d..649ac5b808f 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @jakarta.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 ed656c05115..a4c5dc44024 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 5d953f42729..a6079a052a2 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 a151adc7cec..3f68c19abe6 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 4fc87ba03b5..83a78a64459 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 9b59d439f18..bdd1cbc6aa7 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 e25fddbdc25..5fffe092927 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 d90e7608a7f..623afc5cd55 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 a40eb2dde2e..b42bb6a1245 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 class Category { * @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 class Category { } - @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 class Category { * @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 class Category { } - @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 a1ab3b1e678..ed50d7e7f7d 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1bfbadd89a5..27ecd55725e 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 class ClassModel { * @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 class ClassModel { } - @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 34cee327d68..c04a3457e5c 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 class 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 class Client { } - @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 efd8cae5654..8d483ec3e8a 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 c7826d226a5..1d04776ca4d 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 463d95df3c0..2006c0857f9 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 988251aa876..03597917fa3 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 239661740b1..29c8e25c008 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 5668a7aea47..40c3c6e52ff 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 827cbd6bdfe..6bbeb3b5ebd 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 class Foo { * @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 class Foo { } - @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 14364cf9373..a7b34141a2e 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 106d38f692c..9b861c8a1a4 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 98cd4322dfe..2a4c04441ff 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 class 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 class HasOnlyReadOnly { * @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 8d9de7e7475..9c0ac6478fe 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 class HealthCheckResult { 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 8610793925e..fbb0c2a250a 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 3b3b53bd6f4..633c1a3f7ec 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 d0f8853555e..4259b8d2d6f 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 bf4359eeee1..093fca7f680 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 f7f930b5f81..11ec90d12c8 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 class ModelFile { * @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 class ModelFile { } - @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 70d61225642..6b2b536f034 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 class ModelList { * @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 class ModelList { } - @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 b44e351a32f..97d20efa034 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 class ModelReturn { * @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 class ModelReturn { } - @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 1ba9f4b9efb..572c8c455ff 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 class 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 class Name { } - @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 class 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 class Name { * @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 class Name { } - @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 class Name { * @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 e7b2b966bda..0e1b52a8814 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 ecd1681390e..e842bfd7f75 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 class NumberOnly { * @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 class NumberOnly { } - @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 4a49fa52b38..4c78d29d6c6 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 87736bbf7c4..581de823139 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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 6c8f9c1cf22..246cc9e3329 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 9e882650ff8..ee662372ad0 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 b77f962e34c..c7397c9497b 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 972cf1acaa1..a20cf1b0f14 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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 8d99f52aca9..49cbb8b0e0c 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 469b9950257..0ab26e1be2b 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 class 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 class 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 837a1aa18ff..c72669d2257 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 class Tag { * @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 class Tag { } - @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 class Tag { * @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 class Tag { } - @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 296b99cb24f..c7e901faf9e 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 0d670d5492a..6005ea81bee 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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 a90c962979d..649ac5b808f 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @jakarta.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 ed656c05115..a4c5dc44024 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 5d953f42729..a6079a052a2 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 a151adc7cec..3f68c19abe6 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 4fc87ba03b5..83a78a64459 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 9b59d439f18..bdd1cbc6aa7 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 e25fddbdc25..5fffe092927 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 d90e7608a7f..623afc5cd55 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 a40eb2dde2e..b42bb6a1245 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 class Category { * @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 class Category { } - @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 class Category { * @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 class Category { } - @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 a1ab3b1e678..ed50d7e7f7d 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1bfbadd89a5..27ecd55725e 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 class ClassModel { * @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 class ClassModel { } - @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 34cee327d68..c04a3457e5c 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 class 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 class Client { } - @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 efd8cae5654..8d483ec3e8a 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 c7826d226a5..1d04776ca4d 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 463d95df3c0..2006c0857f9 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 988251aa876..03597917fa3 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 239661740b1..29c8e25c008 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 5668a7aea47..40c3c6e52ff 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 827cbd6bdfe..6bbeb3b5ebd 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 class Foo { * @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 class Foo { } - @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 14364cf9373..a7b34141a2e 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 106d38f692c..9b861c8a1a4 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 98cd4322dfe..2a4c04441ff 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 class 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 class HasOnlyReadOnly { * @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 8d9de7e7475..9c0ac6478fe 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 class HealthCheckResult { 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 8610793925e..fbb0c2a250a 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 3b3b53bd6f4..633c1a3f7ec 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 d0f8853555e..4259b8d2d6f 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 bf4359eeee1..093fca7f680 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 f7f930b5f81..11ec90d12c8 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 class ModelFile { * @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 class ModelFile { } - @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 70d61225642..6b2b536f034 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 class ModelList { * @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 class ModelList { } - @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 b44e351a32f..97d20efa034 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 class ModelReturn { * @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 class ModelReturn { } - @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 1ba9f4b9efb..572c8c455ff 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 class 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 class Name { } - @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 class 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 class Name { * @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 class Name { } - @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 class Name { * @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 e7b2b966bda..0e1b52a8814 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 ecd1681390e..e842bfd7f75 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 class NumberOnly { * @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 class NumberOnly { } - @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 4a49fa52b38..4c78d29d6c6 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 87736bbf7c4..581de823139 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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 6c8f9c1cf22..246cc9e3329 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 9e882650ff8..ee662372ad0 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 b77f962e34c..c7397c9497b 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 972cf1acaa1..a20cf1b0f14 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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 8d99f52aca9..49cbb8b0e0c 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 469b9950257..0ab26e1be2b 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 class 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 class 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 837a1aa18ff..c72669d2257 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 class Tag { * @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 class Tag { } - @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 class Tag { * @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 class Tag { } - @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 296b99cb24f..c7e901faf9e 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 0d670d5492a..6005ea81bee 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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 b55059fa8f4..17614a28c7d 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @jakarta.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 ed656c05115..a4c5dc44024 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 5d953f42729..a6079a052a2 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 bc98eb4dde5..986d5b27a7e 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 7b151f20ef7..571f8e912e4 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 b312f72e3d7..e84ca27edf1 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 e25fddbdc25..5fffe092927 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 d90e7608a7f..623afc5cd55 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 a40eb2dde2e..b42bb6a1245 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 class Category { * @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 class Category { } - @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 class Category { * @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 class Category { } - @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 a1ab3b1e678..ed50d7e7f7d 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1bfbadd89a5..27ecd55725e 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 class ClassModel { * @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 class ClassModel { } - @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 34cee327d68..c04a3457e5c 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 class 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 class Client { } - @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 efd8cae5654..8d483ec3e8a 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 c7826d226a5..1d04776ca4d 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 b911699943d..d2b8dde5bd4 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 988251aa876..03597917fa3 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 a8900a26242..5140ec820b4 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 b9b2448aec8..16ddf3085f0 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 827cbd6bdfe..6bbeb3b5ebd 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 class Foo { * @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 class Foo { } - @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 14364cf9373..a7b34141a2e 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 106d38f692c..9b861c8a1a4 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 98cd4322dfe..2a4c04441ff 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 class 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 class HasOnlyReadOnly { * @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 8d9de7e7475..9c0ac6478fe 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 class HealthCheckResult { 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 24f3feea215..f0404f6aebb 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 035ec9b37fb..fcfa5d4791e 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 d0f8853555e..4259b8d2d6f 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 bf4359eeee1..093fca7f680 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 f7f930b5f81..11ec90d12c8 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 class ModelFile { * @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 class ModelFile { } - @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 70d61225642..6b2b536f034 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 class ModelList { * @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 class ModelList { } - @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 b44e351a32f..97d20efa034 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 class ModelReturn { * @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 class ModelReturn { } - @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 1ba9f4b9efb..572c8c455ff 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 class 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 class Name { } - @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 class 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 class Name { * @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 class Name { } - @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 class Name { * @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 123492aa5ec..5efdf61197b 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 ecd1681390e..e842bfd7f75 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 class NumberOnly { * @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 class NumberOnly { } - @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 6ee674ed1c0..6dcda1d97fb 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 87736bbf7c4..581de823139 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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 6c8f9c1cf22..246cc9e3329 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 9e882650ff8..ee662372ad0 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 b77f962e34c..c7397c9497b 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 7bac1a76dd2..7b4848eafea 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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 8d99f52aca9..49cbb8b0e0c 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 469b9950257..0ab26e1be2b 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 class 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 class 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 837a1aa18ff..c72669d2257 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 class Tag { * @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 class Tag { } - @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 class Tag { * @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 class Tag { } - @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 296b99cb24f..c7e901faf9e 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 0d670d5492a..6005ea81bee 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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 f99361d4d0a..0536c33fe90 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 26d46cb0ac9..6d8944fce3d 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 5ef4c91df20..19755da7cd8 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 6ce9b83c67e..c2d684e2fcf 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 f36135202ce..28fbf8c2d5b 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 2453f58cc35..e0175f2d03d 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 5682f213b65..e4864216208 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 33872f36026..be8e7fd55e9 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 78cc077529b..249f14c58a6 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 ec7b8f7e313..f0910711118 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 74dd4385a90..bc883861da5 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 class ClassModel { * @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 class ClassModel { } - @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 99fe381a876..76b0c5cac91 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 class 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 class 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/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 667be6e27ff..d06066490e9 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 9c932cb01bd..63cc53e6602 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 e6cca680c1f..95af14f9eb1 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 fd1ad1a42dc..905dfb17455 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 16f1b68bbcd..4e6af414357 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 a05efa3c913..28eae4a9c51 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 c85972a7b23..9da778b7804 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 class Foo { * @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 class Foo { } - @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 1f2159ab4ec..48668506357 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 8e9b9fbbf77..6600f7b20e5 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 ef912674bde..dd34438d5ed 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 class 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 class 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 class HasOnlyReadOnly { * @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 e7acb5847d1..6c68cba6f3c 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 class HealthCheckResult { 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 ec9e81743d7..99c72041af4 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 b480c7d542d..d0219f2e217 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 2a69b55cfd6..7a268eb4a14 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 f080773624a..1255ae56e3d 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 21f812364f0..45f97655028 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 class ModelFile { * @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 class ModelFile { } - @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 c24868360f6..dfef26ef7fb 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 class ModelList { * @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 class ModelList { } - @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 b7ca4af717d..6901c048a0a 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 class ModelReturn { * @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 class ModelReturn { } - @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 dce25ead211..4c67288873e 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 class 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 class 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 class 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; @@ -96,7 +96,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 62877f172a8..4d9dc0c5370 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 a91f0c49358..c0748fb6a1c 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 class NumberOnly { * @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 class NumberOnly { } - @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 82e32c8a38c..a7865e2253d 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 64b26edbd41..54308806a1d 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 3ba67944ba1..d4122b6599f 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 4dd4534e941..db2c78fc32b 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 b59dbe0c734..d85b036b919 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 2a0fdfd8c10..91c27389915 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 d1147f1fda3..eee83de7ead 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 class 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 1e8cf30bc34..9ac2edeb246 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 class 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 class 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 c46a759548f..666772aed4b 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 59a40a36e96..9e49fc2ab4b 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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap getPhotoUrls() { @@ -220,7 +220,7 @@ public class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 fa550c2067c..96b0a0009de 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 class Tag { * @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 class Tag { } - @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 class Tag { * @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 class Tag { } - @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 a5a4d07fe26..af4064f71fa 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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 1a895c2d58d..e42959cb552 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 class Category { */ @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { */ @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 class Category { } - @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 3ff45f50e07..ad2e6130c31 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 b7c6e372af6..982f4de1528 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 class Order { */ @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 e5ada803fbf..21e8f948d45 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 class Pet { */ @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 5398b4a2d48..405115f26c1 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 class Tag { */ @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { */ @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 class Tag { } - @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 fa72657936b..29e7677d26d 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 class User { */ @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 3a6ba4ddb5d..d0f875abf8f 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 class Category { */ @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { */ @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 class Category { } - @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 e65661314e3..af309bd6a51 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 2852ae16616..70b7168f461 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 class Order { */ @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 f45892a3e7f..f5eb8f68bfe 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 class Pet { */ @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 73527453e8d..14a9b877d7a 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 class Tag { */ @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { */ @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 class Tag { } - @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 6ccd07bfeff..8a5e8862aee 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 class User { */ @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 caa4d48bdd0..d2c7fdb73b3 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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) @@ -121,7 +121,7 @@ public class AdditionalPropertiesClass { } - @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 7298a5ca86a..6429eb8d843 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 e80e9e41f80..b7f541cdbd5 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 566e5e5ad1d..a5cc1b51ce5 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 73f9591aca7..fd4ee602d82 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 19c9fc50ec8..5d6fd73b1d6 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 9f9e874c577..b8ce6ca783e 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 c4648ec9b77..b804f222590 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 876c2719878..b17b2cb8315 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 class Category { * @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 class Category { } - @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 class Category { * @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 class Category { } - @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 548133322e4..17d8d0e8cf5 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 8ec6a565377..67166cdd679 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 class ClassModel { * @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 class ClassModel { } - @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 19e8756795e..30d53cd9aaf 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 class 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 class Client { } - @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 db183cbc787..8b06e3c26bf 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 9aba5d8f8c6..11e6b8eaf7b 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 7b4e7102dad..323e452f696 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 f507eada5a4..af1c738197b 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 1a02e667f8c..c3cb7e5c430 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 017cf687799..7ebc16f6e1f 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 695077a322c..7b6984f8916 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 class Foo { * @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 class Foo { } - @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 823c4169207..ec866529202 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 cccb2099043..91f2914f798 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 356d9ced734..94bcd64a272 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 class 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 class HasOnlyReadOnly { * @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 45d398acb4c..8202c636cf9 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 class HealthCheckResult { 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 4b85a029f25..21efbcd45b9 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 c7ce62ce3e3..eeb676a6573 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 1db13de8167..2431302a770 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 8e3ccf6e3b7..3cf357dac0a 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 738297724cd..b772364365a 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 class ModelFile { * @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 class ModelFile { } - @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 2b3b23033dc..fb2d2dec4d0 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 class ModelList { * @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 class ModelList { } - @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 7fecc905dec..c17fd98594c 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 class ModelReturn { * @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 class ModelReturn { } - @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 b6f381ace7a..b3cd356abdf 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 class 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 class Name { } - @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 class 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 class Name { * @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 class Name { } - @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 class Name { * @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 706363e64b2..d0aba5bda81 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 527a1ca7413..d7bf16e535a 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 class NumberOnly { * @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 class NumberOnly { } - @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 b01e30fa38f..6bf754fa77e 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 1cf25c4f9de..073e0e91907 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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 b4884ae3e64..32bf089a38d 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 a643010396f..c71b108d1dd 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 6e4652a2d67..4864de7df6c 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 87dd7365c31..866164d052a 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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 b51616d7f09..f4d96bdc297 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 904045082b8..50634d79ce2 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 class 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 class 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 2a691f47fdf..d780965da81 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 class Tag { * @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 class Tag { } - @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 class Tag { * @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 class Tag { } - @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 8a5ce1ea5d8..d91115d40a1 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 2c359c41418..248a9445692 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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 bcba8b7fe96..aaa6435254e 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -114,7 +114,7 @@ public class AdditionalPropertiesClass { } - @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 797c9901881..e113d5a6dfc 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 7a86da2b530..6ad5d759dd2 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 ecdb178d05e..c053828df8e 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 873a753564e..a70067a9ded 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 b24514f6148..0650850ffc2 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 1ef86784b6b..f58f9317440 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 38fe848776b..f6d91178f23 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 847f70f4d84..b79edf0e2d3 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 45885b81148..7106c5e3d4e 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 3b1aacae82f..9551155194b 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 class ClassModel { * @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 class ClassModel { } - @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 9978bc018d9..c66ce2647d3 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 class 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 class 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/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 85483454435..d5d655a0232 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 ad493d820d0..2d9681597cb 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 e20cb742cef..0c936fbfc5b 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 41db7c8e9f9..0b1ab084775 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 efd89324e21..6c21c83172a 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 fb71c3cd180..2f53e072edf 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 bd14dfea3f6..604a90207e2 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 class Foo { * @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 class Foo { } - @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 1d997843085..599939dd1fa 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 bd083c20fc3..4650ad75827 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 540e7bf4ca7..fd998c31d8d 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 class 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 class HasOnlyReadOnly { * @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 ef874cfe637..481a66b9e36 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 class HealthCheckResult { 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 ff9a014c8c6..b141c06eb3a 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 ad1dacc935d..05828f94fdf 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 a643c04784b..23a636c3840 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 a4413f60c9d..89a20d8ed27 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 02aaddaeba9..ecf45673662 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 class ModelFile { * @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 class ModelFile { } - @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 f0754681cd5..55636e54f0b 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 class ModelList { * @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 class ModelList { } - @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 ba6d459617d..78c725682a4 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 class ModelReturn { * @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 class ModelReturn { } - @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 793d8d9e73b..18216921b1a 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 class 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 class 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; @@ -106,7 +106,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 46579c1237b..cfebe28d4cf 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 91babf5b7c5..1b801cb389b 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 class NumberOnly { * @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 class NumberOnly { } - @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 8a4c3e4583c..01ae38bcd40 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 0a3325c71ff..cc9e15db826 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 b8a0b1c43d1..85c8e0d74a7 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 ee090938c86..09c767d8f30 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 217f93a421c..8eac0383a47 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 d3807c7ef9c..d6ddbc55183 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 bb6e501c6c3..3f642c4a46b 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 class 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() { @@ -87,7 +87,7 @@ public class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 db2f94127fb..1bf3cab721c 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 class 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() { @@ -66,7 +66,7 @@ public class 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/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 1cef09eee0a..9e8b9c24dab 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 b304ad0ee3d..22bff35a89e 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 59245d028f3..4642f1b230d 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 4ccce4284ce..019a2c3ddd9 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 class AdditionalPropertiesAnyType extends HashMap { */ @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 class AdditionalPropertiesAnyType extends HashMap { } - @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 e4069be39c4..9a601ab1f90 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 class AdditionalPropertiesArray extends HashMap { */ @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 class AdditionalPropertiesArray extends HashMap { } - @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 79631d3a4b0..377b31d82fa 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 class AdditionalPropertiesBoolean extends HashMap { */ @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 class AdditionalPropertiesBoolean extends HashMap { } - @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 7ca892fb3cf..0961b8a73d3 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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayInteger() { @@ -261,7 +261,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapString() { @@ -331,7 +331,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { @jakarta.annotation.Nullable @Valid - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapAnytype() { @@ -366,7 +366,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 4cc12b74234..dbfe7c12846 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 class AdditionalPropertiesInteger extends HashMap { */ @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 class AdditionalPropertiesInteger extends HashMap { } - @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 c04dadb8cdd..646a4e1dfe6 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 class AdditionalPropertiesNumber extends HashMap { */ @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 class AdditionalPropertiesNumber extends HashMap { } - @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 f2d8a6767e8..a050fb3d5bb 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 class AdditionalPropertiesObject extends HashMap { */ @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 class AdditionalPropertiesObject extends HashMap { } - @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 3775365f8dd..546ff89e17e 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 class AdditionalPropertiesString extends HashMap { */ @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 class AdditionalPropertiesString extends HashMap { } - @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 9070112bdad..ad45485eba5 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 class Animal { @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 class Animal { } - @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 class Animal { */ @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 class Animal { } - @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 55c6ff38a29..d3d30eae598 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 class ArrayOfArrayOfNumberOnly { @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 class ArrayOfArrayOfNumberOnly { } - @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 ebb18fdd0b0..35720379617 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 class ArrayOfNumberOnly { @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 class ArrayOfNumberOnly { } - @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 2c9710c2bd7..fc2d80d40be 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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { @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 class ArrayTest { } - @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 class ArrayTest { @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 class ArrayTest { } - @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 fb115cbebd6..afe9095fc3a 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 class BigCat extends Cat { */ @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 class BigCat extends Cat { } - @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 75ffc68734a..3391b762cfa 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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 968e3c1a093..67c104f1ee9 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 class Cat extends Animal { */ @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 class Cat extends Animal { } - @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 e15375f3bec..89146cb191e 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 class Category { */ @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 class Category { } - @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 class Category { @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 class Category { } - @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 18aeff1c552..6a658186362 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 class ClassModel { */ @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 class ClassModel { } - @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 688ecce52ee..800cc12f7fa 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 class 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 class Client { } - @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 cce91a43a74..f797e289581 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 class Dog extends Animal { */ @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 class Dog extends Animal { } - @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 f05fa0f7222..bede10b6bd2 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 class EnumArrays { */ @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 class EnumArrays { } - @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 class EnumArrays { */ @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 class EnumArrays { } - @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 886d8fb3b76..7844c5358ce 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { @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 class EnumTest { } - @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 cada12453b2..1f1fdcf35d6 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 class FileSchemaTestClass { @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { @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 class FileSchemaTestClass { } - @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 8ca67a1a06e..3c18128f59f 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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 class FormatTest { @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 class FormatTest { } - @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 94bb5f78d66..c6c0c4048e6 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 class 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 class 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 class HasOnlyReadOnly { */ @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 f1e2049deb7..a74c3358579 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 class MapTest { @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 8b6afe61668..d9fe5e4b3d0 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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 2dd824d3cde..c49524b23b6 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 class Model200Response { */ @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 class Model200Response { } - @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 class Model200Response { */ @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 class Model200Response { } - @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 b9e2b3209a3..d714136dc2c 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 210fdbca8c2..507ea6b9768 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 class ModelFile { */ @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 class ModelFile { } - @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 638249853d5..fa9cd237fb5 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 class ModelList { */ @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 class ModelList { } - @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 4ef980ddbb3..84c1a7ba1e7 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 class ModelReturn { */ @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 class ModelReturn { } - @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 6b70762e6dd..d1f82440db5 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 class 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 class 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 class Name { } - @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 class 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 class Name { */ @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 class Name { } - @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 class Name { */ @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 7c7c095179c..e7d01cba9d5 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 class NumberOnly { @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 class NumberOnly { } - @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 48bf1a1bef2..0a88a7ad6aa 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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 1bf488f520f..461af6c2f22 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 class OuterComposite { @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 37512339c09..c4fa19d15d6 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 class Pet { */ @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 class Pet { @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 class Pet { } - @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 class Pet { @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 class Pet { @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 class Pet { @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 a534ee81e00..6535b5f95fe 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 class 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 class 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 class ReadOnlyFirst { */ @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 class ReadOnlyFirst { } - @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 c7fd24aaac6..efb3a1de3b3 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 class 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 class 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 e3588b9f5ea..e58f000e961 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 class Tag { */ @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 class Tag { } - @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 class Tag { */ @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 class Tag { } - @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 b367d3bf73b..71099d0ea1f 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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { @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 class TypeHolderDefault { } - @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 d18a4751b3e..e594190018a 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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 class TypeHolderExample { @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 class TypeHolderExample { } - @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 be191af70ea..05b437d4084 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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 b895008c76a..41569415677 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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 class XmlItem { */ @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 class XmlItem { } - @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 8afd2f5020e..610378be1a1 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 class AdditionalPropertiesAnyType extends HashMap { * @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 class AdditionalPropertiesAnyType extends HashMap { } - @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 cec74b5439c..0b2756a13a2 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 class AdditionalPropertiesArray extends HashMap { * @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 class AdditionalPropertiesArray extends HashMap { } - @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 864af85f525..20dc974d3eb 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 class AdditionalPropertiesBoolean extends HashMap { * @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 class AdditionalPropertiesBoolean extends HashMap { } - @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 5fc006ae735..c8a10cd27d4 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapArrayInteger */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonProperty(value = JSON_PROPERTY_MAP_ARRAY_INTEGER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapArrayInteger() { @@ -252,7 +252,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapString */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_STRING, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapString() { @@ -318,7 +318,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapMapAnytype */ @javax.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonProperty(value = JSON_PROPERTY_MAP_MAP_ANYTYPE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map> getMapMapAnytype() { @@ -351,7 +351,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 c0628c3f799..139c4eb9323 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 class AdditionalPropertiesInteger extends HashMap { * @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 class AdditionalPropertiesInteger extends HashMap { } - @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 87d3efd48e4..e3bc73e2947 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 class AdditionalPropertiesNumber extends HashMap { * @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 class AdditionalPropertiesNumber extends HashMap { } - @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 f5bb8adb470..0e559595190 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 class AdditionalPropertiesObject extends HashMap { * @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 class AdditionalPropertiesObject extends HashMap { } - @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 b2ac0ee76ee..9ecc332272b 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 class AdditionalPropertiesString extends HashMap { * @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 class AdditionalPropertiesString extends HashMap { } - @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 4dfe4513e00..093d8446f10 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 6ce9b83c67e..c2d684e2fcf 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 f36135202ce..28fbf8c2d5b 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 2453f58cc35..e0175f2d03d 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 07c91941dbf..d9c0cb3a9a0 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 class BigCat extends Cat { * @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 class BigCat extends Cat { } - @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 5682f213b65..e4864216208 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 6e1800185d6..f4ea08ab72b 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 78cc077529b..249f14c58a6 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 74dd4385a90..bc883861da5 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 class ClassModel { * @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 class ClassModel { } - @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 99fe381a876..76b0c5cac91 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 class 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 class 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/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 9c932cb01bd..63cc53e6602 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 e6cca680c1f..95af14f9eb1 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 da91df336aa..6c7c1718ee7 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 a05efa3c913..28eae4a9c51 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 c62bf47bde8..c17bd7a09c1 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 ef912674bde..dd34438d5ed 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 class 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 class 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 class HasOnlyReadOnly { * @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 ec9e81743d7..99c72041af4 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 b480c7d542d..d0219f2e217 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 2a69b55cfd6..7a268eb4a14 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 f080773624a..1255ae56e3d 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 21f812364f0..45f97655028 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 class ModelFile { * @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 class ModelFile { } - @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 c24868360f6..dfef26ef7fb 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 class ModelList { * @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 class ModelList { } - @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 b7ca4af717d..6901c048a0a 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 class ModelReturn { * @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 class ModelReturn { } - @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 dce25ead211..4c67288873e 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 class 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 class 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 class 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; @@ -96,7 +96,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 a91f0c49358..c0748fb6a1c 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 class NumberOnly { * @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 class NumberOnly { } - @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 64b26edbd41..54308806a1d 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 3ba67944ba1..d4122b6599f 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 2a0fdfd8c10..91c27389915 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 d1147f1fda3..eee83de7ead 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 class 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 2d571740d95..4ab74a64c27 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 class 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 class 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 c46a759548f..666772aed4b 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 0548be6b0e3..10f17b5ff91 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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 class TypeHolderDefault { * @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 class TypeHolderDefault { } - @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 39766e339f9..d482405dc44 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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 class TypeHolderExample { * @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 class TypeHolderExample { } - @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 006f4222a31..f342e9bcd3a 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 f10791f784a..92df8c1d5b3 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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 class XmlItem { * @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 class XmlItem { } - @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 f99361d4d0a..0536c33fe90 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 26d46cb0ac9..6d8944fce3d 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 5ef4c91df20..19755da7cd8 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 6ce9b83c67e..c2d684e2fcf 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 f36135202ce..28fbf8c2d5b 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 2453f58cc35..e0175f2d03d 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 5682f213b65..e4864216208 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 33872f36026..be8e7fd55e9 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 78cc077529b..249f14c58a6 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 ec7b8f7e313..f0910711118 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 74dd4385a90..bc883861da5 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 class ClassModel { * @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 class ClassModel { } - @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 99fe381a876..76b0c5cac91 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 class 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 class 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/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 667be6e27ff..d06066490e9 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 9c932cb01bd..63cc53e6602 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 e6cca680c1f..95af14f9eb1 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 fd1ad1a42dc..905dfb17455 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 16f1b68bbcd..4e6af414357 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 a05efa3c913..28eae4a9c51 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 c85972a7b23..9da778b7804 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 class Foo { * @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 class Foo { } - @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 1f2159ab4ec..48668506357 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 5e18bcfc2fd..89e3d930d0e 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 ef912674bde..dd34438d5ed 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 class 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 class 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 class HasOnlyReadOnly { * @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 e7acb5847d1..6c68cba6f3c 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 class HealthCheckResult { 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 ec9e81743d7..99c72041af4 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 b480c7d542d..d0219f2e217 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 2a69b55cfd6..7a268eb4a14 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 f080773624a..1255ae56e3d 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 21f812364f0..45f97655028 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 class ModelFile { * @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 class ModelFile { } - @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 c24868360f6..dfef26ef7fb 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 class ModelList { * @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 class ModelList { } - @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 b7ca4af717d..6901c048a0a 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 class ModelReturn { * @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 class ModelReturn { } - @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 dce25ead211..4c67288873e 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 class 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 class 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 class 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; @@ -96,7 +96,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 62877f172a8..4d9dc0c5370 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 a91f0c49358..c0748fb6a1c 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 class NumberOnly { * @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 class NumberOnly { } - @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 82e32c8a38c..a7865e2253d 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 64b26edbd41..54308806a1d 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 3ba67944ba1..d4122b6599f 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 4dd4534e941..db2c78fc32b 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 b59dbe0c734..d85b036b919 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 2a0fdfd8c10..91c27389915 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 d1147f1fda3..eee83de7ead 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 class 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 1e8cf30bc34..9ac2edeb246 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 class 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 class 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 c46a759548f..666772aed4b 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 59a40a36e96..9e49fc2ab4b 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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap getMapProperty() { @@ -73,7 +73,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 26d46cb0ac9..6d8944fce3d 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 5ef4c91df20..19755da7cd8 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 6ce9b83c67e..c2d684e2fcf 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 f36135202ce..28fbf8c2d5b 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 2453f58cc35..e0175f2d03d 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 5682f213b65..e4864216208 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 33872f36026..be8e7fd55e9 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 78cc077529b..249f14c58a6 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 ec7b8f7e313..f0910711118 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 74dd4385a90..bc883861da5 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 class ClassModel { * @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 class ClassModel { } - @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 99fe381a876..76b0c5cac91 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 class 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 class 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/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 667be6e27ff..d06066490e9 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 9c932cb01bd..63cc53e6602 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 e6cca680c1f..95af14f9eb1 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 fd1ad1a42dc..905dfb17455 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 16f1b68bbcd..4e6af414357 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 a05efa3c913..28eae4a9c51 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 c85972a7b23..9da778b7804 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 class Foo { * @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 class Foo { } - @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 1f2159ab4ec..48668506357 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 5e18bcfc2fd..89e3d930d0e 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 ef912674bde..dd34438d5ed 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 class 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 class 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 class HasOnlyReadOnly { * @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 e7acb5847d1..6c68cba6f3c 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 class HealthCheckResult { 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 ec9e81743d7..99c72041af4 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 b480c7d542d..d0219f2e217 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 2a69b55cfd6..7a268eb4a14 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 f080773624a..1255ae56e3d 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 21f812364f0..45f97655028 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 class ModelFile { * @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 class ModelFile { } - @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 c24868360f6..dfef26ef7fb 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 class ModelList { * @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 class ModelList { } - @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 b7ca4af717d..6901c048a0a 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 class ModelReturn { * @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 class ModelReturn { } - @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 dce25ead211..4c67288873e 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 class 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 class 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 class 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; @@ -96,7 +96,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 62877f172a8..4d9dc0c5370 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { 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 class NullableClass extends HashMap { * @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 class NullableClass extends HashMap { } - @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 a91f0c49358..c0748fb6a1c 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 class NumberOnly { * @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 class NumberOnly { } - @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 82e32c8a38c..a7865e2253d 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 64b26edbd41..54308806a1d 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 3ba67944ba1..d4122b6599f 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 4dd4534e941..db2c78fc32b 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 b59dbe0c734..d85b036b919 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 2a0fdfd8c10..91c27389915 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 d1147f1fda3..eee83de7ead 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 class 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 1e8cf30bc34..9ac2edeb246 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 class 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 class 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 c46a759548f..666772aed4b 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 59a40a36e96..9e49fc2ab4b 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 class TestInlineFreeformAdditionalPropertiesRequest extends HashMap getMapProperty() { @@ -73,7 +73,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @jakarta.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 ed656c05115..a4c5dc44024 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 5d953f42729..a6079a052a2 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 a151adc7cec..3f68c19abe6 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 4fc87ba03b5..83a78a64459 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 9b59d439f18..bdd1cbc6aa7 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 e25fddbdc25..5fffe092927 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 d90e7608a7f..623afc5cd55 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 a40eb2dde2e..b42bb6a1245 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 class Category { * @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 class Category { } - @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 class Category { * @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 class Category { } - @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 a1ab3b1e678..ed50d7e7f7d 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1bfbadd89a5..27ecd55725e 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 class ClassModel { * @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 class ClassModel { } - @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 34cee327d68..c04a3457e5c 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 class 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 class Client { } - @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 efd8cae5654..8d483ec3e8a 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 c7826d226a5..1d04776ca4d 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 463d95df3c0..2006c0857f9 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 988251aa876..03597917fa3 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 239661740b1..29c8e25c008 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 5668a7aea47..40c3c6e52ff 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 827cbd6bdfe..6bbeb3b5ebd 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 class Foo { * @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 class Foo { } - @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 14364cf9373..a7b34141a2e 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 106d38f692c..9b861c8a1a4 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 98cd4322dfe..2a4c04441ff 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 class 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 class HasOnlyReadOnly { * @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 8d9de7e7475..9c0ac6478fe 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 class HealthCheckResult { 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 8610793925e..fbb0c2a250a 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 3b3b53bd6f4..633c1a3f7ec 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 d0f8853555e..4259b8d2d6f 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 bf4359eeee1..093fca7f680 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 f7f930b5f81..11ec90d12c8 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 class ModelFile { * @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 class ModelFile { } - @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 70d61225642..6b2b536f034 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 class ModelList { * @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 class ModelList { } - @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 b44e351a32f..97d20efa034 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 class ModelReturn { * @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 class ModelReturn { } - @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 1ba9f4b9efb..572c8c455ff 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 class 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 class Name { } - @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 class 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 class Name { * @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 class Name { } - @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 class Name { * @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 e7b2b966bda..0e1b52a8814 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 ecd1681390e..e842bfd7f75 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 class NumberOnly { * @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 class NumberOnly { } - @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 4a49fa52b38..4c78d29d6c6 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 87736bbf7c4..581de823139 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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 6c8f9c1cf22..246cc9e3329 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 9e882650ff8..ee662372ad0 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 b77f962e34c..c7397c9497b 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 972cf1acaa1..a20cf1b0f14 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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 8d99f52aca9..49cbb8b0e0c 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 469b9950257..0ab26e1be2b 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 class 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 class 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 837a1aa18ff..c72669d2257 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 class Tag { * @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 class Tag { } - @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 class Tag { * @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 class Tag { } - @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 296b99cb24f..c7e901faf9e 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 0d670d5492a..6005ea81bee 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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 cb9773e1e99..50a6e341b9f 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 class ByteArrayObject { 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 class ByteArrayObject { * @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 class ByteArrayObject { } - @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 class ByteArrayObject { 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 class ByteArrayObject { * @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 class ByteArrayObject { } - @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 class ByteArrayObject { * @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 class ByteArrayObject { } - @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 92f6253c236..f0d18866595 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 class AdditionalPropertiesClass { */ @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { */ @javax.annotation.Nullable @Schema(requiredMode = Schema.RequiredMode.NOT_REQUIRED, description = "") - @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() { @@ -109,7 +109,7 @@ public class AdditionalPropertiesClass { } - @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 31450778271..840a066677a 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 class AllOfWithSingleRef { */ @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { */ @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 class AllOfWithSingleRef { } - @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 9455a7f8a40..294c669464e 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 class Animal { */ @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 class Animal { } - @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 class Animal { */ @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 class Animal { } - @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 04b54ae2a47..80bcd457ada 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 class ArrayOfArrayOfNumberOnly { */ @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 class ArrayOfArrayOfNumberOnly { } - @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 96e75918784..292ca20d8d4 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 class ArrayOfNumberOnly { */ @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 class ArrayOfNumberOnly { } - @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 c32f88c223a..bb407c4518b 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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { */ @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 class ArrayTest { } - @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 class ArrayTest { */ @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 class ArrayTest { } - @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 e5f0a5b3ea0..f124bc56c54 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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 class Capitalization { */ @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 class Capitalization { } - @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 e88c4a960d3..5f0e8e2056f 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 class Cat extends Animal { */ @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 class Cat extends Animal { } - @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 05779efcad4..0fd0b765f26 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 class Category { */ @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { */ @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 class Category { } - @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 c0b1fe3d484..6a6e845b375 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 class ChildWithNullable extends ParentWithNullable { */ @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 class ChildWithNullable extends ParentWithNullable { } - @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 e2948579bfe..ba1bb85d00c 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 class ClassModel { */ @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 class ClassModel { } - @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 90d78dd5a4f..3c174b1f9ed 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 class 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 class 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/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 b79f5e1d63d..6e01bab8f08 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 class DeprecatedObject { */ @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 class DeprecatedObject { } - @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 14aedb45b6b..512d8611f10 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 class Dog extends Animal { */ @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 class Dog extends Animal { } - @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 9c5613ab92d..1db13240b86 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 class EnumArrays { */ @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 class EnumArrays { } - @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 class EnumArrays { */ @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 class EnumArrays { } - @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 24706aaea46..ac1503eb607 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 class EnumTest { */ @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 class EnumTest { } - @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 556398c7b59..f5328c99757 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 class FakeBigDecimalMap200Response { */ @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { */ @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 class FakeBigDecimalMap200Response { } - @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 ace595944b7..d484eeda0b2 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 class FileSchemaTestClass { */ @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { */ @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 class FileSchemaTestClass { } - @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 9c72045fa19..022b9fd557a 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 class Foo { */ @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 class Foo { } - @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 4624fba5493..edf2cc6e828 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 class FooGetDefaultResponse { */ @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 class FooGetDefaultResponse { } - @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 8a0b1508cfc..2f3f2d9419b 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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 class FormatTest { */ @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 class FormatTest { } - @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 9b8481be246..cb7979a0f00 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 class 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 class HasOnlyReadOnly { */ @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 287113fe425..22407af20cb 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 class HealthCheckResult { 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 e10ede1f927..5c36056ce6d 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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 class MapTest { */ @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 class MapTest { } - @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 1ba95b2589b..af7746656cd 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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { */ @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 d86c6774594..9e59865ab15 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 class Model200Response { */ @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 class Model200Response { } - @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 class Model200Response { */ @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 class Model200Response { } - @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 233fa43fef7..02861447555 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 00f137ffc12..f063b1c104d 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 class ModelFile { */ @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 class ModelFile { } - @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 04c0031109b..0d535b64889 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 class ModelList { */ @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 class ModelList { } - @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 86646d3353c..6643563a915 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 class ModelReturn { */ @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 class ModelReturn { } - @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 884baccb68b..8f4e01b287f 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 class 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 class Name { } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(value = JSON_PROPERTY_NAME, required = true) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(@javax.annotation.Nonnull Integer name) { this.name = name; @@ -100,7 +100,7 @@ public class 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 class Name { */ @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 class Name { } - @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 class Name { */ @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 f55d76b222a..7590ec2f6a1 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { */ @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { */ @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 class NullableClass { } - @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 6a97846bacc..1084b52aa36 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 class NumberOnly { */ @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 class NumberOnly { } - @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 5e37a6add31..e8c03d64047 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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { } - @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 4a653e68a4f..a7678232008 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 class Order { */ @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 895fe236350..9afa9aa7ebc 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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 class OuterComposite { */ @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 class OuterComposite { } - @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 40491e18d1f..17900bbf541 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 class OuterObjectWithEnumProperty { */ @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 class OuterObjectWithEnumProperty { } - @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 a2df381276a..946b66eaa64 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 class ParentWithNullable { */ @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 83244ea8aca..c6d9bef024c 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 class Pet { */ @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 46dcb78e0f9..ca2a3efa720 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 class 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 class ReadOnlyFirst { */ @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 class ReadOnlyFirst { } - @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 1fbc4b11540..4062894a1e9 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 class 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 class 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 c5d2f12678f..e8a3e8183fb 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 class Tag { */ @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { */ @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 class Tag { } - @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 9fb025ce047..5b733844b2e 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 class TestInlineFreeformAdditionalPropertiesRequest { */ @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 2da3ee0db04..23442787c9e 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 class User { */ @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 fffa31c60b0..c5c1a4729b3 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 7917de6283e..3e834b79c70 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 d2b30b7be5e..c57ba724019 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 48a9566027c..6872779a024 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 b3618cd6bb3..4cb5c0a30b2 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 95b37fd2725..77a277749ee 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 69deb4a1f44..603d62302dd 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 1811528ef38..52c80d3d031 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 2c4f93c1185..069770946bd 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 2d4526d4cc9..f9513c201f3 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1d2b984a2cd..df3587f2cb1 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 class ClassModel { * @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 class ClassModel { } - @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 1f741134586..3aa9e08d862 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 class 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 class 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/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 6a376d1d3c2..2ac6efe31ae 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 feabffb7d9e..cf5655a34e4 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 1dd2eb4af2f..c960c69487d 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 29c2ea66790..7467156dd32 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 537bf077a8e..d0c52e55864 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 6c9547de038..400953904eb 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 1343e29a90e..58c0c144e2c 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 class Foo { * @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 class Foo { } - @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 b8e4d184c0f..9870f6d3a4d 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 72ef0dc8ebd..fa28fe18457 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 1511f85c751..19aa41b3668 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 class 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 class HasOnlyReadOnly { * @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 54fe2822805..1dc69ad7323 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 class HealthCheckResult { 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 4f8da332db1..728ef0e3f58 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 2f4808e37ca..a5aa126c16b 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 5b3e06aa982..de54dbab709 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 2fdce143483..a83ea02a10d 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 e573334caab..638a21db058 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 class ModelFile { * @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 class ModelFile { } - @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 a4f2f221946..0a30e58fe24 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 class ModelList { * @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 class ModelList { } - @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 c4f64dc9a66..6217c43b9dc 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 class ModelReturn { * @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 class ModelReturn { } - @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 5132a575a66..5c2e5328489 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 class 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 class 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; @@ -96,7 +96,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 4fa4b531ce2..b78b3f685e6 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 93f1be9d1d9..ee6767819fd 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 class NumberOnly { * @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 class NumberOnly { } - @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 8031fc62054..af1347e9cd6 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 a45e221a64e..06796399c78 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 758a2e7dcd6..df1c3898b28 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 bb003e14871..c9d09b761aa 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 6b90f664f54..81102ce36e9 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 d6bb563afc1..2f23d76354f 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 50e9c6eac9c..4a04863cef8 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 f77d213e8b7..03eaec13fbf 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 class 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 class 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 e5411e1aa51..5b0f5deb613 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 598d5be46bb..839c0fec3f8 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 d5089f07be6..b5ad5a3154b 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 a4b13544673..ba34e6bd587 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -106,7 +106,7 @@ public class AdditionalPropertiesClass { } - @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 7917de6283e..3e834b79c70 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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 class AllOfWithSingleRef { * @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 class AllOfWithSingleRef { } - @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 d2b30b7be5e..c57ba724019 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 5f8a004d80d..d903902b0fa 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 9b87a52cef4..8a3e88bef4b 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 3a595fa6776..cec45a64d2b 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 69deb4a1f44..603d62302dd 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 1811528ef38..52c80d3d031 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 2c4f93c1185..069770946bd 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 2d4526d4cc9..f9513c201f3 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 class ChildWithNullable extends ParentWithNullable { * @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 class ChildWithNullable extends ParentWithNullable { } - @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 1d2b984a2cd..df3587f2cb1 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 class ClassModel { * @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 class ClassModel { } - @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 1f741134586..3aa9e08d862 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 class 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 class 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/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 6a376d1d3c2..2ac6efe31ae 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 feabffb7d9e..cf5655a34e4 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 0590d680fec..e46d171d7ab 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 29c2ea66790..7467156dd32 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 5b295cd44c1..5aecb559dba 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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 class FakeBigDecimalMap200Response { * @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 class FakeBigDecimalMap200Response { } - @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 5f861d37f8d..4ba01a505bf 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 1343e29a90e..58c0c144e2c 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 class Foo { * @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 class Foo { } - @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 b8e4d184c0f..9870f6d3a4d 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 72ef0dc8ebd..fa28fe18457 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 1511f85c751..19aa41b3668 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 class 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 class HasOnlyReadOnly { * @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 54fe2822805..1dc69ad7323 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 class HealthCheckResult { 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 6635edc3eb3..1428ea74f60 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 4f2b05ddc94..11f0c75b6e8 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 5b3e06aa982..de54dbab709 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 2fdce143483..a83ea02a10d 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 e573334caab..638a21db058 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 class ModelFile { * @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 class ModelFile { } - @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 a4f2f221946..0a30e58fe24 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 class ModelList { * @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 class ModelList { } - @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 c4f64dc9a66..6217c43b9dc 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 class ModelReturn { * @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 class ModelReturn { } - @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 5132a575a66..5c2e5328489 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 class 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 class 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; @@ -96,7 +96,7 @@ public class 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 class Name { * @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 class Name { } - @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 class Name { * @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 3ea75832f02..ea3a9ce0132 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 93f1be9d1d9..ee6767819fd 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 class NumberOnly { * @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 class NumberOnly { } - @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 8c871297ab0..199803cfd2e 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { } - @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 a45e221a64e..06796399c78 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 758a2e7dcd6..df1c3898b28 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 bb003e14871..c9d09b761aa 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 class OuterObjectWithEnumProperty { * @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 class OuterObjectWithEnumProperty { } - @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 6b90f664f54..81102ce36e9 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 class ParentWithNullable { * @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 class ParentWithNullable { } - @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 class ParentWithNullable { 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 1baadc449a6..bb19131ea51 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 50e9c6eac9c..4a04863cef8 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 f77d213e8b7..03eaec13fbf 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 class 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 class 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 e5411e1aa51..5b0f5deb613 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 598d5be46bb..839c0fec3f8 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 d5089f07be6..b5ad5a3154b 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 d66c3a60265..bfbe607974d 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 class ChildSchema extends Parent { * @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 class ChildSchema extends Parent { } - @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 2b7fdc946e7..063a337a9e9 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 class MySchemaNameCharacters extends Parent { * @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 class MySchemaNameCharacters extends Parent { } - @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 7eb909160bf..7a453b0a431 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 class Parent { * @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 class Parent { } - @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 c0b93e33fb3..3f350253099 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 class Category { */ @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { */ @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 class Category { } - @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 302471036fc..5432f052dfd 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 f4eab45a455..d78429aad2f 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 class Order { */ @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 f797b6f8774..255884d6a35 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 class Pet { */ @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { @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 class Pet { @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 916a0d8aff3..7d641e2aa55 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 class Tag { */ @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { */ @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 class Tag { } - @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 cc19d9b4285..6975d6fc3e5 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 class User { */ @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 7a4d3097252..7161d3ac8ca 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 class Category { */ @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { */ @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 class Category { } - @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 55a545bcfe4..0e5ee97221c 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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 class ModelApiResponse { */ @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 class ModelApiResponse { } - @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 0ed4265f873..840737e3af4 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 class Order { */ @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 class Order { */ @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 class Order { } - @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 9e19fa9b54b..740e8c3f3d5 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 class Pet { */ @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { */ @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 class Pet { } - @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 class Pet { @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 class Pet { @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 2eefeff6e54..b2a8573f11b 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 class Tag { */ @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { */ @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 class Tag { } - @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 53b34252134..152ef11cc20 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 class User { */ @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 class User { */ @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 class User { } - @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 e9a761df01c..14f4977e3a8 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @return mapOfMapProperty */ @javax.annotation.Nullable - @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() { @@ -143,7 +143,7 @@ public class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { 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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 class AdditionalPropertiesClass { * @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 class AdditionalPropertiesClass { } - @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 ec382de22bf..8d36bbf6b93 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 class Animal { * @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 class Animal { } - @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 class Animal { * @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 class Animal { } - @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 8a1a9c7a915..4fb3916e9bc 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 class Apple { * @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 class Apple { } - @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 class Apple { * @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 class Apple { } - @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 2de9f7af073..69a9d811b0f 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 class AppleReq { * @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 class AppleReq { } - @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 class AppleReq { * @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 class AppleReq { } - @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 a1d5e44a270..d44b15bfb23 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 class ArrayOfArrayOfNumberOnly { * @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 class ArrayOfArrayOfNumberOnly { } - @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 a4714902bee..16c2c585cfc 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 class ArrayOfNumberOnly { * @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 class ArrayOfNumberOnly { } - @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 174b9b928a4..b1c50ff5fa0 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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 class ArrayTest { * @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 class ArrayTest { } - @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 5cf56121147..13a5695b6c3 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 class Banana { * @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 class Banana { } - @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 662d5927eb9..59e2e8b7755 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 class BananaReq { * @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 class BananaReq { } - @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 class BananaReq { * @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 class BananaReq { } - @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 4da630e8cb6..709e92325af 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 class BasquePig { * @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 class BasquePig { } - @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 319a099f0a0..b08bcad3277 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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 class Capitalization { * @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 class Capitalization { } - @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 d030ec9197a..67ad27079a0 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 class Cat extends Animal { * @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 class Cat extends Animal { } - @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 db00d8f6566..a3495554927 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 class Category { * @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 class Category { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Category { * @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 class Category { } - @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 b037a4abe44..0513013060c 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 class ChildCat extends ParentPet { * @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 class ChildCat extends ParentPet { } - @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 class ChildCat extends ParentPet { * @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 class ChildCat extends ParentPet { } - @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 9bc1ecb111b..bc96dc18d6a 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 class ClassModel { * @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 class ClassModel { } - @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 993338995c2..1fabea0eeda 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 class 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 class 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/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 10373401010..8124cb0c834 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 class ComplexQuadrilateral { * @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 class ComplexQuadrilateral { } - @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 class ComplexQuadrilateral { * @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 class ComplexQuadrilateral { } - @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 b123d6a94ab..decabf13e1a 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 class DanishPig { * @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 class DanishPig { } - @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 1f4d810ff41..f147f647444 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 class DeprecatedObject { * @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 class DeprecatedObject { } - @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 fc5e733bf42..8b86f748a59 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 class Dog extends Animal { * @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 class Dog extends Animal { } - @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 a4349e25c6d..c6f787d0b1b 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 class Drawing { * @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 class Drawing { } - @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 class Drawing { 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 class Drawing { 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 class Drawing { * @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 class Drawing { } - @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 b4f6b18473e..85756c4f8f3 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 class EnumArrays { * @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 class EnumArrays { } - @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 class EnumArrays { * @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 class EnumArrays { } - @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 2ce79666ca8..7b6758a79ad 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { 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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 class EnumTest { * @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 class EnumTest { } - @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 1c08de91491..f4a7b183144 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 class EquilateralTriangle { * @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 class EquilateralTriangle { } - @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 class EquilateralTriangle { * @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 class EquilateralTriangle { } - @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 e720ea817c3..e35def38091 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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 class FileSchemaTestClass { * @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 class FileSchemaTestClass { } - @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 fe433b59b12..f6e45324298 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 class Foo { * @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 class Foo { } - @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 1bb9db7f356..c53d70f0c54 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 class FooGetDefaultResponse { * @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 class FooGetDefaultResponse { } - @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 a915028fb53..f2da3986565 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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 class FormatTest { * @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 class FormatTest { } - @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 f555046df23..b6828dc3245 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 class GrandparentAnimal { * @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 class GrandparentAnimal { } - @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 759eddd3e5b..105096f2f67 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 class 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 class HasOnlyReadOnly { * @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 6e2bb5db882..2b8b4612119 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 class HealthCheckResult { 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 95154b00324..abb01af7009 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 class IsoscelesTriangle { * @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 class IsoscelesTriangle { } - @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 class IsoscelesTriangle { * @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 class IsoscelesTriangle { } - @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 c3eb3a90c02..c9c8cfb4301 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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 class MapTest { * @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 class MapTest { } - @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 7d00e09f726..466ecb367e5 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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 class MixedPropertiesAndAdditionalPropertiesClass { * @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 class MixedPropertiesAndAdditionalPropertiesClass { } - @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 689215b2f3d..092573737fe 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 class Model200Response { * @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 class Model200Response { } - @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 class Model200Response { * @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 class Model200Response { } - @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 fe01dd7efc5..4d09cf9cb26 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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 class ModelApiResponse { * @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 class ModelApiResponse { } - @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 9c3fd6cecbb..2b38ff10178 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 class ModelFile { * @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 class ModelFile { } - @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 0ac81084e1e..1f1be589b16 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 class ModelList { * @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 class ModelList { } - @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 ffba75a639f..675a9b3f957 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 class ModelReturn { * @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 class ModelReturn { } - @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 1931fa74d7a..5bd8e203d64 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 class 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 class 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 class 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 class Name { * @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 class Name { } - @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 class Name { * @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 c0be1e095cc..17aabaaee1e 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 class NullableClass { 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 class NullableClass { 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 class NullableClass { * @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 class NullableClass { } - @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 2c01d975939..cb277085d4d 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 class NumberOnly { * @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 class NumberOnly { } - @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 eb32f3d3407..19fb8b5c03d 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 class ObjectWithDeprecatedFields { * @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 class ObjectWithDeprecatedFields { } - @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { @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 class ObjectWithDeprecatedFields { */ @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 class ObjectWithDeprecatedFields { @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 1c4e36d89d1..afac53c8baf 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 class Order { * @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 class Order { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 class Order { * @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 class Order { } - @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 692fd9a0cd1..0709a6d9bb9 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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 class OuterComposite { * @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 class OuterComposite { } - @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 6c661d72b50..7b8deeda2b7 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 class Pet { * @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 class Pet { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 class Pet { * @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 class Pet { } - @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 701bdd2d83b..bd05a6a2c36 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 class QuadrilateralInterface { * @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 class QuadrilateralInterface { } - @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 0938d25d08f..c1f72a093c6 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 class 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 class ReadOnlyFirst { * @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 class ReadOnlyFirst { } - @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 60f7aca7603..e0892a9dfbb 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 class ScaleneTriangle { * @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 class ScaleneTriangle { } - @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 class ScaleneTriangle { * @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 class ScaleneTriangle { } - @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 25643d63a01..00fd96a2b90 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 class ShapeInterface { * @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 class ShapeInterface { } - @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 54ab913f16e..2bf8633963e 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 class SimpleQuadrilateral { * @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 class SimpleQuadrilateral { } - @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 class SimpleQuadrilateral { * @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 class SimpleQuadrilateral { } - @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 dbcd59298d0..84451301658 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 class 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 class 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 class SpecialModelName { * @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 class 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/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 52594c76570..10cd7471c4f 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 class Tag { * @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 class Tag { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class Tag { * @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 class Tag { } - @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 fd598046669..00ae87fcb64 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 class TestInlineFreeformAdditionalPropertiesRequest { * @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 class TestInlineFreeformAdditionalPropertiesRequest { } - @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 4ff30b356fd..af1cf1ca319 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 class TriangleInterface { * @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 class TriangleInterface { } - @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 11d7e35b474..5b2b42abd2b 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 class User { * @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 class User { } - @JsonProperty(JSON_PROPERTY_ID) + @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { * @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 class User { } - @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 class User { 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 class User { 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 class User { 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 c9026153aeb..92a72dbd138 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 class Whale { * @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 class Whale { } - @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 class Whale { * @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 class Whale { } - @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 class Whale { * @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 class Whale { } - @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 840916fd1a3..fb56da18896 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 class Zebra { * @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 class Zebra { } - @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 class Zebra { * @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 class Zebra { } - @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 163f85e70df..ad1dda1ffc2 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 class Category { /** * 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 class Category { * 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 class Category { /** * 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 372b9293b83..125278c51ce 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 class ModelApiResponse { * 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 class ModelApiResponse { /** * 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 17713873ba0..bdd6ee370a0 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 class Order { * 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 class Order { /** * 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 485b3a23b7a..ed5f6bf6c56 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * 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 class Pet { /** * 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 class Pet { * @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 class Pet { /** * 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 da24f6b0b53..54aa5945d77 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 class Tag { /** * 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 class Tag { * 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 class Tag { /** * 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 dfdd5a3f82c..d1359873cfc 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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 class User { * 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 class User { /** * 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;