[Java] add jackson annotations to setters (#9041)

* [Java] add jackson annotations to setters

Closes #6856

* [Java] fix conflictiong setter with JsonNullable
This commit is contained in:
Jakob
2021-03-30 05:17:15 +02:00
committed by GitHub
parent becb424455
commit 0af45b3823
804 changed files with 5397 additions and 3 deletions

View File

@@ -70,6 +70,8 @@ public class ChildSchema extends Parent {
}
@JsonProperty(JSON_PROPERTY_PROP1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp1(String prop1) {
this.prop1 = prop1;
}

View File

@@ -59,6 +59,8 @@ public class ChildSchemaAllOf {
}
@JsonProperty(JSON_PROPERTY_PROP1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp1(String prop1) {
this.prop1 = prop1;
}

View File

@@ -71,6 +71,8 @@ public class MySchemaNameCharacters extends Parent {
}
@JsonProperty(JSON_PROPERTY_PROP2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp2(String prop2) {
this.prop2 = prop2;
}

View File

@@ -59,6 +59,8 @@ public class MySchemaNameCharactersAllOf {
}
@JsonProperty(JSON_PROPERTY_PROP2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp2(String prop2) {
this.prop2 = prop2;
}

View File

@@ -69,6 +69,8 @@ public class Parent {
}
@JsonProperty(JSON_PROPERTY_OBJECT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setObjectType(String objectType) {
this.objectType = objectType;
}

View File

@@ -101,6 +101,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapProperty(Map<String, String> mapProperty) {
this.mapProperty = mapProperty;
}
@@ -133,6 +135,8 @@ 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) {
this.mapOfMapProperty = mapOfMapProperty;
}
@@ -191,6 +195,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) {
this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
}
@@ -215,6 +221,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) {
this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
}
@@ -247,6 +255,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype3(Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
}
@@ -271,6 +281,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_EMPTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmptyMap(Object emptyMap) {
this.emptyMap = emptyMap;
}
@@ -303,6 +315,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesString(Map<String, String> mapWithUndeclaredPropertiesString) {
this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
}

View File

@@ -72,6 +72,8 @@ public class Animal {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}
@@ -96,6 +98,8 @@ public class Animal {
}
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
this.color = color;
}

View File

@@ -63,6 +63,8 @@ public class Apple {
}
@JsonProperty(JSON_PROPERTY_CULTIVAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCultivar(String cultivar) {
this.cultivar = cultivar;
}
@@ -87,6 +89,8 @@ public class Apple {
}
@JsonProperty(JSON_PROPERTY_ORIGIN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrigin(String origin) {
this.origin = origin;
}

View File

@@ -62,6 +62,8 @@ public class AppleReq {
}
@JsonProperty(JSON_PROPERTY_CULTIVAR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCultivar(String cultivar) {
this.cultivar = cultivar;
}
@@ -86,6 +88,8 @@ public class AppleReq {
}
@JsonProperty(JSON_PROPERTY_MEALY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMealy(Boolean mealy) {
this.mealy = mealy;
}

View File

@@ -70,6 +70,8 @@ public class ArrayOfArrayOfNumberOnly {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
}

View File

@@ -70,6 +70,8 @@ public class ArrayOfNumberOnly {
}
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
}

View File

@@ -78,6 +78,8 @@ public class ArrayTest {
}
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
}
@@ -110,6 +112,8 @@ public class ArrayTest {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
}
@@ -142,6 +146,8 @@ public class ArrayTest {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
}

View File

@@ -60,6 +60,8 @@ public class Banana {
}
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLengthCm(BigDecimal lengthCm) {
this.lengthCm = lengthCm;
}

View File

@@ -63,6 +63,8 @@ public class BananaReq {
}
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLengthCm(BigDecimal lengthCm) {
this.lengthCm = lengthCm;
}
@@ -87,6 +89,8 @@ public class BananaReq {
}
@JsonProperty(JSON_PROPERTY_SWEET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSweet(Boolean sweet) {
this.sweet = sweet;
}

View File

@@ -58,6 +58,8 @@ public class BasquePig {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}

View File

@@ -79,6 +79,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel;
}
@@ -103,6 +105,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel;
}
@@ -127,6 +131,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake;
}
@@ -151,6 +157,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake;
}
@@ -175,6 +183,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
}
@@ -199,6 +209,8 @@ 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) {
this.ATT_NAME = ATT_NAME;
}

View File

@@ -69,6 +69,8 @@ public class Cat extends Animal {
}
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}

View File

@@ -59,6 +59,8 @@ public class CatAllOf {
}
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}

View File

@@ -63,6 +63,8 @@ public class Category {
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
this.id = id;
}
@@ -86,6 +88,8 @@ public class Category {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}

View File

@@ -75,6 +75,8 @@ public class ChildCat extends ParentPet {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
@@ -106,6 +108,8 @@ public class ChildCat extends ParentPet {
}
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPetType(String petType) {
if (!PET_TYPE_VALUES.contains(petType)) {
throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES));

View File

@@ -65,6 +65,8 @@ public class ChildCatAllOf {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
@@ -97,6 +99,8 @@ public class ChildCatAllOf {
}
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPetType(String petType) {
if (!PET_TYPE_VALUES.contains(petType)) {
throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES));

View File

@@ -60,6 +60,8 @@ public class ClassModel {
}
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -59,6 +59,8 @@ public class Client {
}
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setClient(String client) {
this.client = client;
}

View File

@@ -68,6 +68,8 @@ public class ComplexQuadrilateral {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -91,6 +93,8 @@ public class ComplexQuadrilateral {
}
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuadrilateralType(String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
}

View File

@@ -58,6 +58,8 @@ public class DanishPig {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}

View File

@@ -69,6 +69,8 @@ public class Dog extends Animal {
}
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBreed(String breed) {
this.breed = breed;
}

View File

@@ -59,6 +59,8 @@ public class DogAllOf {
}
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBreed(String breed) {
this.breed = breed;
}

View File

@@ -84,6 +84,8 @@ public class Drawing {
}
@JsonProperty(JSON_PROPERTY_MAIN_SHAPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMainShape(Shape mainShape) {
this.mainShape = mainShape;
}
@@ -108,6 +110,8 @@ public class Drawing {
}
@JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShapeOrNull(ShapeOrNull shapeOrNull) {
this.shapeOrNull = shapeOrNull;
}
@@ -174,6 +178,8 @@ public class Drawing {
}
@JsonProperty(JSON_PROPERTY_SHAPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShapes(List<Shape> shapes) {
this.shapes = shapes;
}

View File

@@ -135,6 +135,8 @@ public class EnumArrays {
}
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
}
@@ -167,6 +169,8 @@ public class EnumArrays {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
}

View File

@@ -238,6 +238,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString;
}
@@ -261,6 +263,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired;
}
@@ -285,6 +289,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
}
@@ -309,6 +315,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
}
@@ -367,6 +375,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
this.outerEnumInteger = outerEnumInteger;
}
@@ -391,6 +401,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
this.outerEnumDefaultValue = outerEnumDefaultValue;
}
@@ -415,6 +427,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
}

View File

@@ -68,6 +68,8 @@ public class EquilateralTriangle {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -91,6 +93,8 @@ public class EquilateralTriangle {
}
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -65,6 +65,8 @@ public class FileSchemaTestClass {
}
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFile(java.io.File file) {
this.file = file;
}
@@ -97,6 +99,8 @@ public class FileSchemaTestClass {
}
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFiles(List<java.io.File> files) {
this.files = files;
}

View File

@@ -59,6 +59,8 @@ public class Foo {
}
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBar(String bar) {
this.bar = bar;
}

View File

@@ -126,6 +126,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInteger(Integer integer) {
this.integer = integer;
}
@@ -152,6 +154,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInt32(Integer int32) {
this.int32 = int32;
}
@@ -176,6 +180,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInt64(Long int64) {
this.int64 = int64;
}
@@ -201,6 +207,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNumber(BigDecimal number) {
this.number = number;
}
@@ -227,6 +235,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFloat(Float _float) {
this._float = _float;
}
@@ -253,6 +263,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDouble(Double _double) {
this._double = _double;
}
@@ -277,6 +289,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DECIMAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDecimal(BigDecimal decimal) {
this.decimal = decimal;
}
@@ -301,6 +315,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setString(String string) {
this.string = string;
}
@@ -324,6 +340,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setByte(byte[] _byte) {
this._byte = _byte;
}
@@ -348,6 +366,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBinary(File binary) {
this.binary = binary;
}
@@ -371,6 +391,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDate(LocalDate date) {
this.date = date;
}
@@ -395,6 +417,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
@@ -419,6 +443,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
@@ -442,6 +468,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPassword(String password) {
this.password = password;
}
@@ -466,6 +494,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPatternWithDigits(String patternWithDigits) {
this.patternWithDigits = patternWithDigits;
}
@@ -490,6 +520,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
}

View File

@@ -68,6 +68,8 @@ public class GrandparentAnimal {
}
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPetType(String petType) {
this.petType = petType;
}

View File

@@ -60,6 +60,8 @@ public class InlineResponseDefault {
}
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setString(Foo string) {
this.string = string;
}

View File

@@ -64,6 +64,8 @@ public class IsoscelesTriangle {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -87,6 +89,8 @@ public class IsoscelesTriangle {
}
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -117,6 +117,8 @@ 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) {
this.mapMapOfString = mapMapOfString;
}
@@ -149,6 +151,8 @@ public class MapTest {
}
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
}
@@ -181,6 +185,8 @@ public class MapTest {
}
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDirectMap(Map<String, Boolean> directMap) {
this.directMap = directMap;
}
@@ -213,6 +219,8 @@ public class MapTest {
}
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap;
}

View File

@@ -73,6 +73,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
@@ -97,6 +99,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
@@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMap(Map<String, Animal> map) {
this.map = map;
}

View File

@@ -64,6 +64,8 @@ public class Model200Response {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(Integer name) {
this.name = name;
}
@@ -88,6 +90,8 @@ public class Model200Response {
}
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -67,6 +67,8 @@ public class ModelApiResponse {
}
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCode(Integer code) {
this.code = code;
}
@@ -91,6 +93,8 @@ public class ModelApiResponse {
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(String type) {
this.type = type;
}
@@ -115,6 +119,8 @@ public class ModelApiResponse {
}
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMessage(String message) {
this.message = message;
}

View File

@@ -60,6 +60,8 @@ public class ModelReturn {
}
@JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReturn(Integer _return) {
this._return = _return;
}

View File

@@ -71,6 +71,8 @@ public class Name {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(Integer name) {
this.name = name;
}
@@ -111,6 +113,8 @@ public class Name {
}
@JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProperty(String property) {
this.property = property;
}

View File

@@ -421,6 +421,8 @@ public class NullableClass {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayItemsNullable(List<Object> arrayItemsNullable) {
this.arrayItemsNullable = arrayItemsNullable;
}
@@ -545,6 +547,8 @@ public class NullableClass {
}
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setObjectItemsNullable(Map<String, Object> objectItemsNullable) {
this.objectItemsNullable = objectItemsNullable;
}

View File

@@ -60,6 +60,8 @@ public class NumberOnly {
}
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJustNumber(BigDecimal justNumber) {
this.justNumber = justNumber;
}

View File

@@ -117,6 +117,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
this.id = id;
}
@@ -141,6 +143,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_PET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPetId(Long petId) {
this.petId = petId;
}
@@ -165,6 +169,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_QUANTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
@@ -189,6 +195,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate;
}
@@ -213,6 +221,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
this.status = status;
}
@@ -237,6 +247,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setComplete(Boolean complete) {
this.complete = complete;
}

View File

@@ -68,6 +68,8 @@ public class OuterComposite {
}
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMyNumber(BigDecimal myNumber) {
this.myNumber = myNumber;
}
@@ -92,6 +94,8 @@ public class OuterComposite {
}
@JsonProperty(JSON_PROPERTY_MY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMyString(String myString) {
this.myString = myString;
}
@@ -116,6 +120,8 @@ public class OuterComposite {
}
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMyBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean;
}

View File

@@ -120,6 +120,8 @@ public class Pet {
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
this.id = id;
}
@@ -144,6 +146,8 @@ public class Pet {
}
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCategory(Category category) {
this.category = category;
}
@@ -167,6 +171,8 @@ public class Pet {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}
@@ -195,6 +201,8 @@ public class Pet {
}
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
}
@@ -227,6 +235,8 @@ public class Pet {
}
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List<Tag> tags) {
this.tags = tags;
}
@@ -251,6 +261,8 @@ public class Pet {
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
this.status = status;
}

View File

@@ -58,6 +58,8 @@ public class QuadrilateralInterface {
}
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuadrilateralType(String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
}

View File

@@ -79,6 +79,8 @@ public class ReadOnlyFirst {
}
@JsonProperty(JSON_PROPERTY_BAZ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBaz(String baz) {
this.baz = baz;
}

View File

@@ -68,6 +68,8 @@ public class ScaleneTriangle {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -91,6 +93,8 @@ public class ScaleneTriangle {
}
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -58,6 +58,8 @@ public class ShapeInterface {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}

View File

@@ -68,6 +68,8 @@ public class SimpleQuadrilateral {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -91,6 +93,8 @@ public class SimpleQuadrilateral {
}
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuadrilateralType(String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
}

View File

@@ -63,6 +63,8 @@ public class SpecialModelName {
}
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void set$SpecialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName;
}

View File

@@ -63,6 +63,8 @@ public class Tag {
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
this.id = id;
}
@@ -87,6 +89,8 @@ public class Tag {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}

View File

@@ -58,6 +58,8 @@ public class TriangleInterface {
}
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -106,6 +106,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
this.id = id;
}
@@ -130,6 +132,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUsername(String username) {
this.username = username;
}
@@ -154,6 +158,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFirstName(String firstName) {
this.firstName = firstName;
}
@@ -178,6 +184,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastName(String lastName) {
this.lastName = lastName;
}
@@ -202,6 +210,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmail(String email) {
this.email = email;
}
@@ -226,6 +236,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPassword(String password) {
this.password = password;
}
@@ -250,6 +262,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPhone(String phone) {
this.phone = phone;
}
@@ -274,6 +288,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_USER_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus;
}
@@ -298,6 +314,8 @@ public class User {
}
@JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) {
this.objectWithNoDeclaredProps = objectWithNoDeclaredProps;
}

View File

@@ -67,6 +67,8 @@ public class Whale {
}
@JsonProperty(JSON_PROPERTY_HAS_BALEEN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHasBaleen(Boolean hasBaleen) {
this.hasBaleen = hasBaleen;
}
@@ -91,6 +93,8 @@ public class Whale {
}
@JsonProperty(JSON_PROPERTY_HAS_TEETH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHasTeeth(Boolean hasTeeth) {
this.hasTeeth = hasTeeth;
}
@@ -114,6 +118,8 @@ public class Whale {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}

View File

@@ -104,6 +104,8 @@ public class Zebra {
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(TypeEnum type) {
this.type = type;
}
@@ -127,6 +129,8 @@ public class Zebra {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}

View File

@@ -100,6 +100,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapProperty(Map<String, String> mapProperty) {
this.mapProperty = mapProperty;
}
@@ -132,6 +134,8 @@ 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) {
this.mapOfMapProperty = mapOfMapProperty;
}
@@ -190,6 +194,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) {
this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
}
@@ -214,6 +220,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) {
this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
}
@@ -246,6 +254,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesAnytype3(Map<String, Object> mapWithUndeclaredPropertiesAnytype3) {
this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
}
@@ -270,6 +280,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_EMPTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEmptyMap(Object emptyMap) {
this.emptyMap = emptyMap;
}
@@ -302,6 +314,8 @@ public class AdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapWithUndeclaredPropertiesString(Map<String, String> mapWithUndeclaredPropertiesString) {
this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
}

View File

@@ -72,6 +72,8 @@ public class Animal {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}
@@ -96,6 +98,8 @@ public class Animal {
}
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setColor(String color) {
this.color = color;
}

View File

@@ -62,6 +62,8 @@ public class Apple {
}
@JsonProperty(JSON_PROPERTY_CULTIVAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCultivar(String cultivar) {
this.cultivar = cultivar;
}
@@ -86,6 +88,8 @@ public class Apple {
}
@JsonProperty(JSON_PROPERTY_ORIGIN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOrigin(String origin) {
this.origin = origin;
}

View File

@@ -61,6 +61,8 @@ public class AppleReq {
}
@JsonProperty(JSON_PROPERTY_CULTIVAR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setCultivar(String cultivar) {
this.cultivar = cultivar;
}
@@ -85,6 +87,8 @@ public class AppleReq {
}
@JsonProperty(JSON_PROPERTY_MEALY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMealy(Boolean mealy) {
this.mealy = mealy;
}

View File

@@ -69,6 +69,8 @@ public class ArrayOfArrayOfNumberOnly {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber;
}

View File

@@ -69,6 +69,8 @@ public class ArrayOfNumberOnly {
}
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber;
}

View File

@@ -77,6 +77,8 @@ public class ArrayTest {
}
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString;
}
@@ -109,6 +111,8 @@ public class ArrayTest {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger;
}
@@ -141,6 +145,8 @@ public class ArrayTest {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel;
}

View File

@@ -59,6 +59,8 @@ public class Banana {
}
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLengthCm(BigDecimal lengthCm) {
this.lengthCm = lengthCm;
}

View File

@@ -62,6 +62,8 @@ public class BananaReq {
}
@JsonProperty(JSON_PROPERTY_LENGTH_CM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLengthCm(BigDecimal lengthCm) {
this.lengthCm = lengthCm;
}
@@ -86,6 +88,8 @@ public class BananaReq {
}
@JsonProperty(JSON_PROPERTY_SWEET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSweet(Boolean sweet) {
this.sweet = sweet;
}

View File

@@ -57,6 +57,8 @@ public class BasquePig {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}

View File

@@ -78,6 +78,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel;
}
@@ -102,6 +104,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel;
}
@@ -126,6 +130,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake;
}
@@ -150,6 +156,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake;
}
@@ -174,6 +182,8 @@ public class Capitalization {
}
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
}
@@ -198,6 +208,8 @@ 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) {
this.ATT_NAME = ATT_NAME;
}

View File

@@ -65,6 +65,8 @@ public class Cat extends Animal {
}
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}

View File

@@ -58,6 +58,8 @@ public class CatAllOf {
}
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}

View File

@@ -62,6 +62,8 @@ public class Category {
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
this.id = id;
}
@@ -85,6 +87,8 @@ public class Category {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
}

View File

@@ -71,6 +71,8 @@ public class ChildCat extends ParentPet {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
@@ -102,6 +104,8 @@ public class ChildCat extends ParentPet {
}
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPetType(String petType) {
if (!PET_TYPE_VALUES.contains(petType)) {
throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES));

View File

@@ -64,6 +64,8 @@ public class ChildCatAllOf {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
@@ -96,6 +98,8 @@ public class ChildCatAllOf {
}
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPetType(String petType) {
if (!PET_TYPE_VALUES.contains(petType)) {
throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES));

View File

@@ -59,6 +59,8 @@ public class ClassModel {
}
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -58,6 +58,8 @@ public class Client {
}
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setClient(String client) {
this.client = client;
}

View File

@@ -63,6 +63,8 @@ public class ComplexQuadrilateral {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -86,6 +88,8 @@ public class ComplexQuadrilateral {
}
@JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuadrilateralType(String quadrilateralType) {
this.quadrilateralType = quadrilateralType;
}

View File

@@ -57,6 +57,8 @@ public class DanishPig {
}
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setClassName(String className) {
this.className = className;
}

View File

@@ -65,6 +65,8 @@ public class Dog extends Animal {
}
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBreed(String breed) {
this.breed = breed;
}

View File

@@ -58,6 +58,8 @@ public class DogAllOf {
}
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBreed(String breed) {
this.breed = breed;
}

View File

@@ -85,6 +85,8 @@ public class Drawing extends HashMap<String, Fruit> {
}
@JsonProperty(JSON_PROPERTY_MAIN_SHAPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMainShape(Shape mainShape) {
this.mainShape = mainShape;
}
@@ -109,6 +111,8 @@ public class Drawing extends HashMap<String, Fruit> {
}
@JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShapeOrNull(ShapeOrNull shapeOrNull) {
this.shapeOrNull = shapeOrNull;
}
@@ -175,6 +179,8 @@ public class Drawing extends HashMap<String, Fruit> {
}
@JsonProperty(JSON_PROPERTY_SHAPES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShapes(List<Shape> shapes) {
this.shapes = shapes;
}

View File

@@ -134,6 +134,8 @@ public class EnumArrays {
}
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol;
}
@@ -166,6 +168,8 @@ public class EnumArrays {
}
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum;
}

View File

@@ -237,6 +237,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString;
}
@@ -260,6 +262,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired;
}
@@ -284,6 +288,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger;
}
@@ -308,6 +314,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber;
}
@@ -366,6 +374,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
this.outerEnumInteger = outerEnumInteger;
}
@@ -390,6 +400,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
this.outerEnumDefaultValue = outerEnumDefaultValue;
}
@@ -414,6 +426,8 @@ public class EnumTest {
}
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
}

View File

@@ -63,6 +63,8 @@ public class EquilateralTriangle {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -86,6 +88,8 @@ public class EquilateralTriangle {
}
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -64,6 +64,8 @@ public class FileSchemaTestClass {
}
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFile(java.io.File file) {
this.file = file;
}
@@ -96,6 +98,8 @@ public class FileSchemaTestClass {
}
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFiles(List<java.io.File> files) {
this.files = files;
}

View File

@@ -58,6 +58,8 @@ public class Foo {
}
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBar(String bar) {
this.bar = bar;
}

View File

@@ -125,6 +125,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInteger(Integer integer) {
this.integer = integer;
}
@@ -151,6 +153,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInt32(Integer int32) {
this.int32 = int32;
}
@@ -175,6 +179,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInt64(Long int64) {
this.int64 = int64;
}
@@ -200,6 +206,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNumber(BigDecimal number) {
this.number = number;
}
@@ -226,6 +234,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFloat(Float _float) {
this._float = _float;
}
@@ -252,6 +262,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDouble(Double _double) {
this._double = _double;
}
@@ -276,6 +288,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DECIMAL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDecimal(BigDecimal decimal) {
this.decimal = decimal;
}
@@ -300,6 +314,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setString(String string) {
this.string = string;
}
@@ -323,6 +339,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setByte(byte[] _byte) {
this._byte = _byte;
}
@@ -347,6 +365,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBinary(File binary) {
this.binary = binary;
}
@@ -370,6 +390,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDate(LocalDate date) {
this.date = date;
}
@@ -394,6 +416,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
@@ -418,6 +442,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
@@ -441,6 +467,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPassword(String password) {
this.password = password;
}
@@ -465,6 +493,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPatternWithDigits(String patternWithDigits) {
this.patternWithDigits = patternWithDigits;
}
@@ -489,6 +519,8 @@ public class FormatTest {
}
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
}

View File

@@ -68,6 +68,8 @@ public class GrandparentAnimal {
}
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPetType(String petType) {
this.petType = petType;
}

View File

@@ -59,6 +59,8 @@ public class InlineResponseDefault {
}
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setString(Foo string) {
this.string = string;
}

View File

@@ -63,6 +63,8 @@ public class IsoscelesTriangle {
}
@JsonProperty(JSON_PROPERTY_SHAPE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setShapeType(String shapeType) {
this.shapeType = shapeType;
}
@@ -86,6 +88,8 @@ public class IsoscelesTriangle {
}
@JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTriangleType(String triangleType) {
this.triangleType = triangleType;
}

View File

@@ -116,6 +116,8 @@ 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) {
this.mapMapOfString = mapMapOfString;
}
@@ -148,6 +150,8 @@ public class MapTest {
}
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString;
}
@@ -180,6 +184,8 @@ public class MapTest {
}
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDirectMap(Map<String, Boolean> directMap) {
this.directMap = directMap;
}
@@ -212,6 +218,8 @@ public class MapTest {
}
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap;
}

View File

@@ -72,6 +72,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUuid(UUID uuid) {
this.uuid = uuid;
}
@@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime;
}
@@ -128,6 +132,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
}
@JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMap(Map<String, Animal> map) {
this.map = map;
}

View File

@@ -63,6 +63,8 @@ public class Model200Response {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(Integer name) {
this.name = name;
}
@@ -87,6 +89,8 @@ public class Model200Response {
}
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass;
}

View File

@@ -66,6 +66,8 @@ public class ModelApiResponse {
}
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCode(Integer code) {
this.code = code;
}
@@ -90,6 +92,8 @@ public class ModelApiResponse {
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(String type) {
this.type = type;
}
@@ -114,6 +118,8 @@ public class ModelApiResponse {
}
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMessage(String message) {
this.message = message;
}

View File

@@ -59,6 +59,8 @@ public class ModelReturn {
}
@JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReturn(Integer _return) {
this._return = _return;
}

View File

@@ -70,6 +70,8 @@ public class Name {
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(Integer name) {
this.name = name;
}
@@ -110,6 +112,8 @@ public class Name {
}
@JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProperty(String property) {
this.property = property;
}

View File

@@ -420,6 +420,8 @@ 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) {
this.arrayItemsNullable = arrayItemsNullable;
}
@@ -544,6 +546,8 @@ 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) {
this.objectItemsNullable = objectItemsNullable;
}

View File

@@ -59,6 +59,8 @@ public class NumberOnly {
}
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setJustNumber(BigDecimal justNumber) {
this.justNumber = justNumber;
}

View File

@@ -116,6 +116,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(Long id) {
this.id = id;
}
@@ -140,6 +142,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_PET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPetId(Long petId) {
this.petId = petId;
}
@@ -164,6 +168,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_QUANTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
@@ -188,6 +194,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate;
}
@@ -212,6 +220,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
this.status = status;
}
@@ -236,6 +246,8 @@ public class Order {
}
@JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setComplete(Boolean complete) {
this.complete = complete;
}

Some files were not shown because too many files have changed in this diff Show More