Add nullability annotations to Java generated clients (#19617)

* issue-1960: Add nullability annotations to Java generated clients

Motivations:
Have generated clients properly annotated for nullability to be able to check code using them with tools like NullAway

Modifications:
* Add nullable_var_annotations template to handle nullability annotation on vars
* Add pojo templates to use the nullability template
* Adapt tests

* issue-1960: Add nullability annotations to Java generated clients

Modifications:
* Run export_docs_generator.sh script to update samples
This commit is contained in:
Nicolas Vervelle
2024-10-16 10:14:29 +02:00
committed by GitHub
parent 8f7d9f7467
commit 65b1859161
1582 changed files with 14871 additions and 9980 deletions

View File

@@ -36,15 +36,17 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Bird {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public Bird() {
}
public Bird size(String size) {
public Bird size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -65,11 +67,11 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public Bird color(String color) {
public Bird color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -90,7 +92,7 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -36,15 +36,17 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Category {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -65,11 +67,11 @@ public class Category {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -90,7 +92,7 @@ public class Category {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -42,19 +42,22 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DataQuery extends Query {
public static final String JSON_PROPERTY_SUFFIX = "suffix";
@javax.annotation.Nullable
private String suffix;
public static final String JSON_PROPERTY_TEXT = "text";
@javax.annotation.Nullable
private String text;
public static final String JSON_PROPERTY_DATE = "date";
@javax.annotation.Nullable
private OffsetDateTime date;
public DataQuery() {
}
public DataQuery suffix(String suffix) {
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
return this;
@@ -75,11 +78,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_SUFFIX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuffix(String suffix) {
public void setSuffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
}
public DataQuery text(String text) {
public DataQuery text(@javax.annotation.Nullable String text) {
this.text = text;
return this;
@@ -100,11 +103,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setText(String text) {
public void setText(@javax.annotation.Nullable String text) {
this.text = text;
}
public DataQuery date(OffsetDateTime date) {
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
return this;
@@ -125,18 +128,18 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDate(OffsetDateTime date) {
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
}
@Override
public DataQuery id(Long id) {
public DataQuery id(@javax.annotation.Nullable Long id) {
this.setId(id);
return this;
}
@Override
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.setOutcomes(outcomes);
return this;
}

View File

@@ -50,6 +50,7 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DefaultValue {
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default";
@javax.annotation.Nullable
private List<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
/**
@@ -90,30 +91,37 @@ public class DefaultValue {
}
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
@javax.annotation.Nullable
private List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE));
public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default";
@javax.annotation.Nullable
private List<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
@javax.annotation.Nullable
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
@javax.annotation.Nullable
private List<String> arrayString = new ArrayList<>();
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
@javax.annotation.Nullable
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
@javax.annotation.Nullable
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
@javax.annotation.Nullable
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
public DefaultValue() {
}
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
return this;
@@ -142,11 +150,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
}
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
return this;
@@ -175,11 +183,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
}
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
return this;
@@ -208,11 +216,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringDefault(List<String> arrayStringDefault) {
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
}
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
return this;
@@ -241,11 +249,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
}
public DefaultValue arrayString(List<String> arrayString) {
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
return this;
@@ -274,11 +282,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayString(List<String> arrayString) {
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
}
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
return this;
@@ -319,11 +327,11 @@ public class DefaultValue {
this.arrayStringNullable = arrayStringNullable;
}
public void setArrayStringNullable(List<String> arrayStringNullable) {
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
}
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
return this;
@@ -364,11 +372,11 @@ public class DefaultValue {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
}
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
}
public DefaultValue stringNullable(String stringNullable) {
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
return this;
@@ -397,7 +405,7 @@ public class DefaultValue {
this.stringNullable = stringNullable;
}
public void setStringNullable(String stringNullable) {
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
}

View File

@@ -38,18 +38,21 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class NumberPropertiesOnly {
public static final String JSON_PROPERTY_NUMBER = "number";
@javax.annotation.Nullable
private BigDecimal number;
public static final String JSON_PROPERTY_FLOAT = "float";
@javax.annotation.Nullable
private Float _float;
public static final String JSON_PROPERTY_DOUBLE = "double";
@javax.annotation.Nullable
private Double _double;
public NumberPropertiesOnly() {
}
public NumberPropertiesOnly number(BigDecimal number) {
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
return this;
@@ -70,11 +73,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumber(BigDecimal number) {
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
}
public NumberPropertiesOnly _float(Float _float) {
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
this._float = _float;
return this;
@@ -95,11 +98,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFloat(Float _float) {
public void setFloat(@javax.annotation.Nullable Float _float) {
this._float = _float;
}
public NumberPropertiesOnly _double(Double _double) {
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
this._double = _double;
return this;
@@ -122,7 +125,7 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDouble(Double _double) {
public void setDouble(@javax.annotation.Nullable Double _double) {
this._double = _double;
}

View File

@@ -45,18 +45,23 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Pet {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nonnull
private String name;
public static final String JSON_PROPERTY_CATEGORY = "category";
@javax.annotation.Nullable
private Category category;
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
@javax.annotation.Nonnull
private List<String> photoUrls = new ArrayList<>();
public static final String JSON_PROPERTY_TAGS = "tags";
@javax.annotation.Nullable
private List<Tag> tags = new ArrayList<>();
/**
@@ -97,12 +102,13 @@ public class Pet {
}
public static final String JSON_PROPERTY_STATUS = "status";
@javax.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -123,11 +129,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
@@ -148,11 +154,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
@@ -173,11 +179,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
@@ -206,11 +212,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
@@ -239,11 +245,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
@@ -264,7 +270,7 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -39,6 +39,7 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Query {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
protected Long id;
/**
@@ -79,12 +80,13 @@ public class Query {
}
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
@javax.annotation.Nullable
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
public Query() {
}
public Query id(Long id) {
public Query id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -105,11 +107,11 @@ public class Query {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Query outcomes(List<OutcomesEnum> outcomes) {
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
return this;
@@ -138,7 +140,7 @@ public class Query {
@JsonProperty(JSON_PROPERTY_OUTCOMES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOutcomes(List<OutcomesEnum> outcomes) {
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
}

View File

@@ -36,15 +36,17 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Tag {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -65,11 +67,11 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -90,7 +92,7 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -36,12 +36,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestFormObjectMultipartRequestMarker {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestFormObjectMultipartRequestMarker() {
}
public TestFormObjectMultipartRequestMarker name(String name) {
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -62,7 +63,7 @@ public class TestFormObjectMultipartRequestMarker {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -39,21 +39,25 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -74,11 +78,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -99,11 +103,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -124,11 +128,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -149,7 +153,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -39,12 +39,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
public static final String JSON_PROPERTY_VALUES = "values";
@javax.annotation.Nullable
private List<String> values = new ArrayList<>();
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
}
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
this.values = values;
return this;
@@ -73,7 +74,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValues(List<String> values) {
public void setValues(@javax.annotation.Nullable List<String> values) {
this.values = values;
}

View File

@@ -29,16 +29,18 @@ import java.io.IOException;
public class Bird {
public static final String SERIALIZED_NAME_SIZE = "size";
@SerializedName(SERIALIZED_NAME_SIZE)
@javax.annotation.Nullable
private String size;
public static final String SERIALIZED_NAME_COLOR = "color";
@SerializedName(SERIALIZED_NAME_COLOR)
@javax.annotation.Nullable
private String color;
public Bird() {
}
public Bird size(String size) {
public Bird size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -55,12 +57,12 @@ public class Bird {
}
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public Bird color(String color) {
public Bird color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -77,7 +79,7 @@ public class Bird {
}
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -29,16 +29,18 @@ import java.io.IOException;
public class Category {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -55,12 +57,12 @@ public class Category {
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -77,7 +79,7 @@ public class Category {
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -34,21 +34,24 @@ import org.openapitools.client.model.Query;
public class DataQuery extends Query {
public static final String SERIALIZED_NAME_SUFFIX = "suffix";
@SerializedName(SERIALIZED_NAME_SUFFIX)
@javax.annotation.Nullable
private String suffix;
public static final String SERIALIZED_NAME_TEXT = "text";
@SerializedName(SERIALIZED_NAME_TEXT)
@javax.annotation.Nullable
private String text;
public static final String SERIALIZED_NAME_DATE = "date";
@SerializedName(SERIALIZED_NAME_DATE)
@javax.annotation.Nullable
private OffsetDateTime date;
public DataQuery() {
}
public DataQuery suffix(String suffix) {
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
return this;
@@ -65,12 +68,12 @@ public class DataQuery extends Query {
}
public void setSuffix(String suffix) {
public void setSuffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
}
public DataQuery text(String text) {
public DataQuery text(@javax.annotation.Nullable String text) {
this.text = text;
return this;
@@ -87,12 +90,12 @@ public class DataQuery extends Query {
}
public void setText(String text) {
public void setText(@javax.annotation.Nullable String text) {
this.text = text;
}
public DataQuery date(OffsetDateTime date) {
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
return this;
@@ -109,7 +112,7 @@ public class DataQuery extends Query {
}
public void setDate(OffsetDateTime date) {
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
}

View File

@@ -34,6 +34,7 @@ import org.openapitools.jackson.nullable.JsonNullable;
public class DefaultValue {
public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT)
@javax.annotation.Nullable
private List<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
/**
@@ -87,36 +88,43 @@ public class DefaultValue {
public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT)
@javax.annotation.Nullable
private List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE));
public static final String SERIALIZED_NAME_ARRAY_STRING_DEFAULT = "array_string_default";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_DEFAULT)
@javax.annotation.Nullable
private List<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
public static final String SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT = "array_integer_default";
@SerializedName(SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT)
@javax.annotation.Nullable
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
public static final String SERIALIZED_NAME_ARRAY_STRING = "array_string";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING)
@javax.annotation.Nullable
private List<String> arrayString = new ArrayList<>();
public static final String SERIALIZED_NAME_ARRAY_STRING_NULLABLE = "array_string_nullable";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_NULLABLE)
@javax.annotation.Nullable
private List<String> arrayStringNullable;
public static final String SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE)
@javax.annotation.Nullable
private List<String> arrayStringExtensionNullable;
public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable";
@SerializedName(SERIALIZED_NAME_STRING_NULLABLE)
@javax.annotation.Nullable
private String stringNullable;
public DefaultValue() {
}
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
return this;
@@ -141,12 +149,12 @@ public class DefaultValue {
}
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
}
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
return this;
@@ -171,12 +179,12 @@ public class DefaultValue {
}
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
}
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
return this;
@@ -201,12 +209,12 @@ public class DefaultValue {
}
public void setArrayStringDefault(List<String> arrayStringDefault) {
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
}
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
return this;
@@ -231,12 +239,12 @@ public class DefaultValue {
}
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
}
public DefaultValue arrayString(List<String> arrayString) {
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
return this;
@@ -261,12 +269,12 @@ public class DefaultValue {
}
public void setArrayString(List<String> arrayString) {
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
}
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = arrayStringNullable;
return this;
@@ -291,12 +299,12 @@ public class DefaultValue {
}
public void setArrayStringNullable(List<String> arrayStringNullable) {
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = arrayStringNullable;
}
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
return this;
@@ -321,12 +329,12 @@ public class DefaultValue {
}
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
}
public DefaultValue stringNullable(String stringNullable) {
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = stringNullable;
return this;
@@ -343,7 +351,7 @@ public class DefaultValue {
}
public void setStringNullable(String stringNullable) {
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = stringNullable;
}

View File

@@ -30,20 +30,23 @@ import java.math.BigDecimal;
public class NumberPropertiesOnly {
public static final String SERIALIZED_NAME_NUMBER = "number";
@SerializedName(SERIALIZED_NAME_NUMBER)
@javax.annotation.Nullable
private BigDecimal number;
public static final String SERIALIZED_NAME_FLOAT = "float";
@SerializedName(SERIALIZED_NAME_FLOAT)
@javax.annotation.Nullable
private Float _float;
public static final String SERIALIZED_NAME_DOUBLE = "double";
@SerializedName(SERIALIZED_NAME_DOUBLE)
@javax.annotation.Nullable
private Double _double;
public NumberPropertiesOnly() {
}
public NumberPropertiesOnly number(BigDecimal number) {
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
return this;
@@ -60,12 +63,12 @@ public class NumberPropertiesOnly {
}
public void setNumber(BigDecimal number) {
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
}
public NumberPropertiesOnly _float(Float _float) {
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
this._float = _float;
return this;
@@ -82,12 +85,12 @@ public class NumberPropertiesOnly {
}
public void setFloat(Float _float) {
public void setFloat(@javax.annotation.Nullable Float _float) {
this._float = _float;
}
public NumberPropertiesOnly _double(Double _double) {
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
this._double = _double;
return this;
@@ -106,7 +109,7 @@ public class NumberPropertiesOnly {
}
public void setDouble(Double _double) {
public void setDouble(@javax.annotation.Nullable Double _double) {
this._double = _double;
}

View File

@@ -34,22 +34,27 @@ import org.openapitools.client.model.Tag;
public class Pet {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nonnull
private String name;
public static final String SERIALIZED_NAME_CATEGORY = "category";
@SerializedName(SERIALIZED_NAME_CATEGORY)
@javax.annotation.Nullable
private Category category;
public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls";
@SerializedName(SERIALIZED_NAME_PHOTO_URLS)
@javax.annotation.Nonnull
private List<String> photoUrls = new ArrayList<>();
public static final String SERIALIZED_NAME_TAGS = "tags";
@SerializedName(SERIALIZED_NAME_TAGS)
@javax.annotation.Nullable
private List<Tag> tags = new ArrayList<>();
/**
@@ -103,12 +108,13 @@ public class Pet {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
@javax.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -125,12 +131,12 @@ public class Pet {
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
@@ -147,12 +153,12 @@ public class Pet {
}
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
@@ -169,12 +175,12 @@ public class Pet {
}
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
@@ -199,12 +205,12 @@ public class Pet {
}
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
@@ -229,12 +235,12 @@ public class Pet {
}
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
@@ -251,7 +257,7 @@ public class Pet {
}
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -32,6 +32,7 @@ import java.util.List;
public class Query {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
/**
@@ -85,12 +86,13 @@ public class Query {
public static final String SERIALIZED_NAME_OUTCOMES = "outcomes";
@SerializedName(SERIALIZED_NAME_OUTCOMES)
@javax.annotation.Nullable
private List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
public Query() {
}
public Query id(Long id) {
public Query id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -107,12 +109,12 @@ public class Query {
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Query outcomes(List<OutcomesEnum> outcomes) {
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
return this;
@@ -137,7 +139,7 @@ public class Query {
}
public void setOutcomes(List<OutcomesEnum> outcomes) {
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
}

View File

@@ -29,16 +29,18 @@ import java.io.IOException;
public class Tag {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -55,12 +57,12 @@ public class Tag {
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -77,7 +79,7 @@ public class Tag {
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -29,12 +29,13 @@ import java.io.IOException;
public class TestFormObjectMultipartRequestMarker {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public TestFormObjectMultipartRequestMarker() {
}
public TestFormObjectMultipartRequestMarker name(String name) {
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -51,7 +52,7 @@ public class TestFormObjectMultipartRequestMarker {
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -29,24 +29,28 @@ import java.io.IOException;
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
public static final String SERIALIZED_NAME_SIZE = "size";
@SerializedName(SERIALIZED_NAME_SIZE)
@javax.annotation.Nullable
private String size;
public static final String SERIALIZED_NAME_COLOR = "color";
@SerializedName(SERIALIZED_NAME_COLOR)
@javax.annotation.Nullable
private String color;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -63,12 +67,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
}
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -85,12 +89,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
}
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -107,12 +111,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -129,7 +133,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -32,12 +32,13 @@ import java.util.List;
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
public static final String SERIALIZED_NAME_VALUES = "values";
@SerializedName(SERIALIZED_NAME_VALUES)
@javax.annotation.Nullable
private List<String> values = new ArrayList<>();
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
}
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
this.values = values;
return this;
@@ -62,7 +63,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
}
public void setValues(List<String> values) {
public void setValues(@javax.annotation.Nullable List<String> values) {
this.values = values;
}

View File

@@ -39,15 +39,17 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Bird {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public Bird() {
}
public Bird size(String size) {
public Bird size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
}
@@ -66,12 +68,12 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public Bird color(String color) {
public Bird color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
}
@@ -90,7 +92,7 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -39,15 +39,17 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Category {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -66,12 +68,12 @@ public class Category {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -90,7 +92,7 @@ public class Category {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -44,18 +44,21 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DataQuery extends Query {
public static final String JSON_PROPERTY_SUFFIX = "suffix";
@javax.annotation.Nullable
private String suffix;
public static final String JSON_PROPERTY_TEXT = "text";
@javax.annotation.Nullable
private String text;
public static final String JSON_PROPERTY_DATE = "date";
@javax.annotation.Nullable
private Instant date;
public DataQuery() {
}
public DataQuery suffix(String suffix) {
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
return this;
}
@@ -74,12 +77,12 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_SUFFIX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuffix(String suffix) {
public void setSuffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
}
public DataQuery text(String text) {
public DataQuery text(@javax.annotation.Nullable String text) {
this.text = text;
return this;
}
@@ -98,12 +101,12 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setText(String text) {
public void setText(@javax.annotation.Nullable String text) {
this.text = text;
}
public DataQuery date(Instant date) {
public DataQuery date(@javax.annotation.Nullable Instant date) {
this.date = date;
return this;
}
@@ -122,19 +125,19 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDate(Instant date) {
public void setDate(@javax.annotation.Nullable Instant date) {
this.date = date;
}
@Override
public DataQuery id(Long id) {
public DataQuery id(@javax.annotation.Nullable Long id) {
this.setId(id);
return this;
}
@Override
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.setOutcomes(outcomes);
return this;
}

View File

@@ -52,6 +52,7 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DefaultValue {
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default";
@javax.annotation.Nullable
private List<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
/**
@@ -92,15 +93,19 @@ public class DefaultValue {
}
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
@javax.annotation.Nullable
private List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE));
public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default";
@javax.annotation.Nullable
private List<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
@javax.annotation.Nullable
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
@javax.annotation.Nullable
private List<String> arrayString = new ArrayList<>();
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
@@ -115,7 +120,7 @@ public class DefaultValue {
public DefaultValue() {
}
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
return this;
}
@@ -142,12 +147,12 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
}
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
return this;
}
@@ -174,12 +179,12 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
}
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
return this;
}
@@ -206,12 +211,12 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringDefault(List<String> arrayStringDefault) {
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
}
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
return this;
}
@@ -238,12 +243,12 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
}
public DefaultValue arrayString(List<String> arrayString) {
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
return this;
}
@@ -270,12 +275,12 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayString(List<String> arrayString) {
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
}
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
return this;
}
@@ -314,12 +319,12 @@ public class DefaultValue {
this.arrayStringNullable = arrayStringNullable;
}
public void setArrayStringNullable(List<String> arrayStringNullable) {
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
}
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
return this;
}
@@ -358,12 +363,12 @@ public class DefaultValue {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
}
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
}
public DefaultValue stringNullable(String stringNullable) {
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
return this;
}
@@ -390,7 +395,7 @@ public class DefaultValue {
this.stringNullable = stringNullable;
}
public void setStringNullable(String stringNullable) {
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
}

View File

@@ -41,18 +41,21 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class NumberPropertiesOnly {
public static final String JSON_PROPERTY_NUMBER = "number";
@javax.annotation.Nullable
private BigDecimal number;
public static final String JSON_PROPERTY_FLOAT = "float";
@javax.annotation.Nullable
private Float _float;
public static final String JSON_PROPERTY_DOUBLE = "double";
@javax.annotation.Nullable
private Double _double;
public NumberPropertiesOnly() {
}
public NumberPropertiesOnly number(BigDecimal number) {
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
return this;
}
@@ -71,12 +74,12 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumber(BigDecimal number) {
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
}
public NumberPropertiesOnly _float(Float _float) {
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
this._float = _float;
return this;
}
@@ -95,12 +98,12 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFloat(Float _float) {
public void setFloat(@javax.annotation.Nullable Float _float) {
this._float = _float;
}
public NumberPropertiesOnly _double(Double _double) {
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
this._double = _double;
return this;
}
@@ -121,7 +124,7 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDouble(Double _double) {
public void setDouble(@javax.annotation.Nullable Double _double) {
this._double = _double;
}

View File

@@ -47,18 +47,23 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Pet {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nonnull
private String name;
public static final String JSON_PROPERTY_CATEGORY = "category";
@javax.annotation.Nullable
private Category category;
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
@javax.annotation.Nonnull
private List<String> photoUrls = new ArrayList<>();
public static final String JSON_PROPERTY_TAGS = "tags";
@javax.annotation.Nullable
private List<Tag> tags = new ArrayList<>();
/**
@@ -99,12 +104,13 @@ public class Pet {
}
public static final String JSON_PROPERTY_STATUS = "status";
@javax.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -123,12 +129,12 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
}
@@ -147,12 +153,12 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
}
@@ -171,12 +177,12 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
@@ -203,12 +209,12 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
}
@@ -235,12 +241,12 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
}
@@ -259,7 +265,7 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -41,6 +41,7 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Query {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
/**
@@ -81,12 +82,13 @@ public class Query {
}
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
@javax.annotation.Nullable
private List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
public Query() {
}
public Query id(Long id) {
public Query id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -105,12 +107,12 @@ public class Query {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Query outcomes(List<OutcomesEnum> outcomes) {
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
return this;
}
@@ -137,7 +139,7 @@ public class Query {
@JsonProperty(JSON_PROPERTY_OUTCOMES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOutcomes(List<OutcomesEnum> outcomes) {
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
}

View File

@@ -39,15 +39,17 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Tag {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -66,12 +68,12 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -90,7 +92,7 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -38,12 +38,13 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestFormObjectMultipartRequestMarker {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestFormObjectMultipartRequestMarker() {
}
public TestFormObjectMultipartRequestMarker name(String name) {
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -62,7 +63,7 @@ public class TestFormObjectMultipartRequestMarker {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -41,21 +41,25 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
}
@@ -74,12 +78,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
}
@@ -98,12 +102,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -122,12 +126,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -40,12 +40,13 @@ import org.openapitools.client.ApiClient;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
public static final String JSON_PROPERTY_VALUES = "values";
@javax.annotation.Nullable
private List<String> values = new ArrayList<>();
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
}
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
this.values = values;
return this;
}
@@ -72,7 +73,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValues(List<String> values) {
public void setValues(@javax.annotation.Nullable List<String> values) {
this.values = values;
}

View File

@@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
public class Category {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -75,12 +77,12 @@ public class Category {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -94,7 +96,7 @@ public class Category {
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -52,20 +52,23 @@ import org.openapitools.client.JSON;
public class ModelApiResponse {
public static final String SERIALIZED_NAME_CODE = "code";
@SerializedName(SERIALIZED_NAME_CODE)
@javax.annotation.Nullable
private Integer code;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
@javax.annotation.Nullable
private String type;
public static final String SERIALIZED_NAME_MESSAGE = "message";
@SerializedName(SERIALIZED_NAME_MESSAGE)
@javax.annotation.Nullable
private String message;
public ModelApiResponse() {
}
public ModelApiResponse code(Integer code) {
public ModelApiResponse code(@javax.annotation.Nullable Integer code) {
this.code = code;
return this;
}
@@ -79,12 +82,12 @@ public class ModelApiResponse {
return code;
}
public void setCode(Integer code) {
public void setCode(@javax.annotation.Nullable Integer code) {
this.code = code;
}
public ModelApiResponse type(String type) {
public ModelApiResponse type(@javax.annotation.Nullable String type) {
this.type = type;
return this;
}
@@ -98,12 +101,12 @@ public class ModelApiResponse {
return type;
}
public void setType(String type) {
public void setType(@javax.annotation.Nullable String type) {
this.type = type;
}
public ModelApiResponse message(String message) {
public ModelApiResponse message(@javax.annotation.Nullable String message) {
this.message = message;
return this;
}
@@ -117,7 +120,7 @@ public class ModelApiResponse {
return message;
}
public void setMessage(String message) {
public void setMessage(@javax.annotation.Nullable String message) {
this.message = message;
}

View File

@@ -53,18 +53,22 @@ import org.openapitools.client.JSON;
public class Order {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_PET_ID = "petId";
@SerializedName(SERIALIZED_NAME_PET_ID)
@javax.annotation.Nullable
private Long petId;
public static final String SERIALIZED_NAME_QUANTITY = "quantity";
@SerializedName(SERIALIZED_NAME_QUANTITY)
@javax.annotation.Nullable
private Integer quantity;
public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate";
@SerializedName(SERIALIZED_NAME_SHIP_DATE)
@javax.annotation.Nullable
private OffsetDateTime shipDate;
/**
@@ -123,16 +127,18 @@ public class Order {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
@javax.annotation.Nullable
private StatusEnum status;
public static final String SERIALIZED_NAME_COMPLETE = "complete";
@SerializedName(SERIALIZED_NAME_COMPLETE)
@javax.annotation.Nullable
private Boolean complete = false;
public Order() {
}
public Order id(Long id) {
public Order id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -146,12 +152,12 @@ public class Order {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Order petId(Long petId) {
public Order petId(@javax.annotation.Nullable Long petId) {
this.petId = petId;
return this;
}
@@ -165,12 +171,12 @@ public class Order {
return petId;
}
public void setPetId(Long petId) {
public void setPetId(@javax.annotation.Nullable Long petId) {
this.petId = petId;
}
public Order quantity(Integer quantity) {
public Order quantity(@javax.annotation.Nullable Integer quantity) {
this.quantity = quantity;
return this;
}
@@ -184,12 +190,12 @@ public class Order {
return quantity;
}
public void setQuantity(Integer quantity) {
public void setQuantity(@javax.annotation.Nullable Integer quantity) {
this.quantity = quantity;
}
public Order shipDate(OffsetDateTime shipDate) {
public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) {
this.shipDate = shipDate;
return this;
}
@@ -203,12 +209,12 @@ public class Order {
return shipDate;
}
public void setShipDate(OffsetDateTime shipDate) {
public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) {
this.shipDate = shipDate;
}
public Order status(StatusEnum status) {
public Order status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
}
@@ -222,12 +228,12 @@ public class Order {
return status;
}
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}
public Order complete(Boolean complete) {
public Order complete(@javax.annotation.Nullable Boolean complete) {
this.complete = complete;
return this;
}
@@ -241,7 +247,7 @@ public class Order {
return complete;
}
public void setComplete(Boolean complete) {
public void setComplete(@javax.annotation.Nullable Boolean complete) {
this.complete = complete;
}

View File

@@ -56,22 +56,27 @@ import org.openapitools.client.JSON;
public class Pet {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_CATEGORY = "category";
@SerializedName(SERIALIZED_NAME_CATEGORY)
@javax.annotation.Nullable
private Category category;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nonnull
private String name;
public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls";
@SerializedName(SERIALIZED_NAME_PHOTO_URLS)
@javax.annotation.Nonnull
private List<String> photoUrls = new ArrayList<>();
public static final String SERIALIZED_NAME_TAGS = "tags";
@SerializedName(SERIALIZED_NAME_TAGS)
@javax.annotation.Nullable
private List<Tag> tags = new ArrayList<>();
/**
@@ -131,12 +136,13 @@ public class Pet {
public static final String SERIALIZED_NAME_STATUS = "status";
@Deprecated
@SerializedName(SERIALIZED_NAME_STATUS)
@javax.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -150,12 +156,12 @@ public class Pet {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
}
@@ -169,12 +175,12 @@ public class Pet {
return category;
}
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
}
@@ -188,12 +194,12 @@ public class Pet {
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
@@ -215,12 +221,12 @@ public class Pet {
return photoUrls;
}
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
}
@@ -242,13 +248,13 @@ public class Pet {
return tags;
}
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
@Deprecated
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
}
@@ -265,7 +271,7 @@ public class Pet {
}
@Deprecated
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
public class Tag {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -75,12 +77,12 @@ public class Tag {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -94,7 +96,7 @@ public class Tag {
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -52,40 +52,48 @@ import org.openapitools.client.JSON;
public class User {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_USERNAME = "username";
@SerializedName(SERIALIZED_NAME_USERNAME)
@javax.annotation.Nullable
private String username;
public static final String SERIALIZED_NAME_FIRST_NAME = "firstName";
@SerializedName(SERIALIZED_NAME_FIRST_NAME)
@javax.annotation.Nullable
private String firstName;
public static final String SERIALIZED_NAME_LAST_NAME = "lastName";
@SerializedName(SERIALIZED_NAME_LAST_NAME)
@javax.annotation.Nullable
private String lastName;
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
@javax.annotation.Nullable
private String email;
public static final String SERIALIZED_NAME_PASSWORD = "password";
@SerializedName(SERIALIZED_NAME_PASSWORD)
@javax.annotation.Nullable
private String password;
public static final String SERIALIZED_NAME_PHONE = "phone";
@SerializedName(SERIALIZED_NAME_PHONE)
@javax.annotation.Nullable
private String phone;
public static final String SERIALIZED_NAME_USER_STATUS = "userStatus";
@SerializedName(SERIALIZED_NAME_USER_STATUS)
@javax.annotation.Nullable
private Integer userStatus;
public User() {
}
public User id(Long id) {
public User id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -99,12 +107,12 @@ public class User {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public User username(String username) {
public User username(@javax.annotation.Nullable String username) {
this.username = username;
return this;
}
@@ -118,12 +126,12 @@ public class User {
return username;
}
public void setUsername(String username) {
public void setUsername(@javax.annotation.Nullable String username) {
this.username = username;
}
public User firstName(String firstName) {
public User firstName(@javax.annotation.Nullable String firstName) {
this.firstName = firstName;
return this;
}
@@ -137,12 +145,12 @@ public class User {
return firstName;
}
public void setFirstName(String firstName) {
public void setFirstName(@javax.annotation.Nullable String firstName) {
this.firstName = firstName;
}
public User lastName(String lastName) {
public User lastName(@javax.annotation.Nullable String lastName) {
this.lastName = lastName;
return this;
}
@@ -156,12 +164,12 @@ public class User {
return lastName;
}
public void setLastName(String lastName) {
public void setLastName(@javax.annotation.Nullable String lastName) {
this.lastName = lastName;
}
public User email(String email) {
public User email(@javax.annotation.Nullable String email) {
this.email = email;
return this;
}
@@ -175,12 +183,12 @@ public class User {
return email;
}
public void setEmail(String email) {
public void setEmail(@javax.annotation.Nullable String email) {
this.email = email;
}
public User password(String password) {
public User password(@javax.annotation.Nullable String password) {
this.password = password;
return this;
}
@@ -194,12 +202,12 @@ public class User {
return password;
}
public void setPassword(String password) {
public void setPassword(@javax.annotation.Nullable String password) {
this.password = password;
}
public User phone(String phone) {
public User phone(@javax.annotation.Nullable String phone) {
this.phone = phone;
return this;
}
@@ -213,12 +221,12 @@ public class User {
return phone;
}
public void setPhone(String phone) {
public void setPhone(@javax.annotation.Nullable String phone) {
this.phone = phone;
}
public User userStatus(Integer userStatus) {
public User userStatus(@javax.annotation.Nullable Integer userStatus) {
this.userStatus = userStatus;
return this;
}
@@ -232,7 +240,7 @@ public class User {
return userStatus;
}
public void setUserStatus(Integer userStatus) {
public void setUserStatus(@javax.annotation.Nullable Integer userStatus) {
this.userStatus = userStatus;
}

View File

@@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
public class Bird {
public static final String SERIALIZED_NAME_SIZE = "size";
@SerializedName(SERIALIZED_NAME_SIZE)
@javax.annotation.Nullable
private String size;
public static final String SERIALIZED_NAME_COLOR = "color";
@SerializedName(SERIALIZED_NAME_COLOR)
@javax.annotation.Nullable
private String color;
public Bird() {
}
public Bird size(String size) {
public Bird size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
}
@@ -75,12 +77,12 @@ public class Bird {
return size;
}
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public Bird color(String color) {
public Bird color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
}
@@ -94,7 +96,7 @@ public class Bird {
return color;
}
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
public class Category {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -75,12 +77,12 @@ public class Category {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -94,7 +96,7 @@ public class Category {
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -56,20 +56,23 @@ import org.openapitools.client.JSON;
public class DataQuery extends Query {
public static final String SERIALIZED_NAME_SUFFIX = "suffix";
@SerializedName(SERIALIZED_NAME_SUFFIX)
@javax.annotation.Nullable
private String suffix;
public static final String SERIALIZED_NAME_TEXT = "text";
@SerializedName(SERIALIZED_NAME_TEXT)
@javax.annotation.Nullable
private String text;
public static final String SERIALIZED_NAME_DATE = "date";
@SerializedName(SERIALIZED_NAME_DATE)
@javax.annotation.Nullable
private OffsetDateTime date;
public DataQuery() {
}
public DataQuery suffix(String suffix) {
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
return this;
}
@@ -83,12 +86,12 @@ public class DataQuery extends Query {
return suffix;
}
public void setSuffix(String suffix) {
public void setSuffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
}
public DataQuery text(String text) {
public DataQuery text(@javax.annotation.Nullable String text) {
this.text = text;
return this;
}
@@ -102,12 +105,12 @@ public class DataQuery extends Query {
return text;
}
public void setText(String text) {
public void setText(@javax.annotation.Nullable String text) {
this.text = text;
}
public DataQuery date(OffsetDateTime date) {
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
return this;
}
@@ -121,7 +124,7 @@ public class DataQuery extends Query {
return date;
}
public void setDate(OffsetDateTime date) {
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
}

View File

@@ -56,6 +56,7 @@ import org.openapitools.client.JSON;
public class DefaultValue {
public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_REF_DEFAULT)
@javax.annotation.Nullable
private List<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
/**
@@ -114,36 +115,43 @@ public class DefaultValue {
public static final String SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_ENUM_DEFAULT)
@javax.annotation.Nullable
private List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE));
public static final String SERIALIZED_NAME_ARRAY_STRING_DEFAULT = "array_string_default";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_DEFAULT)
@javax.annotation.Nullable
private List<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
public static final String SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT = "array_integer_default";
@SerializedName(SERIALIZED_NAME_ARRAY_INTEGER_DEFAULT)
@javax.annotation.Nullable
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
public static final String SERIALIZED_NAME_ARRAY_STRING = "array_string";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING)
@javax.annotation.Nullable
private List<String> arrayString = new ArrayList<>();
public static final String SERIALIZED_NAME_ARRAY_STRING_NULLABLE = "array_string_nullable";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_NULLABLE)
@javax.annotation.Nullable
private List<String> arrayStringNullable;
public static final String SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
@SerializedName(SERIALIZED_NAME_ARRAY_STRING_EXTENSION_NULLABLE)
@javax.annotation.Nullable
private List<String> arrayStringExtensionNullable;
public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable";
@SerializedName(SERIALIZED_NAME_STRING_NULLABLE)
@javax.annotation.Nullable
private String stringNullable;
public DefaultValue() {
}
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
return this;
}
@@ -165,12 +173,12 @@ public class DefaultValue {
return arrayStringEnumRefDefault;
}
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
}
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
return this;
}
@@ -192,12 +200,12 @@ public class DefaultValue {
return arrayStringEnumDefault;
}
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
}
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
return this;
}
@@ -219,12 +227,12 @@ public class DefaultValue {
return arrayStringDefault;
}
public void setArrayStringDefault(List<String> arrayStringDefault) {
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
}
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
return this;
}
@@ -246,12 +254,12 @@ public class DefaultValue {
return arrayIntegerDefault;
}
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
}
public DefaultValue arrayString(List<String> arrayString) {
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
return this;
}
@@ -273,12 +281,12 @@ public class DefaultValue {
return arrayString;
}
public void setArrayString(List<String> arrayString) {
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
}
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = arrayStringNullable;
return this;
}
@@ -300,12 +308,12 @@ public class DefaultValue {
return arrayStringNullable;
}
public void setArrayStringNullable(List<String> arrayStringNullable) {
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = arrayStringNullable;
}
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
return this;
}
@@ -327,12 +335,12 @@ public class DefaultValue {
return arrayStringExtensionNullable;
}
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
}
public DefaultValue stringNullable(String stringNullable) {
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = stringNullable;
return this;
}
@@ -346,7 +354,7 @@ public class DefaultValue {
return stringNullable;
}
public void setStringNullable(String stringNullable) {
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = stringNullable;
}

View File

@@ -53,20 +53,23 @@ import org.openapitools.client.JSON;
public class NumberPropertiesOnly {
public static final String SERIALIZED_NAME_NUMBER = "number";
@SerializedName(SERIALIZED_NAME_NUMBER)
@javax.annotation.Nullable
private BigDecimal number;
public static final String SERIALIZED_NAME_FLOAT = "float";
@SerializedName(SERIALIZED_NAME_FLOAT)
@javax.annotation.Nullable
private Float _float;
public static final String SERIALIZED_NAME_DOUBLE = "double";
@SerializedName(SERIALIZED_NAME_DOUBLE)
@javax.annotation.Nullable
private Double _double;
public NumberPropertiesOnly() {
}
public NumberPropertiesOnly number(BigDecimal number) {
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
return this;
}
@@ -80,12 +83,12 @@ public class NumberPropertiesOnly {
return number;
}
public void setNumber(BigDecimal number) {
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
}
public NumberPropertiesOnly _float(Float _float) {
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
this._float = _float;
return this;
}
@@ -99,12 +102,12 @@ public class NumberPropertiesOnly {
return _float;
}
public void setFloat(Float _float) {
public void setFloat(@javax.annotation.Nullable Float _float) {
this._float = _float;
}
public NumberPropertiesOnly _double(Double _double) {
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
this._double = _double;
return this;
}
@@ -120,7 +123,7 @@ public class NumberPropertiesOnly {
return _double;
}
public void setDouble(Double _double) {
public void setDouble(@javax.annotation.Nullable Double _double) {
this._double = _double;
}

View File

@@ -56,22 +56,27 @@ import org.openapitools.client.JSON;
public class Pet {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nonnull
private String name;
public static final String SERIALIZED_NAME_CATEGORY = "category";
@SerializedName(SERIALIZED_NAME_CATEGORY)
@javax.annotation.Nullable
private Category category;
public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls";
@SerializedName(SERIALIZED_NAME_PHOTO_URLS)
@javax.annotation.Nonnull
private List<String> photoUrls = new ArrayList<>();
public static final String SERIALIZED_NAME_TAGS = "tags";
@SerializedName(SERIALIZED_NAME_TAGS)
@javax.annotation.Nullable
private List<Tag> tags = new ArrayList<>();
/**
@@ -130,12 +135,13 @@ public class Pet {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
@javax.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -149,12 +155,12 @@ public class Pet {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
}
@@ -168,12 +174,12 @@ public class Pet {
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
}
@@ -187,12 +193,12 @@ public class Pet {
return category;
}
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
@@ -214,12 +220,12 @@ public class Pet {
return photoUrls;
}
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
}
@@ -241,12 +247,12 @@ public class Pet {
return tags;
}
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
}
@@ -260,7 +266,7 @@ public class Pet {
return status;
}
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -54,6 +54,7 @@ import org.openapitools.client.JSON;
public class Query {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
/**
@@ -112,12 +113,13 @@ public class Query {
public static final String SERIALIZED_NAME_OUTCOMES = "outcomes";
@SerializedName(SERIALIZED_NAME_OUTCOMES)
@javax.annotation.Nullable
private List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
public Query() {
}
public Query id(Long id) {
public Query id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -131,12 +133,12 @@ public class Query {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Query outcomes(List<OutcomesEnum> outcomes) {
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
return this;
}
@@ -158,7 +160,7 @@ public class Query {
return outcomes;
}
public void setOutcomes(List<OutcomesEnum> outcomes) {
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
}

View File

@@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
public class Tag {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -75,12 +77,12 @@ public class Tag {
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -94,7 +96,7 @@ public class Tag {
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -52,12 +52,13 @@ import org.openapitools.client.JSON;
public class TestFormObjectMultipartRequestMarker {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public TestFormObjectMultipartRequestMarker() {
}
public TestFormObjectMultipartRequestMarker name(String name) {
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -71,7 +72,7 @@ public class TestFormObjectMultipartRequestMarker {
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -52,24 +52,28 @@ import org.openapitools.client.JSON;
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
public static final String SERIALIZED_NAME_SIZE = "size";
@SerializedName(SERIALIZED_NAME_SIZE)
@javax.annotation.Nullable
private String size;
public static final String SERIALIZED_NAME_COLOR = "color";
@SerializedName(SERIALIZED_NAME_COLOR)
@javax.annotation.Nullable
private String color;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@javax.annotation.Nullable
private Long id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@javax.annotation.Nullable
private String name;
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
}
@@ -83,12 +87,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
return size;
}
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
}
@@ -102,12 +106,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
return color;
}
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -121,12 +125,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
return id;
}
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -140,7 +144,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
return name;
}
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -54,12 +54,13 @@ import org.openapitools.client.JSON;
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
public static final String SERIALIZED_NAME_VALUES = "values";
@SerializedName(SERIALIZED_NAME_VALUES)
@javax.annotation.Nullable
private List<String> values = new ArrayList<>();
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
}
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
this.values = values;
return this;
}
@@ -81,7 +82,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
return values;
}
public void setValues(List<String> values) {
public void setValues(@javax.annotation.Nullable List<String> values) {
this.values = values;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Bird {
public static final String JSON_PROPERTY_SIZE = "size";
@jakarta.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@jakarta.annotation.Nullable
private String color;
public Bird() {
}
public Bird size(String size) {
public Bird size(@jakarta.annotation.Nullable String size) {
this.size = size;
return this;
@@ -62,11 +64,11 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@jakarta.annotation.Nullable String size) {
this.size = size;
}
public Bird color(String color) {
public Bird color(@jakarta.annotation.Nullable String color) {
this.color = color;
return this;
@@ -87,7 +89,7 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@jakarta.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Category {
public static final String JSON_PROPERTY_ID = "id";
@jakarta.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@jakarta.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@jakarta.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -62,11 +64,11 @@ public class Category {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@jakarta.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@jakarta.annotation.Nullable String name) {
this.name = name;
return this;
@@ -87,7 +89,7 @@ public class Category {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@jakarta.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -39,19 +39,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DataQuery extends Query {
public static final String JSON_PROPERTY_SUFFIX = "suffix";
@jakarta.annotation.Nullable
private String suffix;
public static final String JSON_PROPERTY_TEXT = "text";
@jakarta.annotation.Nullable
private String text;
public static final String JSON_PROPERTY_DATE = "date";
@jakarta.annotation.Nullable
private Instant date;
public DataQuery() {
}
public DataQuery suffix(String suffix) {
public DataQuery suffix(@jakarta.annotation.Nullable String suffix) {
this.suffix = suffix;
return this;
@@ -72,11 +75,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_SUFFIX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuffix(String suffix) {
public void setSuffix(@jakarta.annotation.Nullable String suffix) {
this.suffix = suffix;
}
public DataQuery text(String text) {
public DataQuery text(@jakarta.annotation.Nullable String text) {
this.text = text;
return this;
@@ -97,11 +100,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setText(String text) {
public void setText(@jakarta.annotation.Nullable String text) {
this.text = text;
}
public DataQuery date(Instant date) {
public DataQuery date(@jakarta.annotation.Nullable Instant date) {
this.date = date;
return this;
@@ -122,18 +125,18 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDate(Instant date) {
public void setDate(@jakarta.annotation.Nullable Instant date) {
this.date = date;
}
@Override
public DataQuery id(Long id) {
public DataQuery id(@jakarta.annotation.Nullable Long id) {
this.setId(id);
return this;
}
@Override
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
public DataQuery outcomes(@jakarta.annotation.Nullable List<OutcomesEnum> outcomes) {
this.setOutcomes(outcomes);
return this;
}

View File

@@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DefaultValue {
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default";
@jakarta.annotation.Nullable
private List<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
/**
@@ -87,30 +88,37 @@ public class DefaultValue {
}
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
@jakarta.annotation.Nullable
private List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE));
public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default";
@jakarta.annotation.Nullable
private List<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
@jakarta.annotation.Nullable
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
@jakarta.annotation.Nullable
private List<String> arrayString = new ArrayList<>();
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
@jakarta.annotation.Nullable
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
@jakarta.annotation.Nullable
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
@jakarta.annotation.Nullable
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
public DefaultValue() {
}
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public DefaultValue arrayStringEnumRefDefault(@jakarta.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
return this;
@@ -139,11 +147,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public void setArrayStringEnumRefDefault(@jakarta.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
}
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public DefaultValue arrayStringEnumDefault(@jakarta.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
return this;
@@ -172,11 +180,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public void setArrayStringEnumDefault(@jakarta.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
}
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
public DefaultValue arrayStringDefault(@jakarta.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
return this;
@@ -205,11 +213,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringDefault(List<String> arrayStringDefault) {
public void setArrayStringDefault(@jakarta.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
}
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public DefaultValue arrayIntegerDefault(@jakarta.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
return this;
@@ -238,11 +246,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public void setArrayIntegerDefault(@jakarta.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
}
public DefaultValue arrayString(List<String> arrayString) {
public DefaultValue arrayString(@jakarta.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
return this;
@@ -271,11 +279,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayString(List<String> arrayString) {
public void setArrayString(@jakarta.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
}
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
public DefaultValue arrayStringNullable(@jakarta.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
return this;
@@ -316,11 +324,11 @@ public class DefaultValue {
this.arrayStringNullable = arrayStringNullable;
}
public void setArrayStringNullable(List<String> arrayStringNullable) {
public void setArrayStringNullable(@jakarta.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
}
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public DefaultValue arrayStringExtensionNullable(@jakarta.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
return this;
@@ -361,11 +369,11 @@ public class DefaultValue {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
}
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public void setArrayStringExtensionNullable(@jakarta.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
}
public DefaultValue stringNullable(String stringNullable) {
public DefaultValue stringNullable(@jakarta.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
return this;
@@ -394,7 +402,7 @@ public class DefaultValue {
this.stringNullable = stringNullable;
}
public void setStringNullable(String stringNullable) {
public void setStringNullable(@jakarta.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
}

View File

@@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class NumberPropertiesOnly {
public static final String JSON_PROPERTY_NUMBER = "number";
@jakarta.annotation.Nullable
private BigDecimal number;
public static final String JSON_PROPERTY_FLOAT = "float";
@jakarta.annotation.Nullable
private Float _float;
public static final String JSON_PROPERTY_DOUBLE = "double";
@jakarta.annotation.Nullable
private Double _double;
public NumberPropertiesOnly() {
}
public NumberPropertiesOnly number(BigDecimal number) {
public NumberPropertiesOnly number(@jakarta.annotation.Nullable BigDecimal number) {
this.number = number;
return this;
@@ -67,11 +70,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumber(BigDecimal number) {
public void setNumber(@jakarta.annotation.Nullable BigDecimal number) {
this.number = number;
}
public NumberPropertiesOnly _float(Float _float) {
public NumberPropertiesOnly _float(@jakarta.annotation.Nullable Float _float) {
this._float = _float;
return this;
@@ -92,11 +95,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFloat(Float _float) {
public void setFloat(@jakarta.annotation.Nullable Float _float) {
this._float = _float;
}
public NumberPropertiesOnly _double(Double _double) {
public NumberPropertiesOnly _double(@jakarta.annotation.Nullable Double _double) {
this._double = _double;
return this;
@@ -119,7 +122,7 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDouble(Double _double) {
public void setDouble(@jakarta.annotation.Nullable Double _double) {
this._double = _double;
}

View File

@@ -42,18 +42,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Pet {
public static final String JSON_PROPERTY_ID = "id";
@jakarta.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@jakarta.annotation.Nonnull
private String name;
public static final String JSON_PROPERTY_CATEGORY = "category";
@jakarta.annotation.Nullable
private Category category;
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
@jakarta.annotation.Nonnull
private List<String> photoUrls = new ArrayList<>();
public static final String JSON_PROPERTY_TAGS = "tags";
@jakarta.annotation.Nullable
private List<Tag> tags = new ArrayList<>();
/**
@@ -94,12 +99,13 @@ public class Pet {
}
public static final String JSON_PROPERTY_STATUS = "status";
@jakarta.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@jakarta.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -120,11 +126,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@jakarta.annotation.Nullable Long id) {
this.id = id;
}
public Pet name(String name) {
public Pet name(@jakarta.annotation.Nonnull String name) {
this.name = name;
return this;
@@ -145,11 +151,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
public void setName(@jakarta.annotation.Nonnull String name) {
this.name = name;
}
public Pet category(Category category) {
public Pet category(@jakarta.annotation.Nullable Category category) {
this.category = category;
return this;
@@ -170,11 +176,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(Category category) {
public void setCategory(@jakarta.annotation.Nullable Category category) {
this.category = category;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@jakarta.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
@@ -203,11 +209,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@jakarta.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@jakarta.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
@@ -236,11 +242,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List<Tag> tags) {
public void setTags(@jakarta.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@jakarta.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
@@ -261,7 +267,7 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
public void setStatus(@jakarta.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Query {
public static final String JSON_PROPERTY_ID = "id";
@jakarta.annotation.Nullable
protected Long id;
/**
@@ -76,12 +77,13 @@ public class Query {
}
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
@jakarta.annotation.Nullable
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
public Query() {
}
public Query id(Long id) {
public Query id(@jakarta.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -102,11 +104,11 @@ public class Query {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@jakarta.annotation.Nullable Long id) {
this.id = id;
}
public Query outcomes(List<OutcomesEnum> outcomes) {
public Query outcomes(@jakarta.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
return this;
@@ -135,7 +137,7 @@ public class Query {
@JsonProperty(JSON_PROPERTY_OUTCOMES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOutcomes(List<OutcomesEnum> outcomes) {
public void setOutcomes(@jakarta.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Tag {
public static final String JSON_PROPERTY_ID = "id";
@jakarta.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@jakarta.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@jakarta.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -62,11 +64,11 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@jakarta.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@jakarta.annotation.Nullable String name) {
this.name = name;
return this;
@@ -87,7 +89,7 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@jakarta.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestFormObjectMultipartRequestMarker {
public static final String JSON_PROPERTY_NAME = "name";
@jakarta.annotation.Nullable
private String name;
public TestFormObjectMultipartRequestMarker() {
}
public TestFormObjectMultipartRequestMarker name(String name) {
public TestFormObjectMultipartRequestMarker name(@jakarta.annotation.Nullable String name) {
this.name = name;
return this;
@@ -59,7 +60,7 @@ public class TestFormObjectMultipartRequestMarker {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@jakarta.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -36,21 +36,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
public static final String JSON_PROPERTY_SIZE = "size";
@jakarta.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@jakarta.annotation.Nullable
private String color;
public static final String JSON_PROPERTY_ID = "id";
@jakarta.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@jakarta.annotation.Nullable
private String name;
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@jakarta.annotation.Nullable String size) {
this.size = size;
return this;
@@ -71,11 +75,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@jakarta.annotation.Nullable String size) {
this.size = size;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@jakarta.annotation.Nullable String color) {
this.color = color;
return this;
@@ -96,11 +100,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@jakarta.annotation.Nullable String color) {
this.color = color;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@jakarta.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -121,11 +125,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@jakarta.annotation.Nullable Long id) {
this.id = id;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@jakarta.annotation.Nullable String name) {
this.name = name;
return this;
@@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@jakarta.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
public static final String JSON_PROPERTY_VALUES = "values";
@jakarta.annotation.Nullable
private List<String> values = new ArrayList<>();
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
}
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@jakarta.annotation.Nullable List<String> values) {
this.values = values;
return this;
@@ -70,7 +71,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValues(List<String> values) {
public void setValues(@jakarta.annotation.Nullable List<String> values) {
this.values = values;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Bird {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public Bird() {
}
public Bird size(String size) {
public Bird size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -62,11 +64,11 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public Bird color(String color) {
public Bird color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -87,7 +89,7 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Category {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -62,11 +64,11 @@ public class Category {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -87,7 +89,7 @@ public class Category {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -39,19 +39,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DataQuery extends Query {
public static final String JSON_PROPERTY_SUFFIX = "suffix";
@javax.annotation.Nullable
private String suffix;
public static final String JSON_PROPERTY_TEXT = "text";
@javax.annotation.Nullable
private String text;
public static final String JSON_PROPERTY_DATE = "date";
@javax.annotation.Nullable
private OffsetDateTime date;
public DataQuery() {
}
public DataQuery suffix(String suffix) {
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
return this;
@@ -72,11 +75,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_SUFFIX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuffix(String suffix) {
public void setSuffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
}
public DataQuery text(String text) {
public DataQuery text(@javax.annotation.Nullable String text) {
this.text = text;
return this;
@@ -97,11 +100,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setText(String text) {
public void setText(@javax.annotation.Nullable String text) {
this.text = text;
}
public DataQuery date(OffsetDateTime date) {
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
return this;
@@ -122,18 +125,18 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDate(OffsetDateTime date) {
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
}
@Override
public DataQuery id(Long id) {
public DataQuery id(@javax.annotation.Nullable Long id) {
this.setId(id);
return this;
}
@Override
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.setOutcomes(outcomes);
return this;
}

View File

@@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DefaultValue {
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default";
@javax.annotation.Nullable
private List<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
/**
@@ -87,30 +88,37 @@ public class DefaultValue {
}
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
@javax.annotation.Nullable
private List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE));
public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default";
@javax.annotation.Nullable
private List<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
@javax.annotation.Nullable
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
@javax.annotation.Nullable
private List<String> arrayString = new ArrayList<>();
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
@javax.annotation.Nullable
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
@javax.annotation.Nullable
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
@javax.annotation.Nullable
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
public DefaultValue() {
}
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
return this;
@@ -139,11 +147,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
}
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
return this;
@@ -172,11 +180,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
}
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
return this;
@@ -205,11 +213,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringDefault(List<String> arrayStringDefault) {
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
}
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
return this;
@@ -238,11 +246,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
}
public DefaultValue arrayString(List<String> arrayString) {
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
return this;
@@ -271,11 +279,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayString(List<String> arrayString) {
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
}
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
return this;
@@ -316,11 +324,11 @@ public class DefaultValue {
this.arrayStringNullable = arrayStringNullable;
}
public void setArrayStringNullable(List<String> arrayStringNullable) {
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
}
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
return this;
@@ -361,11 +369,11 @@ public class DefaultValue {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
}
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
}
public DefaultValue stringNullable(String stringNullable) {
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
return this;
@@ -394,7 +402,7 @@ public class DefaultValue {
this.stringNullable = stringNullable;
}
public void setStringNullable(String stringNullable) {
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
}

View File

@@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class NumberPropertiesOnly {
public static final String JSON_PROPERTY_NUMBER = "number";
@javax.annotation.Nullable
private BigDecimal number;
public static final String JSON_PROPERTY_FLOAT = "float";
@javax.annotation.Nullable
private Float _float;
public static final String JSON_PROPERTY_DOUBLE = "double";
@javax.annotation.Nullable
private Double _double;
public NumberPropertiesOnly() {
}
public NumberPropertiesOnly number(BigDecimal number) {
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
return this;
@@ -67,11 +70,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumber(BigDecimal number) {
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
}
public NumberPropertiesOnly _float(Float _float) {
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
this._float = _float;
return this;
@@ -92,11 +95,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFloat(Float _float) {
public void setFloat(@javax.annotation.Nullable Float _float) {
this._float = _float;
}
public NumberPropertiesOnly _double(Double _double) {
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
this._double = _double;
return this;
@@ -119,7 +122,7 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDouble(Double _double) {
public void setDouble(@javax.annotation.Nullable Double _double) {
this._double = _double;
}

View File

@@ -42,18 +42,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Pet {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nonnull
private String name;
public static final String JSON_PROPERTY_CATEGORY = "category";
@javax.annotation.Nullable
private Category category;
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
@javax.annotation.Nonnull
private List<String> photoUrls = new ArrayList<>();
public static final String JSON_PROPERTY_TAGS = "tags";
@javax.annotation.Nullable
private List<Tag> tags = new ArrayList<>();
/**
@@ -94,12 +99,13 @@ public class Pet {
}
public static final String JSON_PROPERTY_STATUS = "status";
@javax.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -120,11 +126,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
@@ -145,11 +151,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
@@ -170,11 +176,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
@@ -203,11 +209,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
@@ -236,11 +242,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
@@ -261,7 +267,7 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Query {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
protected Long id;
/**
@@ -76,12 +77,13 @@ public class Query {
}
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
@javax.annotation.Nullable
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
public Query() {
}
public Query id(Long id) {
public Query id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -102,11 +104,11 @@ public class Query {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Query outcomes(List<OutcomesEnum> outcomes) {
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
return this;
@@ -135,7 +137,7 @@ public class Query {
@JsonProperty(JSON_PROPERTY_OUTCOMES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOutcomes(List<OutcomesEnum> outcomes) {
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Tag {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -62,11 +64,11 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -87,7 +89,7 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestFormObjectMultipartRequestMarker {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestFormObjectMultipartRequestMarker() {
}
public TestFormObjectMultipartRequestMarker name(String name) {
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -59,7 +60,7 @@ public class TestFormObjectMultipartRequestMarker {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -36,21 +36,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -71,11 +75,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -96,11 +100,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -121,11 +125,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
public static final String JSON_PROPERTY_VALUES = "values";
@javax.annotation.Nullable
private List<String> values = new ArrayList<>();
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
}
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
this.values = values;
return this;
@@ -70,7 +71,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValues(List<String> values) {
public void setValues(@javax.annotation.Nullable List<String> values) {
this.values = values;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Bird {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public Bird() {
}
public Bird size(String size) {
public Bird size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -62,11 +64,11 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public Bird color(String color) {
public Bird color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -87,7 +89,7 @@ public class Bird {
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Category {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -62,11 +64,11 @@ public class Category {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Category name(String name) {
public Category name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -87,7 +89,7 @@ public class Category {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -39,19 +39,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DataQuery extends Query {
public static final String JSON_PROPERTY_SUFFIX = "suffix";
@javax.annotation.Nullable
private String suffix;
public static final String JSON_PROPERTY_TEXT = "text";
@javax.annotation.Nullable
private String text;
public static final String JSON_PROPERTY_DATE = "date";
@javax.annotation.Nullable
private OffsetDateTime date;
public DataQuery() {
}
public DataQuery suffix(String suffix) {
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
return this;
@@ -72,11 +75,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_SUFFIX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuffix(String suffix) {
public void setSuffix(@javax.annotation.Nullable String suffix) {
this.suffix = suffix;
}
public DataQuery text(String text) {
public DataQuery text(@javax.annotation.Nullable String text) {
this.text = text;
return this;
@@ -97,11 +100,11 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setText(String text) {
public void setText(@javax.annotation.Nullable String text) {
this.text = text;
}
public DataQuery date(OffsetDateTime date) {
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
return this;
@@ -122,18 +125,18 @@ public class DataQuery extends Query {
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDate(OffsetDateTime date) {
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
this.date = date;
}
@Override
public DataQuery id(Long id) {
public DataQuery id(@javax.annotation.Nullable Long id) {
this.setId(id);
return this;
}
@Override
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.setOutcomes(outcomes);
return this;
}

View File

@@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DefaultValue {
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT = "array_string_enum_ref_default";
@javax.annotation.Nullable
private List<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
/**
@@ -87,30 +88,37 @@ public class DefaultValue {
}
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
@javax.annotation.Nullable
private List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault = new ArrayList<>(Arrays.asList(ArrayStringEnumDefaultEnum.SUCCESS, ArrayStringEnumDefaultEnum.FAILURE));
public static final String JSON_PROPERTY_ARRAY_STRING_DEFAULT = "array_string_default";
@javax.annotation.Nullable
private List<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
@javax.annotation.Nullable
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
@javax.annotation.Nullable
private List<String> arrayString;
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
@javax.annotation.Nullable
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
@javax.annotation.Nullable
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
@javax.annotation.Nullable
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
public DefaultValue() {
}
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
return this;
@@ -139,11 +147,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
}
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
return this;
@@ -172,11 +180,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
this.arrayStringEnumDefault = arrayStringEnumDefault;
}
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
return this;
@@ -205,11 +213,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayStringDefault(List<String> arrayStringDefault) {
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
this.arrayStringDefault = arrayStringDefault;
}
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
return this;
@@ -238,11 +246,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
this.arrayIntegerDefault = arrayIntegerDefault;
}
public DefaultValue arrayString(List<String> arrayString) {
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
return this;
@@ -271,11 +279,11 @@ public class DefaultValue {
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayString(List<String> arrayString) {
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
this.arrayString = arrayString;
}
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
return this;
@@ -316,11 +324,11 @@ public class DefaultValue {
this.arrayStringNullable = arrayStringNullable;
}
public void setArrayStringNullable(List<String> arrayStringNullable) {
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
}
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
return this;
@@ -361,11 +369,11 @@ public class DefaultValue {
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
}
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
}
public DefaultValue stringNullable(String stringNullable) {
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
return this;
@@ -394,7 +402,7 @@ public class DefaultValue {
this.stringNullable = stringNullable;
}
public void setStringNullable(String stringNullable) {
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
this.stringNullable = JsonNullable.<String>of(stringNullable);
}

View File

@@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class NumberPropertiesOnly {
public static final String JSON_PROPERTY_NUMBER = "number";
@javax.annotation.Nullable
private BigDecimal number;
public static final String JSON_PROPERTY_FLOAT = "float";
@javax.annotation.Nullable
private Float _float;
public static final String JSON_PROPERTY_DOUBLE = "double";
@javax.annotation.Nullable
private Double _double;
public NumberPropertiesOnly() {
}
public NumberPropertiesOnly number(BigDecimal number) {
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
return this;
@@ -67,11 +70,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNumber(BigDecimal number) {
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
this.number = number;
}
public NumberPropertiesOnly _float(Float _float) {
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
this._float = _float;
return this;
@@ -92,11 +95,11 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFloat(Float _float) {
public void setFloat(@javax.annotation.Nullable Float _float) {
this._float = _float;
}
public NumberPropertiesOnly _double(Double _double) {
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
this._double = _double;
return this;
@@ -119,7 +122,7 @@ public class NumberPropertiesOnly {
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDouble(Double _double) {
public void setDouble(@javax.annotation.Nullable Double _double) {
this._double = _double;
}

View File

@@ -42,18 +42,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Pet {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nonnull
private String name;
public static final String JSON_PROPERTY_CATEGORY = "category";
@javax.annotation.Nullable
private Category category;
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
@javax.annotation.Nonnull
private List<String> photoUrls;
public static final String JSON_PROPERTY_TAGS = "tags";
@javax.annotation.Nullable
private List<Tag> tags;
/**
@@ -94,12 +99,13 @@ public class Pet {
}
public static final String JSON_PROPERTY_STATUS = "status";
@javax.annotation.Nullable
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
public Pet id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -120,11 +126,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
@@ -145,11 +151,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
@@ -170,11 +176,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
@@ -203,11 +209,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPhotoUrls(List<String> photoUrls) {
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
}
public Pet tags(List<Tag> tags) {
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
return this;
@@ -236,11 +242,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
@@ -261,7 +267,7 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Query {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
protected Long id;
/**
@@ -76,12 +77,13 @@ public class Query {
}
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
@javax.annotation.Nullable
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
public Query() {
}
public Query id(Long id) {
public Query id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -102,11 +104,11 @@ public class Query {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Query outcomes(List<OutcomesEnum> outcomes) {
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
return this;
@@ -135,7 +137,7 @@ public class Query {
@JsonProperty(JSON_PROPERTY_OUTCOMES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOutcomes(List<OutcomesEnum> outcomes) {
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
this.outcomes = outcomes;
}

View File

@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Tag {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public Tag() {
}
public Tag id(Long id) {
public Tag id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -62,11 +64,11 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Tag name(String name) {
public Tag name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -87,7 +89,7 @@ public class Tag {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestFormObjectMultipartRequestMarker {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestFormObjectMultipartRequestMarker() {
}
public TestFormObjectMultipartRequestMarker name(String name) {
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -59,7 +60,7 @@ public class TestFormObjectMultipartRequestMarker {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -36,21 +36,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
public static final String JSON_PROPERTY_SIZE = "size";
@javax.annotation.Nullable
private String size;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color;
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
this.size = size;
return this;
@@ -71,11 +75,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSize(String size) {
public void setSize(@javax.annotation.Nullable String size) {
this.size = size;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
@@ -96,11 +100,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -121,11 +125,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
@@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
public static final String JSON_PROPERTY_VALUES = "values";
@javax.annotation.Nullable
private List<String> values;
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
}
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
this.values = values;
return this;
@@ -70,7 +71,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValues(List<String> values) {
public void setValues(@javax.annotation.Nullable List<String> values) {
this.values = values;
}