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

@@ -48,33 +48,40 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
@javax.annotation.Nullable
private Map<String, String> mapProperty = new HashMap<>();
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
@javax.annotation.Nullable
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<>();
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
private JsonNullable<Object> anytype1 = JsonNullable.<Object>of(null);
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1 = "map_with_undeclared_properties_anytype_1";
@javax.annotation.Nullable
private Object mapWithUndeclaredPropertiesAnytype1;
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2 = "map_with_undeclared_properties_anytype_2";
@javax.annotation.Nullable
private Object mapWithUndeclaredPropertiesAnytype2;
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3 = "map_with_undeclared_properties_anytype_3";
@javax.annotation.Nullable
private Map<String, Object> mapWithUndeclaredPropertiesAnytype3 = new HashMap<>();
public static final String JSON_PROPERTY_EMPTY_MAP = "empty_map";
@javax.annotation.Nullable
private Object emptyMap;
public static final String JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING = "map_with_undeclared_properties_string";
@javax.annotation.Nullable
private Map<String, String> mapWithUndeclaredPropertiesString = new HashMap<>();
public AdditionalPropertiesClass() {
}
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map<String, String> mapProperty) {
this.mapProperty = mapProperty;
return this;
}
@@ -102,12 +109,12 @@ public class AdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapProperty(Map<String, String> mapProperty) {
public void setMapProperty(@javax.annotation.Nullable Map<String, String> mapProperty) {
this.mapProperty = mapProperty;
}
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map<String, Map<String, String>> mapOfMapProperty) {
this.mapOfMapProperty = mapOfMapProperty;
return this;
}
@@ -135,12 +142,12 @@ public class AdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
public void setMapOfMapProperty(@javax.annotation.Nullable Map<String, Map<String, String>> mapOfMapProperty) {
this.mapOfMapProperty = mapOfMapProperty;
}
public AdditionalPropertiesClass anytype1(Object anytype1) {
public AdditionalPropertiesClass anytype1(@javax.annotation.Nullable Object anytype1) {
this.anytype1 = JsonNullable.<Object>of(anytype1);
return this;
}
@@ -168,12 +175,12 @@ public class AdditionalPropertiesClass {
this.anytype1 = anytype1;
}
public void setAnytype1(Object anytype1) {
public void setAnytype1(@javax.annotation.Nullable Object anytype1) {
this.anytype1 = JsonNullable.<Object>of(anytype1);
}
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) {
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) {
this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
return this;
}
@@ -193,12 +200,12 @@ public class AdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) {
public void setMapWithUndeclaredPropertiesAnytype1(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype1) {
this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
}
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) {
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) {
this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
return this;
}
@@ -218,12 +225,12 @@ public class AdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) {
public void setMapWithUndeclaredPropertiesAnytype2(@javax.annotation.Nullable Object mapWithUndeclaredPropertiesAnytype2) {
this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
}
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
public AdditionalPropertiesClass mapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
return this;
}
@@ -251,12 +258,12 @@ public class AdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype3(Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
public void setMapWithUndeclaredPropertiesAnytype3(@javax.annotation.Nullable Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
}
public AdditionalPropertiesClass emptyMap(Object emptyMap) {
public AdditionalPropertiesClass emptyMap(@javax.annotation.Nullable Object emptyMap) {
this.emptyMap = emptyMap;
return this;
}
@@ -276,12 +283,12 @@ public class AdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_EMPTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmptyMap(Object emptyMap) {
public void setEmptyMap(@javax.annotation.Nullable Object emptyMap) {
this.emptyMap = emptyMap;
}
public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(Map<String, String> mapWithUndeclaredPropertiesString) {
public AdditionalPropertiesClass mapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map<String, String> mapWithUndeclaredPropertiesString) {
this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
return this;
}
@@ -309,7 +316,7 @@ public class AdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesString(Map<String, String> mapWithUndeclaredPropertiesString) {
public void setMapWithUndeclaredPropertiesString(@javax.annotation.Nullable Map<String, String> mapWithUndeclaredPropertiesString) {
this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
}

View File

@@ -49,15 +49,17 @@ import org.openapitools.client.JSON;
public class Animal {
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@javax.annotation.Nonnull
private String className;
public static final String JSON_PROPERTY_COLOR = "color";
@javax.annotation.Nullable
private String color = "red";
public Animal() {
}
public Animal className(String className) {
public Animal className(@javax.annotation.Nonnull String className) {
this.className = className;
return this;
}
@@ -77,12 +79,12 @@ public class Animal {
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
public void setClassName(@javax.annotation.Nonnull String className) {
this.className = className;
}
public Animal color(String color) {
public Animal color(@javax.annotation.Nullable String color) {
this.color = color;
return this;
}
@@ -102,7 +104,7 @@ public class Animal {
@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

@@ -37,15 +37,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Apple {
public static final String JSON_PROPERTY_CULTIVAR = "cultivar";
@javax.annotation.Nullable
private String cultivar;
public static final String JSON_PROPERTY_ORIGIN = "origin";
@javax.annotation.Nullable
private String origin;
public Apple() {
}
public Apple cultivar(String cultivar) {
public Apple cultivar(@javax.annotation.Nullable String cultivar) {
this.cultivar = cultivar;
return this;
}
@@ -65,12 +67,12 @@ public class Apple {
@JsonProperty(JSON_PROPERTY_CULTIVAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCultivar(String cultivar) {
public void setCultivar(@javax.annotation.Nullable String cultivar) {
this.cultivar = cultivar;
}
public Apple origin(String origin) {
public Apple origin(@javax.annotation.Nullable String origin) {
this.origin = origin;
return this;
}
@@ -90,7 +92,7 @@ public class Apple {
@JsonProperty(JSON_PROPERTY_ORIGIN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrigin(String origin) {
public void setOrigin(@javax.annotation.Nullable String origin) {
this.origin = origin;
}

View File

@@ -37,15 +37,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class AppleReq {
public static final String JSON_PROPERTY_CULTIVAR = "cultivar";
@javax.annotation.Nonnull
private String cultivar;
public static final String JSON_PROPERTY_MEALY = "mealy";
@javax.annotation.Nullable
private Boolean mealy;
public AppleReq() {
}
public AppleReq cultivar(String cultivar) {
public AppleReq cultivar(@javax.annotation.Nonnull String cultivar) {
this.cultivar = cultivar;
return this;
}
@@ -65,12 +67,12 @@ public class AppleReq {
@JsonProperty(JSON_PROPERTY_CULTIVAR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCultivar(String cultivar) {
public void setCultivar(@javax.annotation.Nonnull String cultivar) {
this.cultivar = cultivar;
}
public AppleReq mealy(Boolean mealy) {
public AppleReq mealy(@javax.annotation.Nullable Boolean mealy) {
this.mealy = mealy;
return this;
}
@@ -90,7 +92,7 @@ public class AppleReq {
@JsonProperty(JSON_PROPERTY_MEALY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMealy(Boolean mealy) {
public void setMealy(@javax.annotation.Nullable Boolean mealy) {
this.mealy = mealy;
}

View File

@@ -38,12 +38,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
@javax.annotation.Nullable
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
public ArrayOfArrayOfNumberOnly() {
}
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
return this;
}
@@ -71,7 +72,7 @@ public class ArrayOfArrayOfNumberOnly {
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
public void setArrayArrayNumber(@javax.annotation.Nullable List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
}

View File

@@ -38,12 +38,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
@javax.annotation.Nullable
private List<BigDecimal> arrayNumber = new ArrayList<>();
public ArrayOfNumberOnly() {
}
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
return this;
}
@@ -71,7 +72,7 @@ public class ArrayOfNumberOnly {
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayNumber(List<BigDecimal> arrayNumber) {
public void setArrayNumber(@javax.annotation.Nullable List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
}

View File

@@ -40,18 +40,21 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
@javax.annotation.Nullable
private List<String> arrayOfString = new ArrayList<>();
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
@javax.annotation.Nullable
private List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
@javax.annotation.Nullable
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
public ArrayTest() {
}
public ArrayTest arrayOfString(List<String> arrayOfString) {
public ArrayTest arrayOfString(@javax.annotation.Nullable List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
return this;
}
@@ -79,12 +82,12 @@ public class ArrayTest {
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayOfString(List<String> arrayOfString) {
public void setArrayOfString(@javax.annotation.Nullable List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
}
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
return this;
}
@@ -112,12 +115,12 @@ public class ArrayTest {
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
public void setArrayArrayOfInteger(@javax.annotation.Nullable List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
}
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
return this;
}
@@ -145,7 +148,7 @@ public class ArrayTest {
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
public void setArrayArrayOfModel(@javax.annotation.Nullable List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
}

View File

@@ -37,12 +37,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Banana {
public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm";
@javax.annotation.Nullable
private BigDecimal lengthCm;
public Banana() {
}
public Banana lengthCm(BigDecimal lengthCm) {
public Banana lengthCm(@javax.annotation.Nullable BigDecimal lengthCm) {
this.lengthCm = lengthCm;
return this;
}
@@ -62,7 +63,7 @@ public class Banana {
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLengthCm(BigDecimal lengthCm) {
public void setLengthCm(@javax.annotation.Nullable BigDecimal lengthCm) {
this.lengthCm = lengthCm;
}

View File

@@ -38,15 +38,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class BananaReq {
public static final String JSON_PROPERTY_LENGTH_CM = "lengthCm";
@javax.annotation.Nonnull
private BigDecimal lengthCm;
public static final String JSON_PROPERTY_SWEET = "sweet";
@javax.annotation.Nullable
private Boolean sweet;
public BananaReq() {
}
public BananaReq lengthCm(BigDecimal lengthCm) {
public BananaReq lengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) {
this.lengthCm = lengthCm;
return this;
}
@@ -66,12 +68,12 @@ public class BananaReq {
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLengthCm(BigDecimal lengthCm) {
public void setLengthCm(@javax.annotation.Nonnull BigDecimal lengthCm) {
this.lengthCm = lengthCm;
}
public BananaReq sweet(Boolean sweet) {
public BananaReq sweet(@javax.annotation.Nullable Boolean sweet) {
this.sweet = sweet;
return this;
}
@@ -91,7 +93,7 @@ public class BananaReq {
@JsonProperty(JSON_PROPERTY_SWEET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSweet(Boolean sweet) {
public void setSweet(@javax.annotation.Nullable Boolean sweet) {
this.sweet = sweet;
}

View File

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class BasquePig {
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@javax.annotation.Nonnull
private String className;
public BasquePig() {
}
public BasquePig className(String className) {
public BasquePig className(@javax.annotation.Nonnull String className) {
this.className = className;
return this;
}
@@ -60,7 +61,7 @@ public class BasquePig {
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
public void setClassName(@javax.annotation.Nonnull String className) {
this.className = className;
}

View File

@@ -40,27 +40,33 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Capitalization {
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
@javax.annotation.Nullable
private String smallCamel;
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
@javax.annotation.Nullable
private String capitalCamel;
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
@javax.annotation.Nullable
private String smallSnake;
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
@javax.annotation.Nullable
private String capitalSnake;
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
@javax.annotation.Nullable
private String scAETHFlowPoints;
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
@javax.annotation.Nullable
private String ATT_NAME;
public Capitalization() {
}
public Capitalization smallCamel(String smallCamel) {
public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) {
this.smallCamel = smallCamel;
return this;
}
@@ -80,12 +86,12 @@ public class Capitalization {
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSmallCamel(String smallCamel) {
public void setSmallCamel(@javax.annotation.Nullable String smallCamel) {
this.smallCamel = smallCamel;
}
public Capitalization capitalCamel(String capitalCamel) {
public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) {
this.capitalCamel = capitalCamel;
return this;
}
@@ -105,12 +111,12 @@ public class Capitalization {
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapitalCamel(String capitalCamel) {
public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) {
this.capitalCamel = capitalCamel;
}
public Capitalization smallSnake(String smallSnake) {
public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) {
this.smallSnake = smallSnake;
return this;
}
@@ -130,12 +136,12 @@ public class Capitalization {
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSmallSnake(String smallSnake) {
public void setSmallSnake(@javax.annotation.Nullable String smallSnake) {
this.smallSnake = smallSnake;
}
public Capitalization capitalSnake(String capitalSnake) {
public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) {
this.capitalSnake = capitalSnake;
return this;
}
@@ -155,12 +161,12 @@ public class Capitalization {
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapitalSnake(String capitalSnake) {
public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) {
this.capitalSnake = capitalSnake;
}
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
return this;
}
@@ -180,12 +186,12 @@ public class Capitalization {
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setScAETHFlowPoints(String scAETHFlowPoints) {
public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
}
public Capitalization ATT_NAME(String ATT_NAME) {
public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
return this;
}
@@ -205,7 +211,7 @@ public class Capitalization {
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setATTNAME(String ATT_NAME) {
public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
}

View File

@@ -50,12 +50,13 @@ import org.openapitools.client.JSON;
public class Cat extends Animal {
public static final String JSON_PROPERTY_DECLAWED = "declawed";
@javax.annotation.Nullable
private Boolean declawed;
public Cat() {
}
public Cat declawed(Boolean declawed) {
public Cat declawed(@javax.annotation.Nullable Boolean declawed) {
this.declawed = declawed;
return this;
}
@@ -75,7 +76,7 @@ public class Cat extends Animal {
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDeclawed(Boolean declawed) {
public void setDeclawed(@javax.annotation.Nullable Boolean declawed) {
this.declawed = declawed;
}

View File

@@ -36,15 +36,17 @@ import org.openapitools.client.JSON;
@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.Nonnull
private String name = "default-name";
public Category() {
}
public Category id(Long id) {
public Category id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -64,12 +66,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.Nonnull String name) {
this.name = name;
return this;
}
@@ -89,7 +91,7 @@ public class Category {
@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;
}

View File

@@ -52,15 +52,17 @@ import org.openapitools.client.JSON;
public class ChildCat extends ParentPet {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public static final String JSON_PROPERTY_PET_TYPE = "pet_type";
@javax.annotation.Nullable
private String petType = "ChildCat";
public ChildCat() {
}
public ChildCat name(String name) {
public ChildCat name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -80,7 +82,7 @@ public class ChildCat extends ParentPet {
@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;
}
@@ -89,7 +91,7 @@ public class ChildCat extends ParentPet {
"ChildCat"
));
public ChildCat petType(String petType) {
public ChildCat petType(@javax.annotation.Nullable String petType) {
if (!PET_TYPE_VALUES.contains(petType)) {
throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES));
}
@@ -113,7 +115,7 @@ public class ChildCat extends ParentPet {
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPetType(String petType) {
public void setPetType(@javax.annotation.Nullable String petType) {
if (!PET_TYPE_VALUES.contains(petType)) {
throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES));
}

View File

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ClassModel {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
@javax.annotation.Nullable
private String propertyClass;
public ClassModel() {
}
public ClassModel propertyClass(String propertyClass) {
public ClassModel propertyClass(@javax.annotation.Nullable String propertyClass) {
this.propertyClass = propertyClass;
return this;
}
@@ -60,7 +61,7 @@ public class ClassModel {
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
public void setPropertyClass(@javax.annotation.Nullable String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Client {
public static final String JSON_PROPERTY_CLIENT = "client";
@javax.annotation.Nullable
private String client;
public Client() {
}
public Client client(String client) {
public Client client(@javax.annotation.Nullable String client) {
this.client = client;
return this;
}
@@ -60,7 +61,7 @@ public class Client {
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setClient(String client) {
public void setClient(@javax.annotation.Nullable String client) {
this.client = client;
}

View File

@@ -40,15 +40,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ComplexQuadrilateral {
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
@javax.annotation.Nonnull
private String shapeType;
public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType";
@javax.annotation.Nonnull
private String quadrilateralType;
public ComplexQuadrilateral() {
}
public ComplexQuadrilateral shapeType(String shapeType) {
public ComplexQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
return this;
}
@@ -68,12 +70,12 @@ public class ComplexQuadrilateral {
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
public void setShapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
}
public ComplexQuadrilateral quadrilateralType(String quadrilateralType) {
public ComplexQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
return this;
}
@@ -93,7 +95,7 @@ public class ComplexQuadrilateral {
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuadrilateralType(String quadrilateralType) {
public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
}

View File

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DanishPig {
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@javax.annotation.Nonnull
private String className;
public DanishPig() {
}
public DanishPig className(String className) {
public DanishPig className(@javax.annotation.Nonnull String className) {
this.className = className;
return this;
}
@@ -60,7 +61,7 @@ public class DanishPig {
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
public void setClassName(@javax.annotation.Nonnull String className) {
this.className = className;
}

View File

@@ -37,12 +37,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class DeprecatedObject {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private String name;
public DeprecatedObject() {
}
public DeprecatedObject name(String name) {
public DeprecatedObject name(@javax.annotation.Nullable String name) {
this.name = name;
return this;
}
@@ -62,7 +63,7 @@ public class DeprecatedObject {
@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

@@ -49,12 +49,13 @@ import org.openapitools.client.JSON;
public class Dog extends Animal {
public static final String JSON_PROPERTY_BREED = "breed";
@javax.annotation.Nullable
private String breed;
public Dog() {
}
public Dog breed(String breed) {
public Dog breed(@javax.annotation.Nullable String breed) {
this.breed = breed;
return this;
}
@@ -74,7 +75,7 @@ public class Dog extends Animal {
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBreed(String breed) {
public void setBreed(@javax.annotation.Nullable String breed) {
this.breed = breed;
}

View File

@@ -52,6 +52,7 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Drawing {
public static final String JSON_PROPERTY_MAIN_SHAPE = "mainShape";
@javax.annotation.Nullable
private Shape mainShape;
public static final String JSON_PROPERTY_SHAPE_OR_NULL = "shapeOrNull";
@@ -61,12 +62,13 @@ public class Drawing {
private JsonNullable<NullableShape> nullableShape = JsonNullable.<NullableShape>undefined();
public static final String JSON_PROPERTY_SHAPES = "shapes";
@javax.annotation.Nullable
private List<Shape> shapes = new ArrayList<>();
public Drawing() {
}
public Drawing mainShape(Shape mainShape) {
public Drawing mainShape(@javax.annotation.Nullable Shape mainShape) {
this.mainShape = mainShape;
return this;
}
@@ -86,12 +88,12 @@ public class Drawing {
@JsonProperty(JSON_PROPERTY_MAIN_SHAPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMainShape(Shape mainShape) {
public void setMainShape(@javax.annotation.Nullable Shape mainShape) {
this.mainShape = mainShape;
}
public Drawing shapeOrNull(ShapeOrNull shapeOrNull) {
public Drawing shapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) {
this.shapeOrNull = JsonNullable.<ShapeOrNull>of(shapeOrNull);
return this;
}
@@ -119,12 +121,12 @@ public class Drawing {
this.shapeOrNull = shapeOrNull;
}
public void setShapeOrNull(ShapeOrNull shapeOrNull) {
public void setShapeOrNull(@javax.annotation.Nullable ShapeOrNull shapeOrNull) {
this.shapeOrNull = JsonNullable.<ShapeOrNull>of(shapeOrNull);
}
public Drawing nullableShape(NullableShape nullableShape) {
public Drawing nullableShape(@javax.annotation.Nullable NullableShape nullableShape) {
this.nullableShape = JsonNullable.<NullableShape>of(nullableShape);
return this;
}
@@ -152,12 +154,12 @@ public class Drawing {
this.nullableShape = nullableShape;
}
public void setNullableShape(NullableShape nullableShape) {
public void setNullableShape(@javax.annotation.Nullable NullableShape nullableShape) {
this.nullableShape = JsonNullable.<NullableShape>of(nullableShape);
}
public Drawing shapes(List<Shape> shapes) {
public Drawing shapes(@javax.annotation.Nullable List<Shape> shapes) {
this.shapes = shapes;
return this;
}
@@ -185,7 +187,7 @@ public class Drawing {
@JsonProperty(JSON_PROPERTY_SHAPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShapes(List<Shape> shapes) {
public void setShapes(@javax.annotation.Nullable List<Shape> shapes) {
this.shapes = shapes;
}

View File

@@ -73,6 +73,7 @@ public class EnumArrays {
}
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
@javax.annotation.Nullable
private JustSymbolEnum justSymbol;
/**
@@ -111,12 +112,13 @@ public class EnumArrays {
}
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
@javax.annotation.Nullable
private List<ArrayEnumEnum> arrayEnum = new ArrayList<>();
public EnumArrays() {
}
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
public EnumArrays justSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
return this;
}
@@ -136,12 +138,12 @@ public class EnumArrays {
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJustSymbol(JustSymbolEnum justSymbol) {
public void setJustSymbol(@javax.annotation.Nullable JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
}
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
public EnumArrays arrayEnum(@javax.annotation.Nullable List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
return this;
}
@@ -169,7 +171,7 @@ public class EnumArrays {
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
public void setArrayEnum(@javax.annotation.Nullable List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
}

View File

@@ -89,6 +89,7 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
@javax.annotation.Nullable
private EnumStringEnum enumString;
/**
@@ -129,6 +130,7 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
@javax.annotation.Nonnull
private EnumStringRequiredEnum enumStringRequired;
/**
@@ -167,6 +169,7 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
@javax.annotation.Nullable
private EnumIntegerEnum enumInteger;
/**
@@ -205,6 +208,7 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_INTEGER_ONLY = "enum_integer_only";
@javax.annotation.Nullable
private EnumIntegerOnlyEnum enumIntegerOnly;
/**
@@ -243,24 +247,28 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
@javax.annotation.Nullable
private EnumNumberEnum enumNumber;
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
private JsonNullable<OuterEnum> outerEnum = JsonNullable.<OuterEnum>undefined();
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger";
@javax.annotation.Nullable
private OuterEnumInteger outerEnumInteger;
public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue";
@javax.annotation.Nullable
private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED;
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
@javax.annotation.Nullable
private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
public EnumTest() {
}
public EnumTest enumString(EnumStringEnum enumString) {
public EnumTest enumString(@javax.annotation.Nullable EnumStringEnum enumString) {
this.enumString = enumString;
return this;
}
@@ -280,12 +288,12 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumString(EnumStringEnum enumString) {
public void setEnumString(@javax.annotation.Nullable EnumStringEnum enumString) {
this.enumString = enumString;
}
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
public EnumTest enumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired;
return this;
}
@@ -305,12 +313,12 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
public void setEnumStringRequired(@javax.annotation.Nonnull EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired;
}
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
public EnumTest enumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
return this;
}
@@ -330,12 +338,12 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumInteger(EnumIntegerEnum enumInteger) {
public void setEnumInteger(@javax.annotation.Nullable EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
}
public EnumTest enumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) {
public EnumTest enumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) {
this.enumIntegerOnly = enumIntegerOnly;
return this;
}
@@ -355,12 +363,12 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER_ONLY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumIntegerOnly(EnumIntegerOnlyEnum enumIntegerOnly) {
public void setEnumIntegerOnly(@javax.annotation.Nullable EnumIntegerOnlyEnum enumIntegerOnly) {
this.enumIntegerOnly = enumIntegerOnly;
}
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
return this;
}
@@ -380,12 +388,12 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumNumber(EnumNumberEnum enumNumber) {
public void setEnumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
}
public EnumTest outerEnum(OuterEnum outerEnum) {
public EnumTest outerEnum(@javax.annotation.Nullable OuterEnum outerEnum) {
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
return this;
}
@@ -413,12 +421,12 @@ public class EnumTest {
this.outerEnum = outerEnum;
}
public void setOuterEnum(OuterEnum outerEnum) {
public void setOuterEnum(@javax.annotation.Nullable OuterEnum outerEnum) {
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
}
public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) {
public EnumTest outerEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) {
this.outerEnumInteger = outerEnumInteger;
return this;
}
@@ -438,12 +446,12 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
public void setOuterEnumInteger(@javax.annotation.Nullable OuterEnumInteger outerEnumInteger) {
this.outerEnumInteger = outerEnumInteger;
}
public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
public EnumTest outerEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) {
this.outerEnumDefaultValue = outerEnumDefaultValue;
return this;
}
@@ -463,12 +471,12 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
public void setOuterEnumDefaultValue(@javax.annotation.Nullable OuterEnumDefaultValue outerEnumDefaultValue) {
this.outerEnumDefaultValue = outerEnumDefaultValue;
}
public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
public EnumTest outerEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
return this;
}
@@ -488,7 +496,7 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
}

View File

@@ -40,15 +40,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class EquilateralTriangle {
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
@javax.annotation.Nonnull
private String shapeType;
public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType";
@javax.annotation.Nonnull
private String triangleType;
public EquilateralTriangle() {
}
public EquilateralTriangle shapeType(String shapeType) {
public EquilateralTriangle shapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
return this;
}
@@ -68,12 +70,12 @@ public class EquilateralTriangle {
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
public void setShapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
}
public EquilateralTriangle triangleType(String triangleType) {
public EquilateralTriangle triangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
return this;
}
@@ -93,7 +95,7 @@ public class EquilateralTriangle {
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
public void setTriangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -39,15 +39,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILE = "file";
@javax.annotation.Nullable
private ModelFile _file;
public static final String JSON_PROPERTY_FILES = "files";
@javax.annotation.Nullable
private List<ModelFile> files = new ArrayList<>();
public FileSchemaTestClass() {
}
public FileSchemaTestClass _file(ModelFile _file) {
public FileSchemaTestClass _file(@javax.annotation.Nullable ModelFile _file) {
this._file = _file;
return this;
}
@@ -67,12 +69,12 @@ public class FileSchemaTestClass {
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFile(ModelFile _file) {
public void setFile(@javax.annotation.Nullable ModelFile _file) {
this._file = _file;
}
public FileSchemaTestClass files(List<ModelFile> files) {
public FileSchemaTestClass files(@javax.annotation.Nullable List<ModelFile> files) {
this.files = files;
return this;
}
@@ -100,7 +102,7 @@ public class FileSchemaTestClass {
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFiles(List<ModelFile> files) {
public void setFiles(@javax.annotation.Nullable List<ModelFile> files) {
this.files = files;
}

View File

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Foo {
public static final String JSON_PROPERTY_BAR = "bar";
@javax.annotation.Nullable
private String bar = "bar";
public Foo() {
}
public Foo bar(String bar) {
public Foo bar(@javax.annotation.Nullable String bar) {
this.bar = bar;
return this;
}
@@ -60,7 +61,7 @@ public class Foo {
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBar(String bar) {
public void setBar(@javax.annotation.Nullable String bar) {
this.bar = bar;
}

View File

@@ -37,12 +37,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class FooGetDefaultResponse {
public static final String JSON_PROPERTY_STRING = "string";
@javax.annotation.Nullable
private Foo string;
public FooGetDefaultResponse() {
}
public FooGetDefaultResponse string(Foo string) {
public FooGetDefaultResponse string(@javax.annotation.Nullable Foo string) {
this.string = string;
return this;
}
@@ -62,7 +63,7 @@ public class FooGetDefaultResponse {
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setString(Foo string) {
public void setString(@javax.annotation.Nullable Foo string) {
this.string = string;
}

View File

@@ -56,57 +56,73 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class FormatTest {
public static final String JSON_PROPERTY_INTEGER = "integer";
@javax.annotation.Nullable
private Integer integer;
public static final String JSON_PROPERTY_INT32 = "int32";
@javax.annotation.Nullable
private Integer int32;
public static final String JSON_PROPERTY_INT64 = "int64";
@javax.annotation.Nullable
private Long int64;
public static final String JSON_PROPERTY_NUMBER = "number";
@javax.annotation.Nonnull
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 static final String JSON_PROPERTY_DECIMAL = "decimal";
@javax.annotation.Nullable
private BigDecimal decimal;
public static final String JSON_PROPERTY_STRING = "string";
@javax.annotation.Nullable
private String string;
public static final String JSON_PROPERTY_BYTE = "byte";
@javax.annotation.Nonnull
private byte[] _byte;
public static final String JSON_PROPERTY_BINARY = "binary";
@javax.annotation.Nullable
private File binary;
public static final String JSON_PROPERTY_DATE = "date";
@javax.annotation.Nonnull
private LocalDate date;
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
@javax.annotation.Nullable
private OffsetDateTime dateTime;
public static final String JSON_PROPERTY_UUID = "uuid";
@javax.annotation.Nullable
private UUID uuid;
public static final String JSON_PROPERTY_PASSWORD = "password";
@javax.annotation.Nonnull
private String password;
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits";
@javax.annotation.Nullable
private String patternWithDigits;
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
@javax.annotation.Nullable
private String patternWithDigitsAndDelimiter;
public FormatTest() {
}
public FormatTest integer(Integer integer) {
public FormatTest integer(@javax.annotation.Nullable Integer integer) {
this.integer = integer;
return this;
}
@@ -128,12 +144,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInteger(Integer integer) {
public void setInteger(@javax.annotation.Nullable Integer integer) {
this.integer = integer;
}
public FormatTest int32(Integer int32) {
public FormatTest int32(@javax.annotation.Nullable Integer int32) {
this.int32 = int32;
return this;
}
@@ -155,12 +171,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInt32(Integer int32) {
public void setInt32(@javax.annotation.Nullable Integer int32) {
this.int32 = int32;
}
public FormatTest int64(Long int64) {
public FormatTest int64(@javax.annotation.Nullable Long int64) {
this.int64 = int64;
return this;
}
@@ -180,12 +196,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInt64(Long int64) {
public void setInt64(@javax.annotation.Nullable Long int64) {
this.int64 = int64;
}
public FormatTest number(BigDecimal number) {
public FormatTest number(@javax.annotation.Nonnull BigDecimal number) {
this.number = number;
return this;
}
@@ -207,12 +223,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNumber(BigDecimal number) {
public void setNumber(@javax.annotation.Nonnull BigDecimal number) {
this.number = number;
}
public FormatTest _float(Float _float) {
public FormatTest _float(@javax.annotation.Nullable Float _float) {
this._float = _float;
return this;
}
@@ -234,12 +250,12 @@ public class FormatTest {
@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 FormatTest _double(Double _double) {
public FormatTest _double(@javax.annotation.Nullable Double _double) {
this._double = _double;
return this;
}
@@ -261,12 +277,12 @@ public class FormatTest {
@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;
}
public FormatTest decimal(BigDecimal decimal) {
public FormatTest decimal(@javax.annotation.Nullable BigDecimal decimal) {
this.decimal = decimal;
return this;
}
@@ -286,12 +302,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_DECIMAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDecimal(BigDecimal decimal) {
public void setDecimal(@javax.annotation.Nullable BigDecimal decimal) {
this.decimal = decimal;
}
public FormatTest string(String string) {
public FormatTest string(@javax.annotation.Nullable String string) {
this.string = string;
return this;
}
@@ -311,12 +327,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setString(String string) {
public void setString(@javax.annotation.Nullable String string) {
this.string = string;
}
public FormatTest _byte(byte[] _byte) {
public FormatTest _byte(@javax.annotation.Nonnull byte[] _byte) {
this._byte = _byte;
return this;
}
@@ -336,12 +352,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setByte(byte[] _byte) {
public void setByte(@javax.annotation.Nonnull byte[] _byte) {
this._byte = _byte;
}
public FormatTest binary(File binary) {
public FormatTest binary(@javax.annotation.Nullable File binary) {
this.binary = binary;
return this;
}
@@ -361,12 +377,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBinary(File binary) {
public void setBinary(@javax.annotation.Nullable File binary) {
this.binary = binary;
}
public FormatTest date(LocalDate date) {
public FormatTest date(@javax.annotation.Nonnull LocalDate date) {
this.date = date;
return this;
}
@@ -386,12 +402,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDate(LocalDate date) {
public void setDate(@javax.annotation.Nonnull LocalDate date) {
this.date = date;
}
public FormatTest dateTime(OffsetDateTime dateTime) {
public FormatTest dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) {
this.dateTime = dateTime;
return this;
}
@@ -411,12 +427,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDateTime(OffsetDateTime dateTime) {
public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
public FormatTest uuid(UUID uuid) {
public FormatTest uuid(@javax.annotation.Nullable UUID uuid) {
this.uuid = uuid;
return this;
}
@@ -436,12 +452,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUuid(UUID uuid) {
public void setUuid(@javax.annotation.Nullable UUID uuid) {
this.uuid = uuid;
}
public FormatTest password(String password) {
public FormatTest password(@javax.annotation.Nonnull String password) {
this.password = password;
return this;
}
@@ -461,12 +477,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPassword(String password) {
public void setPassword(@javax.annotation.Nonnull String password) {
this.password = password;
}
public FormatTest patternWithDigits(String patternWithDigits) {
public FormatTest patternWithDigits(@javax.annotation.Nullable String patternWithDigits) {
this.patternWithDigits = patternWithDigits;
return this;
}
@@ -486,12 +502,12 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPatternWithDigits(String patternWithDigits) {
public void setPatternWithDigits(@javax.annotation.Nullable String patternWithDigits) {
this.patternWithDigits = patternWithDigits;
}
public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
public FormatTest patternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) {
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
return this;
}
@@ -511,7 +527,7 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) {
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
}

View File

@@ -48,12 +48,13 @@ import org.openapitools.client.JSON;
public class GrandparentAnimal {
public static final String JSON_PROPERTY_PET_TYPE = "pet_type";
@javax.annotation.Nonnull
private String petType;
public GrandparentAnimal() {
}
public GrandparentAnimal petType(String petType) {
public GrandparentAnimal petType(@javax.annotation.Nonnull String petType) {
this.petType = petType;
return this;
}
@@ -73,7 +74,7 @@ public class GrandparentAnimal {
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPetType(String petType) {
public void setPetType(@javax.annotation.Nonnull String petType) {
this.petType = petType;
}

View File

@@ -37,9 +37,11 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_BAR = "bar";
@javax.annotation.Nullable
private String bar;
public static final String JSON_PROPERTY_FOO = "foo";
@javax.annotation.Nullable
private String foo;
public HasOnlyReadOnly() {

View File

@@ -44,7 +44,7 @@ public class HealthCheckResult {
public HealthCheckResult() {
}
public HealthCheckResult nullableMessage(String nullableMessage) {
public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) {
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
return this;
}
@@ -72,7 +72,7 @@ public class HealthCheckResult {
this.nullableMessage = nullableMessage;
}
public void setNullableMessage(String nullableMessage) {
public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) {
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
}

View File

@@ -36,15 +36,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class IsoscelesTriangle {
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
@javax.annotation.Nonnull
private String shapeType;
public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType";
@javax.annotation.Nonnull
private String triangleType;
public IsoscelesTriangle() {
}
public IsoscelesTriangle shapeType(String shapeType) {
public IsoscelesTriangle shapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
return this;
}
@@ -64,12 +66,12 @@ public class IsoscelesTriangle {
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
public void setShapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
}
public IsoscelesTriangle triangleType(String triangleType) {
public IsoscelesTriangle triangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
return this;
}
@@ -89,7 +91,7 @@ public class IsoscelesTriangle {
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
public void setTriangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -40,6 +40,7 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class MapTest {
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
@javax.annotation.Nullable
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
/**
@@ -78,18 +79,21 @@ public class MapTest {
}
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
@javax.annotation.Nullable
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
@javax.annotation.Nullable
private Map<String, Boolean> directMap = new HashMap<>();
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
@javax.annotation.Nullable
private Map<String, Boolean> indirectMap = new HashMap<>();
public MapTest() {
}
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
public MapTest mapMapOfString(@javax.annotation.Nullable Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
return this;
}
@@ -117,12 +121,12 @@ public class MapTest {
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
public void setMapMapOfString(@javax.annotation.Nullable Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
}
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
public MapTest mapOfEnumString(@javax.annotation.Nullable Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
return this;
}
@@ -150,12 +154,12 @@ public class MapTest {
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
public void setMapOfEnumString(@javax.annotation.Nullable Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
}
public MapTest directMap(Map<String, Boolean> directMap) {
public MapTest directMap(@javax.annotation.Nullable Map<String, Boolean> directMap) {
this.directMap = directMap;
return this;
}
@@ -183,12 +187,12 @@ public class MapTest {
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDirectMap(Map<String, Boolean> directMap) {
public void setDirectMap(@javax.annotation.Nullable Map<String, Boolean> directMap) {
this.directMap = directMap;
}
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
public MapTest indirectMap(@javax.annotation.Nullable Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap;
return this;
}
@@ -216,7 +220,7 @@ public class MapTest {
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIndirectMap(Map<String, Boolean> indirectMap) {
public void setIndirectMap(@javax.annotation.Nullable Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap;
}

View File

@@ -42,18 +42,21 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String JSON_PROPERTY_UUID = "uuid";
@javax.annotation.Nullable
private UUID uuid;
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
@javax.annotation.Nullable
private OffsetDateTime dateTime;
public static final String JSON_PROPERTY_MAP = "map";
@javax.annotation.Nullable
private Map<String, Animal> map = new HashMap<>();
public MixedPropertiesAndAdditionalPropertiesClass() {
}
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
public MixedPropertiesAndAdditionalPropertiesClass uuid(@javax.annotation.Nullable UUID uuid) {
this.uuid = uuid;
return this;
}
@@ -73,12 +76,12 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUuid(UUID uuid) {
public void setUuid(@javax.annotation.Nullable UUID uuid) {
this.uuid = uuid;
}
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
public MixedPropertiesAndAdditionalPropertiesClass dateTime(@javax.annotation.Nullable OffsetDateTime dateTime) {
this.dateTime = dateTime;
return this;
}
@@ -98,12 +101,12 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDateTime(OffsetDateTime dateTime) {
public void setDateTime(@javax.annotation.Nullable OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
public MixedPropertiesAndAdditionalPropertiesClass map(@javax.annotation.Nullable Map<String, Animal> map) {
this.map = map;
return this;
}
@@ -131,7 +134,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMap(Map<String, Animal> map) {
public void setMap(@javax.annotation.Nullable Map<String, Animal> map) {
this.map = map;
}

View File

@@ -37,15 +37,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Model200Response {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nullable
private Integer name;
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
@javax.annotation.Nullable
private String propertyClass;
public Model200Response() {
}
public Model200Response name(Integer name) {
public Model200Response name(@javax.annotation.Nullable Integer name) {
this.name = name;
return this;
}
@@ -65,12 +67,12 @@ public class Model200Response {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(Integer name) {
public void setName(@javax.annotation.Nullable Integer name) {
this.name = name;
}
public Model200Response propertyClass(String propertyClass) {
public Model200Response propertyClass(@javax.annotation.Nullable String propertyClass) {
this.propertyClass = propertyClass;
return this;
}
@@ -90,7 +92,7 @@ public class Model200Response {
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
public void setPropertyClass(@javax.annotation.Nullable String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -38,18 +38,21 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ModelApiResponse {
public static final String JSON_PROPERTY_CODE = "code";
@javax.annotation.Nullable
private Integer code;
public static final String JSON_PROPERTY_TYPE = "type";
@javax.annotation.Nullable
private String type;
public static final String JSON_PROPERTY_MESSAGE = "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;
}
@@ -69,12 +72,12 @@ public class ModelApiResponse {
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -94,12 +97,12 @@ public class ModelApiResponse {
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -119,7 +122,7 @@ public class ModelApiResponse {
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMessage(String message) {
public void setMessage(@javax.annotation.Nullable String message) {
this.message = message;
}

View File

@@ -36,12 +36,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ModelFile {
public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI";
@javax.annotation.Nullable
private String sourceURI;
public ModelFile() {
}
public ModelFile sourceURI(String sourceURI) {
public ModelFile sourceURI(@javax.annotation.Nullable String sourceURI) {
this.sourceURI = sourceURI;
return this;
}
@@ -61,7 +62,7 @@ public class ModelFile {
@JsonProperty(JSON_PROPERTY_SOURCE_U_R_I)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSourceURI(String sourceURI) {
public void setSourceURI(@javax.annotation.Nullable String sourceURI) {
this.sourceURI = sourceURI;
}

View File

@@ -36,12 +36,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ModelList {
public static final String JSON_PROPERTY_123LIST = "123-list";
@javax.annotation.Nullable
private String _123list;
public ModelList() {
}
public ModelList _123list(String _123list) {
public ModelList _123list(@javax.annotation.Nullable String _123list) {
this._123list = _123list;
return this;
}
@@ -61,7 +62,7 @@ public class ModelList {
@JsonProperty(JSON_PROPERTY_123LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void set123list(String _123list) {
public void set123list(@javax.annotation.Nullable String _123list) {
this._123list = _123list;
}

View File

@@ -36,12 +36,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ModelReturn {
public static final String JSON_PROPERTY_RETURN = "return";
@javax.annotation.Nullable
private Integer _return;
public ModelReturn() {
}
public ModelReturn _return(Integer _return) {
public ModelReturn _return(@javax.annotation.Nullable Integer _return) {
this._return = _return;
return this;
}
@@ -61,7 +62,7 @@ public class ModelReturn {
@JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReturn(Integer _return) {
public void setReturn(@javax.annotation.Nullable Integer _return) {
this._return = _return;
}

View File

@@ -38,15 +38,19 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Name {
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nonnull
private Integer name;
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
@javax.annotation.Nullable
private Integer snakeCase;
public static final String JSON_PROPERTY_PROPERTY = "property";
@javax.annotation.Nullable
private String property;
public static final String JSON_PROPERTY_123NUMBER = "123Number";
@javax.annotation.Nullable
private Integer _123number;
public Name() {
@@ -62,7 +66,7 @@ public class Name {
this._123number = _123number;
}
public Name name(Integer name) {
public Name name(@javax.annotation.Nonnull Integer name) {
this.name = name;
return this;
}
@@ -82,7 +86,7 @@ public class Name {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(Integer name) {
public void setName(@javax.annotation.Nonnull Integer name) {
this.name = name;
}
@@ -102,7 +106,7 @@ public class Name {
public Name property(String property) {
public Name property(@javax.annotation.Nullable String property) {
this.property = property;
return this;
}
@@ -122,7 +126,7 @@ public class Name {
@JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProperty(String property) {
public void setProperty(@javax.annotation.Nullable String property) {
this.property = property;
}

View File

@@ -85,6 +85,7 @@ public class NullableClass {
private JsonNullable<List<Object>> arrayAndItemsNullableProp = JsonNullable.<List<Object>>undefined();
public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable";
@javax.annotation.Nullable
private List<Object> arrayItemsNullable = new ArrayList<>();
public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop";
@@ -94,12 +95,13 @@ public class NullableClass {
private JsonNullable<Map<String, Object>> objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>undefined();
public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable";
@javax.annotation.Nullable
private Map<String, Object> objectItemsNullable = new HashMap<>();
public NullableClass() {
}
public NullableClass integerProp(Integer integerProp) {
public NullableClass integerProp(@javax.annotation.Nullable Integer integerProp) {
this.integerProp = JsonNullable.<Integer>of(integerProp);
return this;
}
@@ -127,12 +129,12 @@ public class NullableClass {
this.integerProp = integerProp;
}
public void setIntegerProp(Integer integerProp) {
public void setIntegerProp(@javax.annotation.Nullable Integer integerProp) {
this.integerProp = JsonNullable.<Integer>of(integerProp);
}
public NullableClass numberProp(BigDecimal numberProp) {
public NullableClass numberProp(@javax.annotation.Nullable BigDecimal numberProp) {
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
return this;
}
@@ -160,12 +162,12 @@ public class NullableClass {
this.numberProp = numberProp;
}
public void setNumberProp(BigDecimal numberProp) {
public void setNumberProp(@javax.annotation.Nullable BigDecimal numberProp) {
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
}
public NullableClass booleanProp(Boolean booleanProp) {
public NullableClass booleanProp(@javax.annotation.Nullable Boolean booleanProp) {
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
return this;
}
@@ -193,12 +195,12 @@ public class NullableClass {
this.booleanProp = booleanProp;
}
public void setBooleanProp(Boolean booleanProp) {
public void setBooleanProp(@javax.annotation.Nullable Boolean booleanProp) {
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
}
public NullableClass stringProp(String stringProp) {
public NullableClass stringProp(@javax.annotation.Nullable String stringProp) {
this.stringProp = JsonNullable.<String>of(stringProp);
return this;
}
@@ -226,12 +228,12 @@ public class NullableClass {
this.stringProp = stringProp;
}
public void setStringProp(String stringProp) {
public void setStringProp(@javax.annotation.Nullable String stringProp) {
this.stringProp = JsonNullable.<String>of(stringProp);
}
public NullableClass dateProp(LocalDate dateProp) {
public NullableClass dateProp(@javax.annotation.Nullable LocalDate dateProp) {
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
return this;
}
@@ -259,12 +261,12 @@ public class NullableClass {
this.dateProp = dateProp;
}
public void setDateProp(LocalDate dateProp) {
public void setDateProp(@javax.annotation.Nullable LocalDate dateProp) {
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
}
public NullableClass datetimeProp(OffsetDateTime datetimeProp) {
public NullableClass datetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) {
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
return this;
}
@@ -292,12 +294,12 @@ public class NullableClass {
this.datetimeProp = datetimeProp;
}
public void setDatetimeProp(OffsetDateTime datetimeProp) {
public void setDatetimeProp(@javax.annotation.Nullable OffsetDateTime datetimeProp) {
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
}
public NullableClass arrayNullableProp(List<Object> arrayNullableProp) {
public NullableClass arrayNullableProp(@javax.annotation.Nullable List<Object> arrayNullableProp) {
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
return this;
}
@@ -337,12 +339,12 @@ public class NullableClass {
this.arrayNullableProp = arrayNullableProp;
}
public void setArrayNullableProp(List<Object> arrayNullableProp) {
public void setArrayNullableProp(@javax.annotation.Nullable List<Object> arrayNullableProp) {
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
}
public NullableClass arrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
public NullableClass arrayAndItemsNullableProp(@javax.annotation.Nullable List<Object> arrayAndItemsNullableProp) {
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
return this;
}
@@ -382,12 +384,12 @@ public class NullableClass {
this.arrayAndItemsNullableProp = arrayAndItemsNullableProp;
}
public void setArrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
public void setArrayAndItemsNullableProp(@javax.annotation.Nullable List<Object> arrayAndItemsNullableProp) {
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
}
public NullableClass arrayItemsNullable(List<Object> arrayItemsNullable) {
public NullableClass arrayItemsNullable(@javax.annotation.Nullable List<Object> arrayItemsNullable) {
this.arrayItemsNullable = arrayItemsNullable;
return this;
}
@@ -415,12 +417,12 @@ public class NullableClass {
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayItemsNullable(List<Object> arrayItemsNullable) {
public void setArrayItemsNullable(@javax.annotation.Nullable List<Object> arrayItemsNullable) {
this.arrayItemsNullable = arrayItemsNullable;
}
public NullableClass objectNullableProp(Map<String, Object> objectNullableProp) {
public NullableClass objectNullableProp(@javax.annotation.Nullable Map<String, Object> objectNullableProp) {
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
return this;
}
@@ -460,12 +462,12 @@ public class NullableClass {
this.objectNullableProp = objectNullableProp;
}
public void setObjectNullableProp(Map<String, Object> objectNullableProp) {
public void setObjectNullableProp(@javax.annotation.Nullable Map<String, Object> objectNullableProp) {
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
}
public NullableClass objectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
public NullableClass objectAndItemsNullableProp(@javax.annotation.Nullable Map<String, Object> objectAndItemsNullableProp) {
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
return this;
}
@@ -505,12 +507,12 @@ public class NullableClass {
this.objectAndItemsNullableProp = objectAndItemsNullableProp;
}
public void setObjectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
public void setObjectAndItemsNullableProp(@javax.annotation.Nullable Map<String, Object> objectAndItemsNullableProp) {
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
}
public NullableClass objectItemsNullable(Map<String, Object> objectItemsNullable) {
public NullableClass objectItemsNullable(@javax.annotation.Nullable Map<String, Object> objectItemsNullable) {
this.objectItemsNullable = objectItemsNullable;
return this;
}
@@ -538,7 +540,7 @@ public class NullableClass {
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setObjectItemsNullable(Map<String, Object> objectItemsNullable) {
public void setObjectItemsNullable(@javax.annotation.Nullable Map<String, Object> objectItemsNullable) {
this.objectItemsNullable = objectItemsNullable;
}

View File

@@ -36,12 +36,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class NumberOnly {
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
@javax.annotation.Nullable
private BigDecimal justNumber;
public NumberOnly() {
}
public NumberOnly justNumber(BigDecimal justNumber) {
public NumberOnly justNumber(@javax.annotation.Nullable BigDecimal justNumber) {
this.justNumber = justNumber;
return this;
}
@@ -61,7 +62,7 @@ public class NumberOnly {
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJustNumber(BigDecimal justNumber) {
public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) {
this.justNumber = justNumber;
}

View File

@@ -42,24 +42,28 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ObjectWithDeprecatedFields {
public static final String JSON_PROPERTY_UUID = "uuid";
@javax.annotation.Nullable
private String uuid;
public static final String JSON_PROPERTY_ID = "id";
@Deprecated
@javax.annotation.Nullable
private BigDecimal id;
public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef";
@Deprecated
@javax.annotation.Nullable
private DeprecatedObject deprecatedRef;
public static final String JSON_PROPERTY_BARS = "bars";
@Deprecated
@javax.annotation.Nullable
private List<String> bars = new ArrayList<>();
public ObjectWithDeprecatedFields() {
}
public ObjectWithDeprecatedFields uuid(String uuid) {
public ObjectWithDeprecatedFields uuid(@javax.annotation.Nullable String uuid) {
this.uuid = uuid;
return this;
}
@@ -79,13 +83,13 @@ public class ObjectWithDeprecatedFields {
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUuid(String uuid) {
public void setUuid(@javax.annotation.Nullable String uuid) {
this.uuid = uuid;
}
@Deprecated
public ObjectWithDeprecatedFields id(BigDecimal id) {
public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) {
this.id = id;
return this;
}
@@ -108,13 +112,13 @@ public class ObjectWithDeprecatedFields {
@Deprecated
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(BigDecimal id) {
public void setId(@javax.annotation.Nullable BigDecimal id) {
this.id = id;
}
@Deprecated
public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) {
public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) {
this.deprecatedRef = deprecatedRef;
return this;
}
@@ -137,13 +141,13 @@ public class ObjectWithDeprecatedFields {
@Deprecated
@JsonProperty(JSON_PROPERTY_DEPRECATED_REF)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDeprecatedRef(DeprecatedObject deprecatedRef) {
public void setDeprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) {
this.deprecatedRef = deprecatedRef;
}
@Deprecated
public ObjectWithDeprecatedFields bars(List<String> bars) {
public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List<String> bars) {
this.bars = bars;
return this;
}
@@ -174,7 +178,7 @@ public class ObjectWithDeprecatedFields {
@Deprecated
@JsonProperty(JSON_PROPERTY_BARS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBars(List<String> bars) {
public void setBars(@javax.annotation.Nullable List<String> bars) {
this.bars = bars;
}

View File

@@ -41,15 +41,19 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Order {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_PET_ID = "petId";
@javax.annotation.Nullable
private Long petId;
public static final String JSON_PROPERTY_QUANTITY = "quantity";
@javax.annotation.Nullable
private Integer quantity;
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
@javax.annotation.Nullable
private OffsetDateTime shipDate;
/**
@@ -90,15 +94,17 @@ public class Order {
}
public static final String JSON_PROPERTY_STATUS = "status";
@javax.annotation.Nullable
private StatusEnum status;
public static final String JSON_PROPERTY_COMPLETE = "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;
}
@@ -118,12 +124,12 @@ public class Order {
@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 Order petId(Long petId) {
public Order petId(@javax.annotation.Nullable Long petId) {
this.petId = petId;
return this;
}
@@ -143,12 +149,12 @@ public class Order {
@JsonProperty(JSON_PROPERTY_PET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -168,12 +174,12 @@ public class Order {
@JsonProperty(JSON_PROPERTY_QUANTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -193,12 +199,12 @@ public class Order {
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -218,12 +224,12 @@ public class Order {
@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;
}
public Order complete(Boolean complete) {
public Order complete(@javax.annotation.Nullable Boolean complete) {
this.complete = complete;
return this;
}
@@ -243,7 +249,7 @@ public class Order {
@JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setComplete(Boolean complete) {
public void setComplete(@javax.annotation.Nullable Boolean complete) {
this.complete = complete;
}

View File

@@ -38,18 +38,21 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class OuterComposite {
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
@javax.annotation.Nullable
private BigDecimal myNumber;
public static final String JSON_PROPERTY_MY_STRING = "my_string";
@javax.annotation.Nullable
private String myString;
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
@javax.annotation.Nullable
private Boolean myBoolean;
public OuterComposite() {
}
public OuterComposite myNumber(BigDecimal myNumber) {
public OuterComposite myNumber(@javax.annotation.Nullable BigDecimal myNumber) {
this.myNumber = myNumber;
return this;
}
@@ -69,12 +72,12 @@ public class OuterComposite {
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMyNumber(BigDecimal myNumber) {
public void setMyNumber(@javax.annotation.Nullable BigDecimal myNumber) {
this.myNumber = myNumber;
}
public OuterComposite myString(String myString) {
public OuterComposite myString(@javax.annotation.Nullable String myString) {
this.myString = myString;
return this;
}
@@ -94,12 +97,12 @@ public class OuterComposite {
@JsonProperty(JSON_PROPERTY_MY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMyString(String myString) {
public void setMyString(@javax.annotation.Nullable String myString) {
this.myString = myString;
}
public OuterComposite myBoolean(Boolean myBoolean) {
public OuterComposite myBoolean(@javax.annotation.Nullable Boolean myBoolean) {
this.myBoolean = myBoolean;
return this;
}
@@ -119,7 +122,7 @@ public class OuterComposite {
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMyBoolean(Boolean myBoolean) {
public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) {
this.myBoolean = myBoolean;
}

View File

@@ -44,18 +44,23 @@ import org.openapitools.client.JSON;
@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_CATEGORY = "category";
@javax.annotation.Nullable
private Category category;
public static final String JSON_PROPERTY_NAME = "name";
@javax.annotation.Nonnull
private String name;
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<>();
/**
@@ -96,12 +101,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;
}
@@ -121,12 +127,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 category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
}
@@ -146,12 +152,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 name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
}
@@ -171,12 +177,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 photoUrls(List<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
@@ -204,12 +210,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;
}
@@ -237,12 +243,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;
}
@@ -262,7 +268,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

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class QuadrilateralInterface {
public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType";
@javax.annotation.Nonnull
private String quadrilateralType;
public QuadrilateralInterface() {
}
public QuadrilateralInterface quadrilateralType(String quadrilateralType) {
public QuadrilateralInterface quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
return this;
}
@@ -60,7 +61,7 @@ public class QuadrilateralInterface {
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuadrilateralType(String quadrilateralType) {
public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
}

View File

@@ -36,9 +36,11 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ReadOnlyFirst {
public static final String JSON_PROPERTY_BAR = "bar";
@javax.annotation.Nullable
private String bar;
public static final String JSON_PROPERTY_BAZ = "baz";
@javax.annotation.Nullable
private String baz;
public ReadOnlyFirst() {
@@ -67,7 +69,7 @@ public class ReadOnlyFirst {
public ReadOnlyFirst baz(String baz) {
public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) {
this.baz = baz;
return this;
}
@@ -87,7 +89,7 @@ public class ReadOnlyFirst {
@JsonProperty(JSON_PROPERTY_BAZ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBaz(String baz) {
public void setBaz(@javax.annotation.Nullable String baz) {
this.baz = baz;
}

View File

@@ -40,15 +40,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ScaleneTriangle {
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
@javax.annotation.Nonnull
private String shapeType;
public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType";
@javax.annotation.Nonnull
private String triangleType;
public ScaleneTriangle() {
}
public ScaleneTriangle shapeType(String shapeType) {
public ScaleneTriangle shapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
return this;
}
@@ -68,12 +70,12 @@ public class ScaleneTriangle {
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
public void setShapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
}
public ScaleneTriangle triangleType(String triangleType) {
public ScaleneTriangle triangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
return this;
}
@@ -93,7 +95,7 @@ public class ScaleneTriangle {
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
public void setTriangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class ShapeInterface {
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
@javax.annotation.Nonnull
private String shapeType;
public ShapeInterface() {
}
public ShapeInterface shapeType(String shapeType) {
public ShapeInterface shapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
return this;
}
@@ -60,7 +61,7 @@ public class ShapeInterface {
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
public void setShapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
}

View File

@@ -40,15 +40,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class SimpleQuadrilateral {
public static final String JSON_PROPERTY_SHAPE_TYPE = "shapeType";
@javax.annotation.Nonnull
private String shapeType;
public static final String JSON_PROPERTY_QUADRILATERAL_TYPE = "quadrilateralType";
@javax.annotation.Nonnull
private String quadrilateralType;
public SimpleQuadrilateral() {
}
public SimpleQuadrilateral shapeType(String shapeType) {
public SimpleQuadrilateral shapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
return this;
}
@@ -68,12 +70,12 @@ public class SimpleQuadrilateral {
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
public void setShapeType(@javax.annotation.Nonnull String shapeType) {
this.shapeType = shapeType;
}
public SimpleQuadrilateral quadrilateralType(String quadrilateralType) {
public SimpleQuadrilateral quadrilateralType(@javax.annotation.Nonnull String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
return this;
}
@@ -93,7 +95,7 @@ public class SimpleQuadrilateral {
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuadrilateralType(String quadrilateralType) {
public void setQuadrilateralType(@javax.annotation.Nonnull String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
}

View File

@@ -37,15 +37,17 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class SpecialModelName {
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
@javax.annotation.Nullable
private Long $specialPropertyName;
public static final String JSON_PROPERTY_SPECIAL_MODEL_NAME = "_special_model.name_";
@javax.annotation.Nullable
private String specialModelName;
public SpecialModelName() {
}
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName;
return this;
}
@@ -65,12 +67,12 @@ public class SpecialModelName {
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void set$SpecialPropertyName(Long $specialPropertyName) {
public void set$SpecialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName;
}
public SpecialModelName specialModelName(String specialModelName) {
public SpecialModelName specialModelName(@javax.annotation.Nullable String specialModelName) {
this.specialModelName = specialModelName;
return this;
}
@@ -90,7 +92,7 @@ public class SpecialModelName {
@JsonProperty(JSON_PROPERTY_SPECIAL_MODEL_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSpecialModelName(String specialModelName) {
public void setSpecialModelName(@javax.annotation.Nullable String specialModelName) {
this.specialModelName = specialModelName;
}

View File

@@ -36,15 +36,17 @@ import org.openapitools.client.JSON;
@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;
}
@@ -64,12 +66,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;
}
@@ -89,7 +91,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

@@ -40,12 +40,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TestInlineFreeformAdditionalPropertiesRequest {
public static final String JSON_PROPERTY_SOME_PROPERTY = "someProperty";
@javax.annotation.Nullable
private String someProperty;
public TestInlineFreeformAdditionalPropertiesRequest() {
}
public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) {
public TestInlineFreeformAdditionalPropertiesRequest someProperty(@javax.annotation.Nullable String someProperty) {
this.someProperty = someProperty;
return this;
}
@@ -65,7 +66,7 @@ public class TestInlineFreeformAdditionalPropertiesRequest {
@JsonProperty(JSON_PROPERTY_SOME_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSomeProperty(String someProperty) {
public void setSomeProperty(@javax.annotation.Nullable String someProperty) {
this.someProperty = someProperty;
}

View File

@@ -35,12 +35,13 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class TriangleInterface {
public static final String JSON_PROPERTY_TRIANGLE_TYPE = "triangleType";
@javax.annotation.Nonnull
private String triangleType;
public TriangleInterface() {
}
public TriangleInterface triangleType(String triangleType) {
public TriangleInterface triangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
return this;
}
@@ -60,7 +61,7 @@ public class TriangleInterface {
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
public void setTriangleType(@javax.annotation.Nonnull String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -50,30 +50,39 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class User {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_USERNAME = "username";
@javax.annotation.Nullable
private String username;
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
@javax.annotation.Nullable
private String firstName;
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
@javax.annotation.Nullable
private String lastName;
public static final String JSON_PROPERTY_EMAIL = "email";
@javax.annotation.Nullable
private String email;
public static final String JSON_PROPERTY_PASSWORD = "password";
@javax.annotation.Nullable
private String password;
public static final String JSON_PROPERTY_PHONE = "phone";
@javax.annotation.Nullable
private String phone;
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
@javax.annotation.Nullable
private Integer userStatus;
public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS = "objectWithNoDeclaredProps";
@javax.annotation.Nullable
private Object objectWithNoDeclaredProps;
public static final String JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS_NULLABLE = "objectWithNoDeclaredPropsNullable";
@@ -88,7 +97,7 @@ public class User {
public User() {
}
public User id(Long id) {
public User id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
}
@@ -108,12 +117,12 @@ public class User {
@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 User username(String username) {
public User username(@javax.annotation.Nullable String username) {
this.username = username;
return this;
}
@@ -133,12 +142,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -158,12 +167,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -183,12 +192,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -208,12 +217,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -233,12 +242,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -258,12 +267,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
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;
}
@@ -283,12 +292,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_USER_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUserStatus(Integer userStatus) {
public void setUserStatus(@javax.annotation.Nullable Integer userStatus) {
this.userStatus = userStatus;
}
public User objectWithNoDeclaredProps(Object objectWithNoDeclaredProps) {
public User objectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) {
this.objectWithNoDeclaredProps = objectWithNoDeclaredProps;
return this;
}
@@ -308,12 +317,12 @@ public class User {
@JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) {
public void setObjectWithNoDeclaredProps(@javax.annotation.Nullable Object objectWithNoDeclaredProps) {
this.objectWithNoDeclaredProps = objectWithNoDeclaredProps;
}
public User objectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) {
public User objectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) {
this.objectWithNoDeclaredPropsNullable = JsonNullable.<Object>of(objectWithNoDeclaredPropsNullable);
return this;
}
@@ -341,12 +350,12 @@ public class User {
this.objectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable;
}
public void setObjectWithNoDeclaredPropsNullable(Object objectWithNoDeclaredPropsNullable) {
public void setObjectWithNoDeclaredPropsNullable(@javax.annotation.Nullable Object objectWithNoDeclaredPropsNullable) {
this.objectWithNoDeclaredPropsNullable = JsonNullable.<Object>of(objectWithNoDeclaredPropsNullable);
}
public User anyTypeProp(Object anyTypeProp) {
public User anyTypeProp(@javax.annotation.Nullable Object anyTypeProp) {
this.anyTypeProp = JsonNullable.<Object>of(anyTypeProp);
return this;
}
@@ -374,12 +383,12 @@ public class User {
this.anyTypeProp = anyTypeProp;
}
public void setAnyTypeProp(Object anyTypeProp) {
public void setAnyTypeProp(@javax.annotation.Nullable Object anyTypeProp) {
this.anyTypeProp = JsonNullable.<Object>of(anyTypeProp);
}
public User anyTypePropNullable(Object anyTypePropNullable) {
public User anyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) {
this.anyTypePropNullable = JsonNullable.<Object>of(anyTypePropNullable);
return this;
}
@@ -407,7 +416,7 @@ public class User {
this.anyTypePropNullable = anyTypePropNullable;
}
public void setAnyTypePropNullable(Object anyTypePropNullable) {
public void setAnyTypePropNullable(@javax.annotation.Nullable Object anyTypePropNullable) {
this.anyTypePropNullable = JsonNullable.<Object>of(anyTypePropNullable);
}

View File

@@ -38,18 +38,21 @@ import org.openapitools.client.JSON;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Whale {
public static final String JSON_PROPERTY_HAS_BALEEN = "hasBaleen";
@javax.annotation.Nullable
private Boolean hasBaleen;
public static final String JSON_PROPERTY_HAS_TEETH = "hasTeeth";
@javax.annotation.Nullable
private Boolean hasTeeth;
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@javax.annotation.Nonnull
private String className;
public Whale() {
}
public Whale hasBaleen(Boolean hasBaleen) {
public Whale hasBaleen(@javax.annotation.Nullable Boolean hasBaleen) {
this.hasBaleen = hasBaleen;
return this;
}
@@ -69,12 +72,12 @@ public class Whale {
@JsonProperty(JSON_PROPERTY_HAS_BALEEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHasBaleen(Boolean hasBaleen) {
public void setHasBaleen(@javax.annotation.Nullable Boolean hasBaleen) {
this.hasBaleen = hasBaleen;
}
public Whale hasTeeth(Boolean hasTeeth) {
public Whale hasTeeth(@javax.annotation.Nullable Boolean hasTeeth) {
this.hasTeeth = hasTeeth;
return this;
}
@@ -94,12 +97,12 @@ public class Whale {
@JsonProperty(JSON_PROPERTY_HAS_TEETH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHasTeeth(Boolean hasTeeth) {
public void setHasTeeth(@javax.annotation.Nullable Boolean hasTeeth) {
this.hasTeeth = hasTeeth;
}
public Whale className(String className) {
public Whale className(@javax.annotation.Nonnull String className) {
this.className = className;
return this;
}
@@ -119,7 +122,7 @@ public class Whale {
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
public void setClassName(@javax.annotation.Nonnull String className) {
this.className = className;
}

View File

@@ -78,15 +78,17 @@ public class Zebra {
}
public static final String JSON_PROPERTY_TYPE = "type";
@javax.annotation.Nullable
private TypeEnum type;
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@javax.annotation.Nonnull
private String className;
public Zebra() {
}
public Zebra type(TypeEnum type) {
public Zebra type(@javax.annotation.Nullable TypeEnum type) {
this.type = type;
return this;
}
@@ -106,12 +108,12 @@ public class Zebra {
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(TypeEnum type) {
public void setType(@javax.annotation.Nullable TypeEnum type) {
this.type = type;
}
public Zebra className(String className) {
public Zebra className(@javax.annotation.Nonnull String className) {
this.className = className;
return this;
}
@@ -131,7 +133,7 @@ public class Zebra {
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
public void setClassName(@javax.annotation.Nonnull String className) {
this.className = className;
}