fix: honor required fields in jackson @JsonProperty annotations (#21876)

* fix: honor required fields in jackson @JsonProperty annotations

* add samples

* fix: trigger build

* fix: undo

* update to handle nullable as well

---------

Co-authored-by: Erik Lagerholm <erik.lagerholm@volvocars.com>
This commit is contained in:
William Cheng
2025-09-03 16:41:59 +08:00
committed by GitHub
parent babb3e272b
commit 6e443f1354
1415 changed files with 8393 additions and 8393 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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<StringEnumRef> 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<StringEnumRef> 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<ArrayStringEnumDefaultEnum> 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<ArrayStringEnumDefaultEnum> 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<String> 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<String> 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<Integer> 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<Integer> 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<String> 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<String> 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<List<String>> getArrayStringNullable_JsonNullable() {
return arrayStringNullable;
}
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_NULLABLE)
@JsonProperty(value = JSON_PROPERTY_ARRAY_STRING_NULLABLE, required = false)
public void setArrayStringNullable_JsonNullable(JsonNullable<List<String>> 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<List<String>> 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<List<String>> 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<String> getStringNullable_JsonNullable() {
return stringNullable;
}
@JsonProperty(JSON_PROPERTY_STRING_NULLABLE)
@JsonProperty(value = JSON_PROPERTY_STRING_NULLABLE, required = false)
public void setStringNullable_JsonNullable(JsonNullable<String> stringNullable) {
this.stringNullable = stringNullable;
}

View File

@@ -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;

View File

@@ -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<String> 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<String> 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<Tag> 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<Tag> 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;

View File

@@ -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<OutcomesEnum> 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<OutcomesEnum> outcomes) {
this.outcomes = outcomes;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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<String> 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<String> values) {
this.values = values;