Add nullability annotations to Java generated clients (#19617)

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

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

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

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

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

View File

@@ -38,15 +38,17 @@ import java.util.StringJoiner;
@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;
@@ -75,11 +77,11 @@ 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;
@@ -108,7 +110,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;
}

View File

@@ -37,15 +37,17 @@ import java.util.StringJoiner;
@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;
@@ -66,11 +68,11 @@ 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;
@@ -91,7 +93,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;
}

View File

@@ -49,15 +49,17 @@ import java.util.StringJoiner;
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
protected String color = "red";
public Animal() {
}
public Animal className(String className) {
public Animal className(@javax.annotation.Nonnull String className) {
this.className = className;
return this;
@@ -78,11 +80,11 @@ 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;
@@ -103,7 +105,7 @@ public class Animal {
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
public void setColor(@javax.annotation.Nullable String color) {
this.color = color;
}

View File

@@ -39,12 +39,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class 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;
@@ -73,7 +74,7 @@ public class ArrayOfArrayOfNumberOnly {
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
public void setArrayArrayNumber(@javax.annotation.Nullable List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
}

View File

@@ -39,12 +39,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class 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;
@@ -73,7 +74,7 @@ public class ArrayOfNumberOnly {
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayNumber(List<BigDecimal> arrayNumber) {
public void setArrayNumber(@javax.annotation.Nullable List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
}

View File

@@ -41,18 +41,21 @@ import java.util.StringJoiner;
@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;
@@ -81,11 +84,11 @@ 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;
@@ -114,11 +117,11 @@ 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;
@@ -147,7 +150,7 @@ public class ArrayTest {
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
public void setArrayArrayOfModel(@javax.annotation.Nullable List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
}

View File

@@ -40,27 +40,33 @@ import java.util.StringJoiner;
@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;
@@ -81,11 +87,11 @@ 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;
@@ -106,11 +112,11 @@ 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;
@@ -131,11 +137,11 @@ 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,11 +162,11 @@ 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;
@@ -181,11 +187,11 @@ 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;
@@ -206,7 +212,7 @@ public class Capitalization {
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setATTNAME(String ATT_NAME) {
public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
}

View File

@@ -45,13 +45,14 @@ import java.util.StringJoiner;
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;
@@ -72,18 +73,18 @@ 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;
}
@Override
public Cat className(String className) {
public Cat className(@javax.annotation.Nonnull String className) {
this.setClassName(className);
return this;
}
@Override
public Cat color(String color) {
public Cat color(@javax.annotation.Nullable String color) {
this.setColor(color);
return this;
}

View File

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

View File

@@ -46,13 +46,14 @@ import java.util.StringJoiner;
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;
@@ -73,18 +74,18 @@ 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;
}
@Override
public ChildWithNullable type(TypeEnum type) {
public ChildWithNullable type(@javax.annotation.Nullable TypeEnum type) {
this.setType(type);
return this;
}
@Override
public ChildWithNullable nullableProperty(String nullableProperty) {
public ChildWithNullable nullableProperty(@javax.annotation.Nullable String nullableProperty) {
this.setNullableProperty(nullableProperty);
return this;
}

View File

@@ -35,12 +35,13 @@ import java.util.StringJoiner;
@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;
@@ -61,7 +62,7 @@ public class ClassModel {
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
public void setPropertyClass(@javax.annotation.Nullable String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -35,12 +35,13 @@ import java.util.StringJoiner;
@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;
@@ -61,7 +62,7 @@ public class Client {
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setClient(String client) {
public void setClient(@javax.annotation.Nullable String client) {
this.client = client;
}

View File

@@ -37,12 +37,13 @@ import java.util.StringJoiner;
@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;
@@ -63,7 +64,7 @@ public class DeprecatedObject {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
public void setName(@javax.annotation.Nullable String name) {
this.name = name;
}

View File

@@ -45,13 +45,14 @@ import java.util.StringJoiner;
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;
@@ -72,18 +73,18 @@ 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;
}
@Override
public Dog className(String className) {
public Dog className(@javax.annotation.Nonnull String className) {
this.setClassName(className);
return this;
}
@Override
public Dog color(String color) {
public Dog color(@javax.annotation.Nullable String color) {
this.setColor(color);
return this;
}

View File

@@ -74,6 +74,7 @@ public class EnumArrays {
}
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
@javax.annotation.Nullable
private JustSymbolEnum justSymbol;
/**
@@ -112,12 +113,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;
@@ -138,11 +140,11 @@ 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;
@@ -171,7 +173,7 @@ public class EnumArrays {
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
public void setArrayEnum(@javax.annotation.Nullable List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
}

View File

@@ -88,6 +88,7 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
@javax.annotation.Nullable
private EnumStringEnum enumString;
/**
@@ -128,6 +129,7 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
@javax.annotation.Nonnull
private EnumStringRequiredEnum enumStringRequired;
/**
@@ -166,6 +168,7 @@ public class EnumTest {
}
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
@javax.annotation.Nullable
private EnumIntegerEnum enumInteger;
/**
@@ -204,24 +207,29 @@ 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";
@javax.annotation.Nullable
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;
@@ -242,11 +250,11 @@ 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;
@@ -267,11 +275,11 @@ 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;
@@ -292,11 +300,11 @@ 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,11 +325,11 @@ 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;
@@ -350,11 +358,11 @@ 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;
@@ -375,11 +383,11 @@ 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;
@@ -400,11 +408,11 @@ 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;
@@ -425,7 +433,7 @@ public class EnumTest {
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
public void setOuterEnumIntegerDefaultValue(@javax.annotation.Nullable OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
}

View File

@@ -40,15 +40,17 @@ import java.util.StringJoiner;
@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;
@@ -69,11 +71,11 @@ 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;
@@ -102,7 +104,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;
}

View File

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

View File

@@ -35,12 +35,13 @@ import java.util.StringJoiner;
@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;
@@ -61,7 +62,7 @@ public class Foo {
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBar(String bar) {
public void setBar(@javax.annotation.Nullable String bar) {
this.bar = bar;
}

View File

@@ -37,12 +37,13 @@ import java.util.StringJoiner;
@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;
@@ -63,7 +64,7 @@ public class FooGetDefaultResponse {
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setString(Foo string) {
public void setString(@javax.annotation.Nullable Foo string) {
this.string = string;
}

View File

@@ -56,57 +56,73 @@ import java.util.StringJoiner;
@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;
@@ -129,11 +145,11 @@ 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;
@@ -156,11 +172,11 @@ 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;
@@ -181,11 +197,11 @@ 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,11 +224,11 @@ 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;
@@ -235,11 +251,11 @@ 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;
@@ -262,11 +278,11 @@ 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;
@@ -287,11 +303,11 @@ 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;
@@ -312,11 +328,11 @@ 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;
@@ -337,11 +353,11 @@ 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;
@@ -362,11 +378,11 @@ 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;
@@ -387,11 +403,11 @@ 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;
@@ -412,11 +428,11 @@ 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;
@@ -437,11 +453,11 @@ 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;
@@ -462,11 +478,11 @@ 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;
@@ -487,11 +503,11 @@ 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;
@@ -512,7 +528,7 @@ public class FormatTest {
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
public void setPatternWithDigitsAndDelimiter(@javax.annotation.Nullable String patternWithDigitsAndDelimiter) {
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
}

View File

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

View File

@@ -39,12 +39,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class HealthCheckResult {
public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage";
@javax.annotation.Nullable
private JsonNullable<String> nullableMessage = JsonNullable.<String>undefined();
public HealthCheckResult() {
}
public HealthCheckResult nullableMessage(String nullableMessage) {
public HealthCheckResult nullableMessage(@javax.annotation.Nullable String nullableMessage) {
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
return this;
@@ -73,7 +74,7 @@ public class HealthCheckResult {
this.nullableMessage = nullableMessage;
}
public void setNullableMessage(String nullableMessage) {
public void setNullableMessage(@javax.annotation.Nullable String nullableMessage) {
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
}

View File

@@ -40,6 +40,7 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class MapTest {
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
@javax.annotation.Nullable
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
/**
@@ -78,18 +79,21 @@ public class MapTest {
}
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
@javax.annotation.Nullable
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
@javax.annotation.Nullable
private Map<String, Boolean> directMap = new HashMap<>();
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
@javax.annotation.Nullable
private Map<String, Boolean> indirectMap = new HashMap<>();
public MapTest() {
}
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
public MapTest mapMapOfString(@javax.annotation.Nullable Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString;
return this;
@@ -118,11 +122,11 @@ 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;
@@ -151,11 +155,11 @@ 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;
@@ -184,11 +188,11 @@ 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;
}

View File

@@ -42,18 +42,21 @@ import java.util.StringJoiner;
@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;
@@ -74,11 +77,11 @@ 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;
@@ -99,11 +102,11 @@ 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;
@@ -132,7 +135,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMap(Map<String, Animal> map) {
public void setMap(@javax.annotation.Nullable Map<String, Animal> map) {
this.map = map;
}

View File

@@ -37,15 +37,17 @@ import java.util.StringJoiner;
@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;
@@ -66,11 +68,11 @@ 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;
@@ -91,7 +93,7 @@ public class Model200Response {
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
public void setPropertyClass(@javax.annotation.Nullable String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -38,18 +38,21 @@ import java.util.StringJoiner;
@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;
@@ -70,11 +73,11 @@ 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;
@@ -95,11 +98,11 @@ 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;
@@ -120,7 +123,7 @@ public class ModelApiResponse {
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMessage(String message) {
public void setMessage(@javax.annotation.Nullable String message) {
this.message = message;
}

View File

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

View File

@@ -36,12 +36,13 @@ import java.util.StringJoiner;
@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;
@@ -62,7 +63,7 @@ public class ModelList {
@JsonProperty(JSON_PROPERTY_123LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void set123list(String _123list) {
public void set123list(@javax.annotation.Nullable String _123list) {
this._123list = _123list;
}

View File

@@ -36,12 +36,13 @@ import java.util.StringJoiner;
@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;
@@ -62,7 +63,7 @@ public class ModelReturn {
@JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReturn(Integer _return) {
public void setReturn(@javax.annotation.Nullable Integer _return) {
this._return = _return;
}

View File

@@ -38,15 +38,19 @@ import java.util.StringJoiner;
@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() {
@@ -64,7 +68,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;
@@ -85,7 +89,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;
}
@@ -103,7 +107,7 @@ public class Name {
public Name property(String property) {
public Name property(@javax.annotation.Nullable String property) {
this.property = property;
return this;
@@ -124,7 +128,7 @@ public class Name {
@JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProperty(String property) {
public void setProperty(@javax.annotation.Nullable String property) {
this.property = property;
}

View File

@@ -58,46 +58,58 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class NullableClass extends HashMap<String, Object> {
public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop";
@javax.annotation.Nullable
private JsonNullable<Integer> integerProp = JsonNullable.<Integer>undefined();
public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop";
@javax.annotation.Nullable
private JsonNullable<BigDecimal> numberProp = JsonNullable.<BigDecimal>undefined();
public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop";
@javax.annotation.Nullable
private JsonNullable<Boolean> booleanProp = JsonNullable.<Boolean>undefined();
public static final String JSON_PROPERTY_STRING_PROP = "string_prop";
@javax.annotation.Nullable
private JsonNullable<String> stringProp = JsonNullable.<String>undefined();
public static final String JSON_PROPERTY_DATE_PROP = "date_prop";
@javax.annotation.Nullable
private JsonNullable<LocalDate> dateProp = JsonNullable.<LocalDate>undefined();
public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop";
@javax.annotation.Nullable
private JsonNullable<OffsetDateTime> datetimeProp = JsonNullable.<OffsetDateTime>undefined();
public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop";
@javax.annotation.Nullable
private JsonNullable<List<Object>> arrayNullableProp = JsonNullable.<List<Object>>undefined();
public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop";
@javax.annotation.Nullable
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";
@javax.annotation.Nullable
private JsonNullable<Map<String, Object>> objectNullableProp = JsonNullable.<Map<String, Object>>undefined();
public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop";
@javax.annotation.Nullable
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;
@@ -126,11 +138,11 @@ 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;
@@ -159,11 +171,11 @@ 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;
@@ -192,11 +204,11 @@ 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;
@@ -225,11 +237,11 @@ 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;
@@ -258,11 +270,11 @@ 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;
@@ -291,11 +303,11 @@ 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;
@@ -336,11 +348,11 @@ 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;
@@ -381,11 +393,11 @@ 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;
@@ -414,11 +426,11 @@ 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;
@@ -459,11 +471,11 @@ 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;
@@ -504,11 +516,11 @@ 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;
@@ -537,7 +549,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;
}

View File

@@ -36,12 +36,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class 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;
@@ -62,7 +63,7 @@ public class NumberOnly {
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJustNumber(BigDecimal justNumber) {
public void setJustNumber(@javax.annotation.Nullable BigDecimal justNumber) {
this.justNumber = justNumber;
}

View File

@@ -43,21 +43,25 @@ import java.util.StringJoiner;
@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;
@@ -78,11 +82,11 @@ 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;
@@ -105,11 +109,11 @@ 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;
@@ -132,11 +136,11 @@ 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;
}

View File

@@ -41,15 +41,19 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Order {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_PET_ID = "petId";
@javax.annotation.Nullable
private Long petId;
public static final String JSON_PROPERTY_QUANTITY = "quantity";
@javax.annotation.Nullable
private Integer quantity;
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
@javax.annotation.Nullable
private OffsetDateTime shipDate;
/**
@@ -90,15 +94,17 @@ public class Order {
}
public static final String JSON_PROPERTY_STATUS = "status";
@javax.annotation.Nullable
private StatusEnum status;
public static final String JSON_PROPERTY_COMPLETE = "complete";
@javax.annotation.Nullable
private Boolean complete = false;
public Order() {
}
public Order id(Long id) {
public Order id(@javax.annotation.Nullable Long id) {
this.id = id;
return this;
@@ -119,11 +125,11 @@ 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;
@@ -144,11 +150,11 @@ 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;
@@ -169,11 +175,11 @@ 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,11 +200,11 @@ 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;
@@ -219,11 +225,11 @@ 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;
@@ -244,7 +250,7 @@ public class Order {
@JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setComplete(Boolean complete) {
public void setComplete(@javax.annotation.Nullable Boolean complete) {
this.complete = complete;
}

View File

@@ -38,18 +38,21 @@ import java.util.StringJoiner;
@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;
@@ -70,11 +73,11 @@ 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;
@@ -95,11 +98,11 @@ 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;
@@ -120,7 +123,7 @@ public class OuterComposite {
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMyBoolean(Boolean myBoolean) {
public void setMyBoolean(@javax.annotation.Nullable Boolean myBoolean) {
this.myBoolean = myBoolean;
}

View File

@@ -36,12 +36,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class 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;
@@ -62,7 +63,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;
}

View File

@@ -85,15 +85,17 @@ 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";
@javax.annotation.Nullable
protected JsonNullable<String> nullableProperty = JsonNullable.<String>undefined();
public ParentWithNullable() {
}
public ParentWithNullable type(TypeEnum type) {
public ParentWithNullable type(@javax.annotation.Nullable TypeEnum type) {
this.type = type;
return this;
@@ -114,11 +116,11 @@ 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;
@@ -147,7 +149,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);
}

View File

@@ -48,18 +48,23 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class Pet {
public static final String JSON_PROPERTY_ID = "id";
@javax.annotation.Nullable
private Long id;
public static final String JSON_PROPERTY_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<>();
/**
@@ -100,12 +105,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;
@@ -126,11 +132,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
public void setId(@javax.annotation.Nullable Long id) {
this.id = id;
}
public Pet category(Category category) {
public Pet category(@javax.annotation.Nullable Category category) {
this.category = category;
return this;
@@ -151,11 +157,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(Category category) {
public void setCategory(@javax.annotation.Nullable Category category) {
this.category = category;
}
public Pet name(String name) {
public Pet name(@javax.annotation.Nonnull String name) {
this.name = name;
return this;
@@ -176,11 +182,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
public void setName(@javax.annotation.Nonnull String name) {
this.name = name;
}
public Pet photoUrls(Set<String> photoUrls) {
public Pet photoUrls(@javax.annotation.Nonnull Set<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
@@ -210,11 +216,11 @@ 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;
@@ -243,11 +249,11 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List<Tag> tags) {
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
this.tags = tags;
}
public Pet status(StatusEnum status) {
public Pet status(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
return this;
@@ -268,7 +274,7 @@ public class Pet {
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
this.status = status;
}

View File

@@ -36,9 +36,11 @@ import java.util.StringJoiner;
@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() {
@@ -68,7 +70,7 @@ public class ReadOnlyFirst {
public ReadOnlyFirst baz(String baz) {
public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) {
this.baz = baz;
return this;
@@ -89,7 +91,7 @@ public class ReadOnlyFirst {
@JsonProperty(JSON_PROPERTY_BAZ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBaz(String baz) {
public void setBaz(@javax.annotation.Nullable String baz) {
this.baz = baz;
}

View File

@@ -36,12 +36,13 @@ import java.util.StringJoiner;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0-SNAPSHOT")
public class 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;
@@ -62,7 +63,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;
}

View File

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

View File

@@ -38,13 +38,14 @@ import java.util.StringJoiner;
@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;
@@ -65,7 +66,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;
}

View File

@@ -42,33 +42,41 @@ import java.util.StringJoiner;
@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;
@@ -89,11 +97,11 @@ 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;
@@ -114,11 +122,11 @@ 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;
@@ -139,11 +147,11 @@ 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,11 +172,11 @@ 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;
@@ -189,11 +197,11 @@ 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;
@@ -214,11 +222,11 @@ 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;
@@ -239,11 +247,11 @@ 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;
@@ -264,7 +272,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;
}