forked from loafle/openapi-generator-original
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:
@@ -35,15 +35,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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 AdditionalPropertiesClass() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||
public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map<String, String> mapProperty) {
|
||||
|
||||
this.mapProperty = mapProperty;
|
||||
return this;
|
||||
@@ -72,12 +74,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;
|
||||
@@ -106,7 +108,7 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class AllOfWithSingleRef {
|
||||
public static final String JSON_PROPERTY_USERNAME = "username";
|
||||
@javax.annotation.Nullable
|
||||
private String username;
|
||||
|
||||
public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType";
|
||||
@javax.annotation.Nullable
|
||||
private SingleRefType singleRefType;
|
||||
|
||||
public AllOfWithSingleRef() {
|
||||
}
|
||||
|
||||
public AllOfWithSingleRef username(String username) {
|
||||
public AllOfWithSingleRef username(@javax.annotation.Nullable String username) {
|
||||
|
||||
this.username = username;
|
||||
return this;
|
||||
@@ -63,12 +65,12 @@ public class AllOfWithSingleRef {
|
||||
|
||||
@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 AllOfWithSingleRef singleRefType(SingleRefType singleRefType) {
|
||||
public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) {
|
||||
|
||||
this.singleRefType = singleRefType;
|
||||
return this;
|
||||
@@ -89,7 +91,7 @@ public class AllOfWithSingleRef {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSingleRefType(SingleRefType singleRefType) {
|
||||
public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) {
|
||||
this.singleRefType = singleRefType;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,15 +46,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
|
||||
public class Animal {
|
||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||
@javax.annotation.Nonnull
|
||||
protected 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;
|
||||
@@ -75,12 +77,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;
|
||||
@@ -101,7 +103,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -70,7 +71,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -70,7 +71,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,18 +38,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -78,12 +81,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;
|
||||
@@ -146,7 +149,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,27 +37,33 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
@@ -78,12 +84,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;
|
||||
@@ -104,12 +110,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;
|
||||
@@ -156,12 +162,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;
|
||||
@@ -182,12 +188,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;
|
||||
@@ -208,7 +214,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,13 +42,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
|
||||
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;
|
||||
@@ -69,7 +70,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class Category {
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.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;
|
||||
@@ -62,12 +64,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;
|
||||
@@ -88,7 +90,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,13 +43,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
|
||||
public class ChildWithNullable extends ParentWithNullable {
|
||||
public static final String JSON_PROPERTY_OTHER_PROPERTY = "otherProperty";
|
||||
@javax.annotation.Nullable
|
||||
private String otherProperty;
|
||||
|
||||
public ChildWithNullable() {
|
||||
|
||||
}
|
||||
|
||||
public ChildWithNullable otherProperty(String otherProperty) {
|
||||
public ChildWithNullable otherProperty(@javax.annotation.Nullable String otherProperty) {
|
||||
|
||||
this.otherProperty = otherProperty;
|
||||
return this;
|
||||
@@ -70,7 +71,7 @@ public class ChildWithNullable extends ParentWithNullable {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OTHER_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setOtherProperty(String otherProperty) {
|
||||
public void setOtherProperty(@javax.annotation.Nullable String otherProperty) {
|
||||
this.otherProperty = otherProperty;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,12 +32,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -58,7 +59,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,12 +32,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -58,7 +59,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,12 +34,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -60,7 +61,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,13 +42,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
|
||||
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;
|
||||
@@ -69,7 +70,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ public class EnumArrays {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
|
||||
@javax.annotation.Nullable
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
@@ -109,12 +110,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;
|
||||
@@ -135,12 +137,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ public class EnumTest {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
|
||||
@javax.annotation.Nullable
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
@@ -125,6 +126,7 @@ public class EnumTest {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
|
||||
@javax.annotation.Nonnull
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
@@ -163,6 +165,7 @@ public class EnumTest {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
|
||||
@javax.annotation.Nullable
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
@@ -201,24 +204,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;
|
||||
@@ -239,12 +246,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;
|
||||
@@ -265,12 +272,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;
|
||||
@@ -291,12 +298,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 enumNumber(EnumNumberEnum enumNumber) {
|
||||
public EnumTest enumNumber(@javax.annotation.Nullable EnumNumberEnum enumNumber) {
|
||||
|
||||
this.enumNumber = enumNumber;
|
||||
return this;
|
||||
@@ -317,12 +324,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;
|
||||
@@ -351,12 +358,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;
|
||||
@@ -377,12 +384,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;
|
||||
@@ -403,12 +410,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;
|
||||
@@ -429,7 +436,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,15 +37,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class FakeBigDecimalMap200Response {
|
||||
public static final String JSON_PROPERTY_SOME_ID = "someId";
|
||||
@javax.annotation.Nullable
|
||||
private BigDecimal someId;
|
||||
|
||||
public static final String JSON_PROPERTY_SOME_MAP = "someMap";
|
||||
@javax.annotation.Nullable
|
||||
private Map<String, BigDecimal> someMap = new HashMap<>();
|
||||
|
||||
public FakeBigDecimalMap200Response() {
|
||||
}
|
||||
|
||||
public FakeBigDecimalMap200Response someId(BigDecimal someId) {
|
||||
public FakeBigDecimalMap200Response someId(@javax.annotation.Nullable BigDecimal someId) {
|
||||
|
||||
this.someId = someId;
|
||||
return this;
|
||||
@@ -66,12 +68,12 @@ public class FakeBigDecimalMap200Response {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SOME_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSomeId(BigDecimal someId) {
|
||||
public void setSomeId(@javax.annotation.Nullable BigDecimal someId) {
|
||||
this.someId = someId;
|
||||
}
|
||||
|
||||
|
||||
public FakeBigDecimalMap200Response someMap(Map<String, BigDecimal> someMap) {
|
||||
public FakeBigDecimalMap200Response someMap(@javax.annotation.Nullable Map<String, BigDecimal> someMap) {
|
||||
|
||||
this.someMap = someMap;
|
||||
return this;
|
||||
@@ -100,7 +102,7 @@ public class FakeBigDecimalMap200Response {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SOME_MAP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSomeMap(Map<String, BigDecimal> someMap) {
|
||||
public void setSomeMap(@javax.annotation.Nullable Map<String, BigDecimal> someMap) {
|
||||
this.someMap = someMap;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,12 +32,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class File {
|
||||
public static final String JSON_PROPERTY_SOURCE_U_R_I = "sourceURI";
|
||||
@javax.annotation.Nullable
|
||||
private String sourceURI;
|
||||
|
||||
public File() {
|
||||
}
|
||||
|
||||
public File sourceURI(String sourceURI) {
|
||||
public File sourceURI(@javax.annotation.Nullable String sourceURI) {
|
||||
|
||||
this.sourceURI = sourceURI;
|
||||
return this;
|
||||
@@ -58,7 +59,7 @@ public class File {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,15 +37,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class FileSchemaTestClass {
|
||||
public static final String JSON_PROPERTY_FILE = "file";
|
||||
@javax.annotation.Nullable
|
||||
private File file;
|
||||
|
||||
public static final String JSON_PROPERTY_FILES = "files";
|
||||
@javax.annotation.Nullable
|
||||
private List<File> files = new ArrayList<>();
|
||||
|
||||
public FileSchemaTestClass() {
|
||||
}
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
public FileSchemaTestClass file(@javax.annotation.Nullable File file) {
|
||||
|
||||
this.file = file;
|
||||
return this;
|
||||
@@ -66,12 +68,12 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FILE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setFile(File file) {
|
||||
public void setFile(@javax.annotation.Nullable File file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(@javax.annotation.Nullable List<File> 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<File> files) {
|
||||
public void setFiles(@javax.annotation.Nullable List<File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,12 +32,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -58,7 +59,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,12 +34,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -60,7 +61,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,57 +53,73 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
@@ -126,12 +142,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;
|
||||
@@ -154,12 +170,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;
|
||||
@@ -208,12 +224,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;
|
||||
@@ -236,12 +252,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;
|
||||
@@ -264,12 +280,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;
|
||||
@@ -290,12 +306,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;
|
||||
@@ -316,12 +332,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;
|
||||
@@ -342,12 +358,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;
|
||||
@@ -368,12 +384,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;
|
||||
@@ -394,12 +410,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;
|
||||
@@ -420,12 +436,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;
|
||||
@@ -446,12 +462,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;
|
||||
@@ -472,12 +488,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;
|
||||
@@ -498,12 +514,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;
|
||||
@@ -524,7 +540,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,9 +34,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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() {
|
||||
|
||||
@@ -41,7 +41,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;
|
||||
@@ -70,7 +70,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);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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<>();
|
||||
|
||||
/**
|
||||
@@ -75,18 +76,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;
|
||||
@@ -115,12 +119,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;
|
||||
@@ -149,12 +153,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;
|
||||
@@ -217,7 +221,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,18 +39,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -71,12 +74,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;
|
||||
@@ -97,12 +100,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -63,12 +65,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;
|
||||
@@ -89,7 +91,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -67,12 +70,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;
|
||||
@@ -93,12 +96,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -59,7 +60,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -59,7 +60,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,15 +35,19 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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() {
|
||||
@@ -59,7 +63,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;
|
||||
@@ -80,7 +84,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;
|
||||
}
|
||||
|
||||
@@ -100,7 +104,7 @@ public class Name {
|
||||
|
||||
|
||||
|
||||
public Name property(String property) {
|
||||
public Name property(@javax.annotation.Nullable String property) {
|
||||
|
||||
this.property = property;
|
||||
return this;
|
||||
@@ -121,7 +125,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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";
|
||||
@@ -92,13 +93,14 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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 extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -161,12 +163,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -195,12 +197,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -229,12 +231,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -263,12 +265,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -297,12 +299,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -343,12 +345,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -389,12 +391,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -423,12 +425,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
|
||||
@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;
|
||||
@@ -469,12 +471,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -515,12 +517,12 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -549,7 +551,7 @@ public class NullableClass extends HashMap<String, Object> {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -59,7 +60,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class ObjectWithDeprecatedFields {
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@javax.annotation.Nullable
|
||||
private String uuid;
|
||||
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private BigDecimal id;
|
||||
|
||||
public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef";
|
||||
@javax.annotation.Nullable
|
||||
private DeprecatedObject deprecatedRef;
|
||||
|
||||
public static final String JSON_PROPERTY_BARS = "bars";
|
||||
@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;
|
||||
@@ -75,12 +79,12 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
public ObjectWithDeprecatedFields id(BigDecimal id) {
|
||||
public ObjectWithDeprecatedFields id(@javax.annotation.Nullable BigDecimal id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -103,12 +107,12 @@ public class ObjectWithDeprecatedFields {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
||||
public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) {
|
||||
public ObjectWithDeprecatedFields deprecatedRef(@javax.annotation.Nullable DeprecatedObject deprecatedRef) {
|
||||
|
||||
this.deprecatedRef = deprecatedRef;
|
||||
return this;
|
||||
@@ -131,12 +135,12 @@ public class ObjectWithDeprecatedFields {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
||||
public ObjectWithDeprecatedFields bars(List<String> bars) {
|
||||
public ObjectWithDeprecatedFields bars(@javax.annotation.Nullable List<String> bars) {
|
||||
|
||||
this.bars = bars;
|
||||
return this;
|
||||
@@ -167,7 +171,7 @@ public class ObjectWithDeprecatedFields {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,15 +38,19 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
/**
|
||||
@@ -87,15 +91,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;
|
||||
@@ -116,12 +122,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;
|
||||
@@ -142,12 +148,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;
|
||||
@@ -194,12 +200,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;
|
||||
@@ -220,12 +226,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;
|
||||
@@ -246,7 +252,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class 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;
|
||||
@@ -67,12 +70,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;
|
||||
@@ -93,12 +96,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class OuterObjectWithEnumProperty {
|
||||
public static final String JSON_PROPERTY_VALUE = "value";
|
||||
@javax.annotation.Nonnull
|
||||
private OuterEnumInteger value;
|
||||
|
||||
public OuterObjectWithEnumProperty() {
|
||||
}
|
||||
|
||||
public OuterObjectWithEnumProperty value(OuterEnumInteger value) {
|
||||
public OuterObjectWithEnumProperty value(@javax.annotation.Nonnull OuterEnumInteger value) {
|
||||
|
||||
this.value = value;
|
||||
return this;
|
||||
@@ -59,7 +60,7 @@ public class OuterObjectWithEnumProperty {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setValue(OuterEnumInteger value) {
|
||||
public void setValue(@javax.annotation.Nonnull OuterEnumInteger value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ public class ParentWithNullable {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_TYPE = "type";
|
||||
@javax.annotation.Nullable
|
||||
protected TypeEnum type;
|
||||
|
||||
public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty";
|
||||
@@ -90,7 +91,7 @@ public class ParentWithNullable {
|
||||
public ParentWithNullable() {
|
||||
}
|
||||
|
||||
public ParentWithNullable type(TypeEnum type) {
|
||||
public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) {
|
||||
|
||||
this.type = type;
|
||||
return this;
|
||||
@@ -111,12 +112,12 @@ public class ParentWithNullable {
|
||||
|
||||
@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 ParentWithNullable nullableProperty(String nullableProperty) {
|
||||
public ParentWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) {
|
||||
this.nullableProperty = JsonNullable.<String>of(nullableProperty);
|
||||
|
||||
return this;
|
||||
@@ -145,7 +146,7 @@ public class ParentWithNullable {
|
||||
this.nullableProperty = nullableProperty;
|
||||
}
|
||||
|
||||
public void setNullableProperty(String nullableProperty) {
|
||||
public void setNullableProperty(@javax.annotation.Nullable String nullableProperty) {
|
||||
this.nullableProperty = JsonNullable.<String>of(nullableProperty);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,18 +45,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class Pet {
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_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 Set<String> photoUrls = new LinkedHashSet<>();
|
||||
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@@ -97,12 +102,13 @@ public class Pet {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -123,12 +129,12 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
|
||||
this.category = category;
|
||||
return this;
|
||||
@@ -149,12 +155,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;
|
||||
@@ -175,12 +181,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(Set<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull Set<String> photoUrls) {
|
||||
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
@@ -210,12 +216,12 @@ public class Pet {
|
||||
@JsonDeserialize(as = LinkedHashSet.class)
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setPhotoUrls(Set<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull Set<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;
|
||||
@@ -244,12 +250,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;
|
||||
@@ -270,7 +276,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,9 +33,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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() {
|
||||
@@ -64,7 +66,7 @@ public class ReadOnlyFirst {
|
||||
|
||||
|
||||
|
||||
public ReadOnlyFirst baz(String baz) {
|
||||
public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) {
|
||||
|
||||
this.baz = baz;
|
||||
return this;
|
||||
@@ -85,7 +87,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class SpecialModelName {
|
||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||
@javax.annotation.Nullable
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName() {
|
||||
}
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
public SpecialModelName $specialPropertyName(@javax.annotation.Nullable Long $specialPropertyName) {
|
||||
|
||||
this.$specialPropertyName = $specialPropertyName;
|
||||
return this;
|
||||
@@ -59,7 +60,7 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class Tag {
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -62,12 +64,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;
|
||||
@@ -88,7 +90,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;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,13 +39,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
|
||||
public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap<String, Object> {
|
||||
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;
|
||||
@@ -66,7 +67,7 @@ public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap<Strin
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,33 +39,41 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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 User() {
|
||||
}
|
||||
|
||||
public User id(Long id) {
|
||||
public User id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@@ -86,12 +94,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;
|
||||
@@ -112,12 +120,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;
|
||||
@@ -138,12 +146,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;
|
||||
@@ -164,12 +172,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;
|
||||
@@ -190,12 +198,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;
|
||||
@@ -216,12 +224,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;
|
||||
@@ -242,12 +250,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;
|
||||
@@ -268,7 +276,7 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user