[Java] add nullable annotation to pojo template for non-required fields (#3409)

* add nullable annotation to pojo template

* add jsr305 dependency

* jsr305 dependency on all java build.gradle files

* jsr305 dependency on all java pom.xml files

* update samples

* more pom updates

* more sample/template updates
This commit is contained in:
kassim
2019-07-25 04:35:18 +02:00
committed by William Cheng
parent a0dd7394ac
commit ee538be964
994 changed files with 3525 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -45,6 +45,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -44,6 +44,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -94,6 +94,7 @@ public class AdditionalPropertiesClass {
* Get mapString
* @return mapString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, String> getMapString() {
return mapString;
@@ -120,6 +121,7 @@ public class AdditionalPropertiesClass {
* Get mapNumber
* @return mapNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, BigDecimal> getMapNumber() {
return mapNumber;
@@ -146,6 +148,7 @@ public class AdditionalPropertiesClass {
* Get mapInteger
* @return mapInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Integer> getMapInteger() {
return mapInteger;
@@ -172,6 +175,7 @@ public class AdditionalPropertiesClass {
* Get mapBoolean
* @return mapBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Boolean> getMapBoolean() {
return mapBoolean;
@@ -198,6 +202,7 @@ public class AdditionalPropertiesClass {
* Get mapArrayInteger
* @return mapArrayInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger;
@@ -224,6 +229,7 @@ public class AdditionalPropertiesClass {
* Get mapArrayAnytype
* @return mapArrayAnytype
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype;
@@ -250,6 +256,7 @@ public class AdditionalPropertiesClass {
* Get mapMapString
* @return mapMapString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapString() {
return mapMapString;
@@ -276,6 +283,7 @@ public class AdditionalPropertiesClass {
* Get mapMapAnytype
* @return mapMapAnytype
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype;
@@ -294,6 +302,7 @@ public class AdditionalPropertiesClass {
* Get anytype1
* @return anytype1
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Object getAnytype1() {
return anytype1;
@@ -312,6 +321,7 @@ public class AdditionalPropertiesClass {
* Get anytype2
* @return anytype2
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Object getAnytype2() {
return anytype2;
@@ -330,6 +340,7 @@ public class AdditionalPropertiesClass {
* Get anytype3
* @return anytype3
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Object getAnytype3() {
return anytype3;

View File

@@ -44,6 +44,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -45,6 +45,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -44,6 +44,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -44,6 +44,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -50,6 +50,7 @@ public class Animal {
* Get className
* @return className
**/
@ApiModelProperty(required = true, value = "")
public String getClassName() {
return className;
@@ -68,6 +69,7 @@ public class Animal {
* Get color
* @return color
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getColor() {
return color;

View File

@@ -53,6 +53,7 @@ public class ArrayOfArrayOfNumberOnly {
* Get arrayArrayNumber
* @return arrayArrayNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber;

View File

@@ -53,6 +53,7 @@ public class ArrayOfNumberOnly {
* Get arrayNumber
* @return arrayNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<BigDecimal> getArrayNumber() {
return arrayNumber;

View File

@@ -61,6 +61,7 @@ public class ArrayTest {
* Get arrayOfString
* @return arrayOfString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<String> getArrayOfString() {
return arrayOfString;
@@ -87,6 +88,7 @@ public class ArrayTest {
* Get arrayArrayOfInteger
* @return arrayArrayOfInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger;
@@ -113,6 +115,7 @@ public class ArrayTest {
* Get arrayArrayOfModel
* @return arrayArrayOfModel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel;

View File

@@ -62,6 +62,7 @@ public class Capitalization {
* Get smallCamel
* @return smallCamel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSmallCamel() {
return smallCamel;
@@ -80,6 +81,7 @@ public class Capitalization {
* Get capitalCamel
* @return capitalCamel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getCapitalCamel() {
return capitalCamel;
@@ -98,6 +100,7 @@ public class Capitalization {
* Get smallSnake
* @return smallSnake
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSmallSnake() {
return smallSnake;
@@ -116,6 +119,7 @@ public class Capitalization {
* Get capitalSnake
* @return capitalSnake
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getCapitalSnake() {
return capitalSnake;
@@ -134,6 +138,7 @@ public class Capitalization {
* Get scAETHFlowPoints
* @return scAETHFlowPoints
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getScAETHFlowPoints() {
return scAETHFlowPoints;
@@ -152,6 +157,7 @@ public class Capitalization {
* Name of the pet
* @return ATT_NAME
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the pet ")
public String getATTNAME() {
return ATT_NAME;

View File

@@ -44,6 +44,7 @@ public class Cat extends Animal {
* Get declawed
* @return declawed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getDeclawed() {
return declawed;

View File

@@ -42,6 +42,7 @@ public class CatAllOf {
* Get declawed
* @return declawed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getDeclawed() {
return declawed;

View File

@@ -46,6 +46,7 @@ public class Category {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -64,6 +65,7 @@ public class Category {
* Get name
* @return name
**/
@ApiModelProperty(required = true, value = "")
public String getName() {
return name;

View File

@@ -43,6 +43,7 @@ public class ClassModel {
* Get propertyClass
* @return propertyClass
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPropertyClass() {
return propertyClass;

View File

@@ -42,6 +42,7 @@ public class Client {
* Get client
* @return client
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getClient() {
return client;

View File

@@ -44,6 +44,7 @@ public class Dog extends Animal {
* Get breed
* @return breed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBreed() {
return breed;

View File

@@ -42,6 +42,7 @@ public class DogAllOf {
* Get breed
* @return breed
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBreed() {
return breed;

View File

@@ -142,6 +142,7 @@ public class EnumArrays {
* Get justSymbol
* @return justSymbol
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public JustSymbolEnum getJustSymbol() {
return justSymbol;
@@ -168,6 +169,7 @@ public class EnumArrays {
* Get arrayEnum
* @return arrayEnum
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum;

View File

@@ -251,6 +251,7 @@ public class EnumTest {
* Get enumString
* @return enumString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public EnumStringEnum getEnumString() {
return enumString;
@@ -269,6 +270,7 @@ public class EnumTest {
* Get enumStringRequired
* @return enumStringRequired
**/
@ApiModelProperty(required = true, value = "")
public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired;
@@ -287,6 +289,7 @@ public class EnumTest {
* Get enumInteger
* @return enumInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public EnumIntegerEnum getEnumInteger() {
return enumInteger;
@@ -305,6 +308,7 @@ public class EnumTest {
* Get enumNumber
* @return enumNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public EnumNumberEnum getEnumNumber() {
return enumNumber;
@@ -323,6 +327,7 @@ public class EnumTest {
* Get outerEnum
* @return outerEnum
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OuterEnum getOuterEnum() {
return outerEnum;

View File

@@ -48,6 +48,7 @@ public class FileSchemaTestClass {
* Get file
* @return file
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public java.io.File getFile() {
return file;
@@ -74,6 +75,7 @@ public class FileSchemaTestClass {
* Get files
* @return files
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<java.io.File> getFiles() {
return files;

View File

@@ -97,6 +97,7 @@ public class FormatTest {
* maximum: 100
* @return integer
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getInteger() {
return integer;
@@ -117,6 +118,7 @@ public class FormatTest {
* maximum: 200
* @return int32
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getInt32() {
return int32;
@@ -135,6 +137,7 @@ public class FormatTest {
* Get int64
* @return int64
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getInt64() {
return int64;
@@ -155,6 +158,7 @@ public class FormatTest {
* maximum: 543.2
* @return number
**/
@ApiModelProperty(required = true, value = "")
public BigDecimal getNumber() {
return number;
@@ -175,6 +179,7 @@ public class FormatTest {
* maximum: 987.6
* @return _float
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Float getFloat() {
return _float;
@@ -195,6 +200,7 @@ public class FormatTest {
* maximum: 123.4
* @return _double
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Double getDouble() {
return _double;
@@ -213,6 +219,7 @@ public class FormatTest {
* Get string
* @return string
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getString() {
return string;
@@ -231,6 +238,7 @@ public class FormatTest {
* Get _byte
* @return _byte
**/
@ApiModelProperty(required = true, value = "")
public byte[] getByte() {
return _byte;
@@ -249,6 +257,7 @@ public class FormatTest {
* Get binary
* @return binary
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public File getBinary() {
return binary;
@@ -267,6 +276,7 @@ public class FormatTest {
* Get date
* @return date
**/
@ApiModelProperty(required = true, value = "")
public LocalDate getDate() {
return date;
@@ -285,6 +295,7 @@ public class FormatTest {
* Get dateTime
* @return dateTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getDateTime() {
return dateTime;
@@ -303,6 +314,7 @@ public class FormatTest {
* Get uuid
* @return uuid
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
public UUID getUuid() {
return uuid;
@@ -321,6 +333,7 @@ public class FormatTest {
* Get password
* @return password
**/
@ApiModelProperty(required = true, value = "")
public String getPassword() {
return password;

View File

@@ -41,6 +41,7 @@ public class HasOnlyReadOnly {
* Get bar
* @return bar
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBar() {
return bar;
@@ -50,6 +51,7 @@ public class HasOnlyReadOnly {
* Get foo
* @return foo
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getFoo() {
return foo;

View File

@@ -112,6 +112,7 @@ public class MapTest {
* Get mapMapOfString
* @return mapMapOfString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString;
@@ -138,6 +139,7 @@ public class MapTest {
* Get mapOfEnumString
* @return mapOfEnumString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString;
@@ -164,6 +166,7 @@ public class MapTest {
* Get directMap
* @return directMap
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Boolean> getDirectMap() {
return directMap;
@@ -190,6 +193,7 @@ public class MapTest {
* Get indirectMap
* @return indirectMap
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Boolean> getIndirectMap() {
return indirectMap;

View File

@@ -56,6 +56,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Get uuid
* @return uuid
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getUuid() {
return uuid;
@@ -74,6 +75,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Get dateTime
* @return dateTime
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getDateTime() {
return dateTime;
@@ -100,6 +102,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Get map
* @return map
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map<String, Animal> getMap() {
return map;

View File

@@ -47,6 +47,7 @@ public class Model200Response {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getName() {
return name;
@@ -65,6 +66,7 @@ public class Model200Response {
* Get propertyClass
* @return propertyClass
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPropertyClass() {
return propertyClass;

View File

@@ -50,6 +50,7 @@ public class ModelApiResponse {
* Get code
* @return code
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getCode() {
return code;
@@ -68,6 +69,7 @@ public class ModelApiResponse {
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getType() {
return type;
@@ -86,6 +88,7 @@ public class ModelApiResponse {
* Get message
* @return message
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMessage() {
return message;

View File

@@ -43,6 +43,7 @@ public class ModelReturn {
* Get _return
* @return _return
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getReturn() {
return _return;

View File

@@ -55,6 +55,7 @@ public class Name {
* Get name
* @return name
**/
@ApiModelProperty(required = true, value = "")
public Integer getName() {
return name;
@@ -68,6 +69,7 @@ public class Name {
* Get snakeCase
* @return snakeCase
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getSnakeCase() {
return snakeCase;
@@ -82,6 +84,7 @@ public class Name {
* Get property
* @return property
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getProperty() {
return property;
@@ -95,6 +98,7 @@ public class Name {
* Get _123number
* @return _123number
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer get123number() {
return _123number;

View File

@@ -43,6 +43,7 @@ public class NumberOnly {
* Get justNumber
* @return justNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public BigDecimal getJustNumber() {
return justNumber;

View File

@@ -112,6 +112,7 @@ public class Order {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -130,6 +131,7 @@ public class Order {
* Get petId
* @return petId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getPetId() {
return petId;
@@ -148,6 +150,7 @@ public class Order {
* Get quantity
* @return quantity
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getQuantity() {
return quantity;
@@ -166,6 +169,7 @@ public class Order {
* Get shipDate
* @return shipDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getShipDate() {
return shipDate;
@@ -184,6 +188,7 @@ public class Order {
* Order Status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Order Status")
public StatusEnum getStatus() {
return status;
@@ -202,6 +207,7 @@ public class Order {
* Get complete
* @return complete
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getComplete() {
return complete;

View File

@@ -51,6 +51,7 @@ public class OuterComposite {
* Get myNumber
* @return myNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public BigDecimal getMyNumber() {
return myNumber;
@@ -69,6 +70,7 @@ public class OuterComposite {
* Get myString
* @return myString
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMyString() {
return myString;
@@ -87,6 +89,7 @@ public class OuterComposite {
* Get myBoolean
* @return myBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getMyBoolean() {
return myBoolean;

View File

@@ -115,6 +115,7 @@ public class Pet {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -133,6 +134,7 @@ public class Pet {
* Get category
* @return category
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Category getCategory() {
return category;
@@ -151,6 +153,7 @@ public class Pet {
* Get name
* @return name
**/
@ApiModelProperty(example = "doggie", required = true, value = "")
public String getName() {
return name;
@@ -174,6 +177,7 @@ public class Pet {
* Get photoUrls
* @return photoUrls
**/
@ApiModelProperty(required = true, value = "")
public List<String> getPhotoUrls() {
return photoUrls;
@@ -200,6 +204,7 @@ public class Pet {
* Get tags
* @return tags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Tag> getTags() {
return tags;
@@ -218,6 +223,7 @@ public class Pet {
* pet status in the store
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "pet status in the store")
public StatusEnum getStatus() {
return status;

View File

@@ -41,6 +41,7 @@ public class ReadOnlyFirst {
* Get bar
* @return bar
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBar() {
return bar;
@@ -55,6 +56,7 @@ public class ReadOnlyFirst {
* Get baz
* @return baz
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBaz() {
return baz;

View File

@@ -42,6 +42,7 @@ public class SpecialModelName {
* Get $specialPropertyName
* @return $specialPropertyName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long get$SpecialPropertyName() {
return $specialPropertyName;

View File

@@ -46,6 +46,7 @@ public class Tag {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -64,6 +65,7 @@ public class Tag {
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getName() {
return name;

View File

@@ -61,6 +61,7 @@ public class TypeHolderDefault {
* Get stringItem
* @return stringItem
**/
@ApiModelProperty(required = true, value = "")
public String getStringItem() {
return stringItem;
@@ -79,6 +80,7 @@ public class TypeHolderDefault {
* Get numberItem
* @return numberItem
**/
@ApiModelProperty(required = true, value = "")
public BigDecimal getNumberItem() {
return numberItem;
@@ -97,6 +99,7 @@ public class TypeHolderDefault {
* Get integerItem
* @return integerItem
**/
@ApiModelProperty(required = true, value = "")
public Integer getIntegerItem() {
return integerItem;
@@ -115,6 +118,7 @@ public class TypeHolderDefault {
* Get boolItem
* @return boolItem
**/
@ApiModelProperty(required = true, value = "")
public Boolean getBoolItem() {
return boolItem;
@@ -138,6 +142,7 @@ public class TypeHolderDefault {
* Get arrayItem
* @return arrayItem
**/
@ApiModelProperty(required = true, value = "")
public List<Integer> getArrayItem() {
return arrayItem;

View File

@@ -61,6 +61,7 @@ public class TypeHolderExample {
* Get stringItem
* @return stringItem
**/
@ApiModelProperty(example = "what", required = true, value = "")
public String getStringItem() {
return stringItem;
@@ -79,6 +80,7 @@ public class TypeHolderExample {
* Get numberItem
* @return numberItem
**/
@ApiModelProperty(example = "1.234", required = true, value = "")
public BigDecimal getNumberItem() {
return numberItem;
@@ -97,6 +99,7 @@ public class TypeHolderExample {
* Get integerItem
* @return integerItem
**/
@ApiModelProperty(example = "-2", required = true, value = "")
public Integer getIntegerItem() {
return integerItem;
@@ -115,6 +118,7 @@ public class TypeHolderExample {
* Get boolItem
* @return boolItem
**/
@ApiModelProperty(example = "true", required = true, value = "")
public Boolean getBoolItem() {
return boolItem;
@@ -138,6 +142,7 @@ public class TypeHolderExample {
* Get arrayItem
* @return arrayItem
**/
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
public List<Integer> getArrayItem() {
return arrayItem;

View File

@@ -70,6 +70,7 @@ public class User {
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getId() {
return id;
@@ -88,6 +89,7 @@ public class User {
* Get username
* @return username
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getUsername() {
return username;
@@ -106,6 +108,7 @@ public class User {
* Get firstName
* @return firstName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getFirstName() {
return firstName;
@@ -124,6 +127,7 @@ public class User {
* Get lastName
* @return lastName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getLastName() {
return lastName;
@@ -142,6 +146,7 @@ public class User {
* Get email
* @return email
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getEmail() {
return email;
@@ -160,6 +165,7 @@ public class User {
* Get password
* @return password
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPassword() {
return password;
@@ -178,6 +184,7 @@ public class User {
* Get phone
* @return phone
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPhone() {
return phone;
@@ -196,6 +203,7 @@ public class User {
* User Status
* @return userStatus
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "User Status")
public Integer getUserStatus() {
return userStatus;

View File

@@ -157,6 +157,7 @@ public class XmlItem {
* Get attributeString
* @return attributeString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getAttributeString() {
return attributeString;
@@ -175,6 +176,7 @@ public class XmlItem {
* Get attributeNumber
* @return attributeNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getAttributeNumber() {
return attributeNumber;
@@ -193,6 +195,7 @@ public class XmlItem {
* Get attributeInteger
* @return attributeInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getAttributeInteger() {
return attributeInteger;
@@ -211,6 +214,7 @@ public class XmlItem {
* Get attributeBoolean
* @return attributeBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getAttributeBoolean() {
return attributeBoolean;
@@ -237,6 +241,7 @@ public class XmlItem {
* Get wrappedArray
* @return wrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getWrappedArray() {
return wrappedArray;
@@ -255,6 +260,7 @@ public class XmlItem {
* Get nameString
* @return nameString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getNameString() {
return nameString;
@@ -273,6 +279,7 @@ public class XmlItem {
* Get nameNumber
* @return nameNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getNameNumber() {
return nameNumber;
@@ -291,6 +298,7 @@ public class XmlItem {
* Get nameInteger
* @return nameInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getNameInteger() {
return nameInteger;
@@ -309,6 +317,7 @@ public class XmlItem {
* Get nameBoolean
* @return nameBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getNameBoolean() {
return nameBoolean;
@@ -335,6 +344,7 @@ public class XmlItem {
* Get nameArray
* @return nameArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNameArray() {
return nameArray;
@@ -361,6 +371,7 @@ public class XmlItem {
* Get nameWrappedArray
* @return nameWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNameWrappedArray() {
return nameWrappedArray;
@@ -379,6 +390,7 @@ public class XmlItem {
* Get prefixString
* @return prefixString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getPrefixString() {
return prefixString;
@@ -397,6 +409,7 @@ public class XmlItem {
* Get prefixNumber
* @return prefixNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getPrefixNumber() {
return prefixNumber;
@@ -415,6 +428,7 @@ public class XmlItem {
* Get prefixInteger
* @return prefixInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getPrefixInteger() {
return prefixInteger;
@@ -433,6 +447,7 @@ public class XmlItem {
* Get prefixBoolean
* @return prefixBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getPrefixBoolean() {
return prefixBoolean;
@@ -459,6 +474,7 @@ public class XmlItem {
* Get prefixArray
* @return prefixArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixArray() {
return prefixArray;
@@ -485,6 +501,7 @@ public class XmlItem {
* Get prefixWrappedArray
* @return prefixWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixWrappedArray() {
return prefixWrappedArray;
@@ -503,6 +520,7 @@ public class XmlItem {
* Get namespaceString
* @return namespaceString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getNamespaceString() {
return namespaceString;
@@ -521,6 +539,7 @@ public class XmlItem {
* Get namespaceNumber
* @return namespaceNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getNamespaceNumber() {
return namespaceNumber;
@@ -539,6 +558,7 @@ public class XmlItem {
* Get namespaceInteger
* @return namespaceInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getNamespaceInteger() {
return namespaceInteger;
@@ -557,6 +577,7 @@ public class XmlItem {
* Get namespaceBoolean
* @return namespaceBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getNamespaceBoolean() {
return namespaceBoolean;
@@ -583,6 +604,7 @@ public class XmlItem {
* Get namespaceArray
* @return namespaceArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNamespaceArray() {
return namespaceArray;
@@ -609,6 +631,7 @@ public class XmlItem {
* Get namespaceWrappedArray
* @return namespaceWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getNamespaceWrappedArray() {
return namespaceWrappedArray;
@@ -627,6 +650,7 @@ public class XmlItem {
* Get prefixNsString
* @return prefixNsString
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "")
public String getPrefixNsString() {
return prefixNsString;
@@ -645,6 +669,7 @@ public class XmlItem {
* Get prefixNsNumber
* @return prefixNsNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "")
public BigDecimal getPrefixNsNumber() {
return prefixNsNumber;
@@ -663,6 +688,7 @@ public class XmlItem {
* Get prefixNsInteger
* @return prefixNsInteger
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "")
public Integer getPrefixNsInteger() {
return prefixNsInteger;
@@ -681,6 +707,7 @@ public class XmlItem {
* Get prefixNsBoolean
* @return prefixNsBoolean
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "")
public Boolean getPrefixNsBoolean() {
return prefixNsBoolean;
@@ -707,6 +734,7 @@ public class XmlItem {
* Get prefixNsArray
* @return prefixNsArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixNsArray() {
return prefixNsArray;
@@ -733,6 +761,7 @@ public class XmlItem {
* Get prefixNsWrappedArray
* @return prefixNsWrappedArray
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List<Integer> getPrefixNsWrappedArray() {
return prefixNsWrappedArray;