forked from loafle/openapi-generator-original
[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:
@@ -39,6 +39,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -40,6 +40,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -39,6 +39,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -79,6 +79,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapString
|
||||
* @return mapString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, String> getMapString() {
|
||||
return mapString;
|
||||
@@ -105,6 +106,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapNumber
|
||||
* @return mapNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
@@ -131,6 +133,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapInteger
|
||||
* @return mapInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Integer> getMapInteger() {
|
||||
return mapInteger;
|
||||
@@ -157,6 +160,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapBoolean
|
||||
* @return mapBoolean
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Boolean> getMapBoolean() {
|
||||
return mapBoolean;
|
||||
@@ -183,6 +187,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapArrayInteger
|
||||
* @return mapArrayInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
@@ -209,6 +214,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapArrayAnytype
|
||||
* @return mapArrayAnytype
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
@@ -235,6 +241,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapMapString
|
||||
* @return mapMapString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
@@ -261,6 +268,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapMapAnytype
|
||||
* @return mapMapAnytype
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
@@ -279,6 +287,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get anytype1
|
||||
* @return anytype1
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Object getAnytype1() {
|
||||
return anytype1;
|
||||
@@ -297,6 +306,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get anytype2
|
||||
* @return anytype2
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Object getAnytype2() {
|
||||
return anytype2;
|
||||
@@ -315,6 +325,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get anytype3
|
||||
* @return anytype3
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Object getAnytype3() {
|
||||
return anytype3;
|
||||
|
||||
@@ -39,6 +39,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -40,6 +40,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -39,6 +39,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -39,6 +39,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -48,6 +48,7 @@ public class Animal {
|
||||
* Get className
|
||||
* @return className
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getClassName() {
|
||||
return className;
|
||||
@@ -66,6 +67,7 @@ public class Animal {
|
||||
* Get color
|
||||
* @return color
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getColor() {
|
||||
return color;
|
||||
|
||||
@@ -48,6 +48,7 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
* Get arrayArrayNumber
|
||||
* @return arrayArrayNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
|
||||
@@ -48,6 +48,7 @@ public class ArrayOfNumberOnly {
|
||||
* Get arrayNumber
|
||||
* @return arrayNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<BigDecimal> getArrayNumber() {
|
||||
return arrayNumber;
|
||||
|
||||
@@ -54,6 +54,7 @@ public class ArrayTest {
|
||||
* Get arrayOfString
|
||||
* @return arrayOfString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<String> getArrayOfString() {
|
||||
return arrayOfString;
|
||||
@@ -80,6 +81,7 @@ public class ArrayTest {
|
||||
* Get arrayArrayOfInteger
|
||||
* @return arrayArrayOfInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<List<Long>> getArrayArrayOfInteger() {
|
||||
return arrayArrayOfInteger;
|
||||
@@ -106,6 +108,7 @@ public class ArrayTest {
|
||||
* Get arrayArrayOfModel
|
||||
* @return arrayArrayOfModel
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
|
||||
@@ -52,6 +52,7 @@ public class Capitalization {
|
||||
* Get smallCamel
|
||||
* @return smallCamel
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getSmallCamel() {
|
||||
return smallCamel;
|
||||
@@ -70,6 +71,7 @@ public class Capitalization {
|
||||
* Get capitalCamel
|
||||
* @return capitalCamel
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getCapitalCamel() {
|
||||
return capitalCamel;
|
||||
@@ -88,6 +90,7 @@ public class Capitalization {
|
||||
* Get smallSnake
|
||||
* @return smallSnake
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getSmallSnake() {
|
||||
return smallSnake;
|
||||
@@ -106,6 +109,7 @@ public class Capitalization {
|
||||
* Get capitalSnake
|
||||
* @return capitalSnake
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getCapitalSnake() {
|
||||
return capitalSnake;
|
||||
@@ -124,6 +128,7 @@ public class Capitalization {
|
||||
* Get scAETHFlowPoints
|
||||
* @return scAETHFlowPoints
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getScAETHFlowPoints() {
|
||||
return scAETHFlowPoints;
|
||||
@@ -142,6 +147,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;
|
||||
|
||||
@@ -39,6 +39,7 @@ public class Cat extends Animal {
|
||||
* Get declawed
|
||||
* @return declawed
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isDeclawed() {
|
||||
return declawed;
|
||||
|
||||
@@ -37,6 +37,7 @@ public class CatAllOf {
|
||||
* Get declawed
|
||||
* @return declawed
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isDeclawed() {
|
||||
return declawed;
|
||||
|
||||
@@ -40,6 +40,7 @@ public class Category {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -58,6 +59,7 @@ public class Category {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -38,6 +38,7 @@ public class ClassModel {
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
|
||||
@@ -37,6 +37,7 @@ public class Client {
|
||||
* Get client
|
||||
* @return client
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getClient() {
|
||||
return client;
|
||||
|
||||
@@ -39,6 +39,7 @@ public class Dog extends Animal {
|
||||
* Get breed
|
||||
* @return breed
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
|
||||
@@ -37,6 +37,7 @@ public class DogAllOf {
|
||||
* Get breed
|
||||
* @return breed
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
|
||||
@@ -112,6 +112,7 @@ public class EnumArrays {
|
||||
* Get justSymbol
|
||||
* @return justSymbol
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public JustSymbolEnum getJustSymbol() {
|
||||
return justSymbol;
|
||||
@@ -138,6 +139,7 @@ public class EnumArrays {
|
||||
* Get arrayEnum
|
||||
* @return arrayEnum
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<ArrayEnumEnum> getArrayEnum() {
|
||||
return arrayEnum;
|
||||
|
||||
@@ -194,6 +194,7 @@ public class EnumTest {
|
||||
* Get enumString
|
||||
* @return enumString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public EnumStringEnum getEnumString() {
|
||||
return enumString;
|
||||
@@ -212,6 +213,7 @@ public class EnumTest {
|
||||
* Get enumStringRequired
|
||||
* @return enumStringRequired
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
return enumStringRequired;
|
||||
@@ -230,6 +232,7 @@ public class EnumTest {
|
||||
* Get enumInteger
|
||||
* @return enumInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public EnumIntegerEnum getEnumInteger() {
|
||||
return enumInteger;
|
||||
@@ -248,6 +251,7 @@ public class EnumTest {
|
||||
* Get enumNumber
|
||||
* @return enumNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public EnumNumberEnum getEnumNumber() {
|
||||
return enumNumber;
|
||||
@@ -266,6 +270,7 @@ public class EnumTest {
|
||||
* Get outerEnum
|
||||
* @return outerEnum
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public OuterEnum getOuterEnum() {
|
||||
return outerEnum;
|
||||
|
||||
@@ -42,6 +42,7 @@ public class FileSchemaTestClass {
|
||||
* Get file
|
||||
* @return file
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public java.io.File getFile() {
|
||||
return file;
|
||||
@@ -68,6 +69,7 @@ public class FileSchemaTestClass {
|
||||
* Get files
|
||||
* @return files
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<java.io.File> getFiles() {
|
||||
return files;
|
||||
|
||||
@@ -80,6 +80,7 @@ public class FormatTest {
|
||||
* maximum: 100
|
||||
* @return integer
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getInteger() {
|
||||
return integer;
|
||||
@@ -100,6 +101,7 @@ public class FormatTest {
|
||||
* maximum: 200
|
||||
* @return int32
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getInt32() {
|
||||
return int32;
|
||||
@@ -118,6 +120,7 @@ public class FormatTest {
|
||||
* Get int64
|
||||
* @return int64
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getInt64() {
|
||||
return int64;
|
||||
@@ -138,6 +141,7 @@ public class FormatTest {
|
||||
* maximum: 543.2
|
||||
* @return number
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public BigDecimal getNumber() {
|
||||
return number;
|
||||
@@ -158,6 +162,7 @@ public class FormatTest {
|
||||
* maximum: 987.6
|
||||
* @return _float
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Float getFloat() {
|
||||
return _float;
|
||||
@@ -178,6 +183,7 @@ public class FormatTest {
|
||||
* maximum: 123.4
|
||||
* @return _double
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Double getDouble() {
|
||||
return _double;
|
||||
@@ -196,6 +202,7 @@ public class FormatTest {
|
||||
* Get string
|
||||
* @return string
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getString() {
|
||||
return string;
|
||||
@@ -214,6 +221,7 @@ public class FormatTest {
|
||||
* Get _byte
|
||||
* @return _byte
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public byte[] getByte() {
|
||||
return _byte;
|
||||
@@ -232,6 +240,7 @@ public class FormatTest {
|
||||
* Get binary
|
||||
* @return binary
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public File getBinary() {
|
||||
return binary;
|
||||
@@ -250,6 +259,7 @@ public class FormatTest {
|
||||
* Get date
|
||||
* @return date
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public LocalDate getDate() {
|
||||
return date;
|
||||
@@ -268,6 +278,7 @@ public class FormatTest {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
@@ -286,6 +297,7 @@ public class FormatTest {
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
@@ -304,6 +316,7 @@ public class FormatTest {
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
|
||||
@@ -35,6 +35,7 @@ public class HasOnlyReadOnly {
|
||||
* Get bar
|
||||
* @return bar
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
@@ -44,6 +45,7 @@ public class HasOnlyReadOnly {
|
||||
* Get foo
|
||||
* @return foo
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getFoo() {
|
||||
return foo;
|
||||
|
||||
@@ -92,6 +92,7 @@ public class MapTest {
|
||||
* Get mapMapOfString
|
||||
* @return mapMapOfString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
return mapMapOfString;
|
||||
@@ -118,6 +119,7 @@ public class MapTest {
|
||||
* Get mapOfEnumString
|
||||
* @return mapOfEnumString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||
return mapOfEnumString;
|
||||
@@ -144,6 +146,7 @@ public class MapTest {
|
||||
* Get directMap
|
||||
* @return directMap
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Boolean> getDirectMap() {
|
||||
return directMap;
|
||||
@@ -170,6 +173,7 @@ public class MapTest {
|
||||
* Get indirectMap
|
||||
* @return indirectMap
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Boolean> getIndirectMap() {
|
||||
return indirectMap;
|
||||
|
||||
@@ -49,6 +49,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
@@ -67,6 +68,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
@@ -93,6 +95,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get map
|
||||
* @return map
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Map<String, Animal> getMap() {
|
||||
return map;
|
||||
|
||||
@@ -41,6 +41,7 @@ public class Model200Response {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getName() {
|
||||
return name;
|
||||
@@ -59,6 +60,7 @@ public class Model200Response {
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
|
||||
@@ -43,6 +43,7 @@ public class ModelApiResponse {
|
||||
* Get code
|
||||
* @return code
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
@@ -61,6 +62,7 @@ public class ModelApiResponse {
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getType() {
|
||||
return type;
|
||||
@@ -79,6 +81,7 @@ public class ModelApiResponse {
|
||||
* Get message
|
||||
* @return message
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
|
||||
@@ -38,6 +38,7 @@ public class ModelReturn {
|
||||
* Get _return
|
||||
* @return _return
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getReturn() {
|
||||
return _return;
|
||||
|
||||
@@ -47,6 +47,7 @@ public class Name {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Integer getName() {
|
||||
return name;
|
||||
@@ -60,6 +61,7 @@ public class Name {
|
||||
* Get snakeCase
|
||||
* @return snakeCase
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getSnakeCase() {
|
||||
return snakeCase;
|
||||
@@ -74,6 +76,7 @@ public class Name {
|
||||
* Get property
|
||||
* @return property
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getProperty() {
|
||||
return property;
|
||||
@@ -87,6 +90,7 @@ public class Name {
|
||||
* Get _123number
|
||||
* @return _123number
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer get123number() {
|
||||
return _123number;
|
||||
|
||||
@@ -38,6 +38,7 @@ public class NumberOnly {
|
||||
* Get justNumber
|
||||
* @return justNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public BigDecimal getJustNumber() {
|
||||
return justNumber;
|
||||
|
||||
@@ -90,6 +90,7 @@ public class Order {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -108,6 +109,7 @@ public class Order {
|
||||
* Get petId
|
||||
* @return petId
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
@@ -126,6 +128,7 @@ public class Order {
|
||||
* Get quantity
|
||||
* @return quantity
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
@@ -144,6 +147,7 @@ public class Order {
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public OffsetDateTime getShipDate() {
|
||||
return shipDate;
|
||||
@@ -162,6 +166,7 @@ public class Order {
|
||||
* Order Status
|
||||
* @return status
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "Order Status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
@@ -180,6 +185,7 @@ public class Order {
|
||||
* Get complete
|
||||
* @return complete
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isComplete() {
|
||||
return complete;
|
||||
|
||||
@@ -44,6 +44,7 @@ public class OuterComposite {
|
||||
* Get myNumber
|
||||
* @return myNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public BigDecimal getMyNumber() {
|
||||
return myNumber;
|
||||
@@ -62,6 +63,7 @@ public class OuterComposite {
|
||||
* Get myString
|
||||
* @return myString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getMyString() {
|
||||
return myString;
|
||||
@@ -80,6 +82,7 @@ public class OuterComposite {
|
||||
* Get myBoolean
|
||||
* @return myBoolean
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Boolean isMyBoolean() {
|
||||
return myBoolean;
|
||||
|
||||
@@ -93,6 +93,7 @@ public class Pet {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -111,6 +112,7 @@ public class Pet {
|
||||
* Get category
|
||||
* @return category
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
@@ -129,6 +131,7 @@ public class Pet {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
@@ -152,6 +155,7 @@ public class Pet {
|
||||
* Get photoUrls
|
||||
* @return photoUrls
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public List<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
@@ -178,6 +182,7 @@ public class Pet {
|
||||
* Get tags
|
||||
* @return tags
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
return tags;
|
||||
@@ -196,6 +201,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;
|
||||
|
||||
@@ -35,6 +35,7 @@ public class ReadOnlyFirst {
|
||||
* Get bar
|
||||
* @return bar
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
@@ -49,6 +50,7 @@ public class ReadOnlyFirst {
|
||||
* Get baz
|
||||
* @return baz
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getBaz() {
|
||||
return baz;
|
||||
|
||||
@@ -37,6 +37,7 @@ public class SpecialModelName {
|
||||
* Get $specialPropertyName
|
||||
* @return $specialPropertyName
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long get$SpecialPropertyName() {
|
||||
return $specialPropertyName;
|
||||
|
||||
@@ -40,6 +40,7 @@ public class Tag {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -58,6 +59,7 @@ public class Tag {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
||||
@@ -52,6 +52,7 @@ public class TypeHolderDefault {
|
||||
* Get stringItem
|
||||
* @return stringItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
@@ -70,6 +71,7 @@ public class TypeHolderDefault {
|
||||
* Get numberItem
|
||||
* @return numberItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
@@ -88,6 +90,7 @@ public class TypeHolderDefault {
|
||||
* Get integerItem
|
||||
* @return integerItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
@@ -106,6 +109,7 @@ public class TypeHolderDefault {
|
||||
* Get boolItem
|
||||
* @return boolItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public Boolean isBoolItem() {
|
||||
return boolItem;
|
||||
@@ -129,6 +133,7 @@ public class TypeHolderDefault {
|
||||
* Get arrayItem
|
||||
* @return arrayItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
|
||||
@@ -52,6 +52,7 @@ public class TypeHolderExample {
|
||||
* Get stringItem
|
||||
* @return stringItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "what", required = true, value = "")
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
@@ -70,6 +71,7 @@ public class TypeHolderExample {
|
||||
* Get numberItem
|
||||
* @return numberItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
@@ -88,6 +90,7 @@ public class TypeHolderExample {
|
||||
* Get integerItem
|
||||
* @return integerItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "-2", required = true, value = "")
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
@@ -106,6 +109,7 @@ public class TypeHolderExample {
|
||||
* Get boolItem
|
||||
* @return boolItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "true", required = true, value = "")
|
||||
public Boolean isBoolItem() {
|
||||
return boolItem;
|
||||
@@ -129,6 +133,7 @@ public class TypeHolderExample {
|
||||
* Get arrayItem
|
||||
* @return arrayItem
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
|
||||
@@ -58,6 +58,7 @@ public class User {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@@ -76,6 +77,7 @@ public class User {
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
@@ -94,6 +96,7 @@ public class User {
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
@@ -112,6 +115,7 @@ public class User {
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
@@ -130,6 +134,7 @@ public class User {
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
@@ -148,6 +153,7 @@ public class User {
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
@@ -166,6 +172,7 @@ public class User {
|
||||
* Get phone
|
||||
* @return phone
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
@@ -184,6 +191,7 @@ public class User {
|
||||
* User Status
|
||||
* @return userStatus
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "User Status")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
|
||||
@@ -124,6 +124,7 @@ public class XmlItem {
|
||||
* Get attributeString
|
||||
* @return attributeString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
public String getAttributeString() {
|
||||
return attributeString;
|
||||
@@ -142,6 +143,7 @@ public class XmlItem {
|
||||
* Get attributeNumber
|
||||
* @return attributeNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
public BigDecimal getAttributeNumber() {
|
||||
return attributeNumber;
|
||||
@@ -160,6 +162,7 @@ public class XmlItem {
|
||||
* Get attributeInteger
|
||||
* @return attributeInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
public Integer getAttributeInteger() {
|
||||
return attributeInteger;
|
||||
@@ -178,6 +181,7 @@ public class XmlItem {
|
||||
* Get attributeBoolean
|
||||
* @return attributeBoolean
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
public Boolean isAttributeBoolean() {
|
||||
return attributeBoolean;
|
||||
@@ -204,6 +208,7 @@ public class XmlItem {
|
||||
* Get wrappedArray
|
||||
* @return wrappedArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getWrappedArray() {
|
||||
return wrappedArray;
|
||||
@@ -222,6 +227,7 @@ public class XmlItem {
|
||||
* Get nameString
|
||||
* @return nameString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
public String getNameString() {
|
||||
return nameString;
|
||||
@@ -240,6 +246,7 @@ public class XmlItem {
|
||||
* Get nameNumber
|
||||
* @return nameNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
public BigDecimal getNameNumber() {
|
||||
return nameNumber;
|
||||
@@ -258,6 +265,7 @@ public class XmlItem {
|
||||
* Get nameInteger
|
||||
* @return nameInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
public Integer getNameInteger() {
|
||||
return nameInteger;
|
||||
@@ -276,6 +284,7 @@ public class XmlItem {
|
||||
* Get nameBoolean
|
||||
* @return nameBoolean
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
public Boolean isNameBoolean() {
|
||||
return nameBoolean;
|
||||
@@ -302,6 +311,7 @@ public class XmlItem {
|
||||
* Get nameArray
|
||||
* @return nameArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getNameArray() {
|
||||
return nameArray;
|
||||
@@ -328,6 +338,7 @@ public class XmlItem {
|
||||
* Get nameWrappedArray
|
||||
* @return nameWrappedArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getNameWrappedArray() {
|
||||
return nameWrappedArray;
|
||||
@@ -346,6 +357,7 @@ public class XmlItem {
|
||||
* Get prefixString
|
||||
* @return prefixString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
public String getPrefixString() {
|
||||
return prefixString;
|
||||
@@ -364,6 +376,7 @@ public class XmlItem {
|
||||
* Get prefixNumber
|
||||
* @return prefixNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
public BigDecimal getPrefixNumber() {
|
||||
return prefixNumber;
|
||||
@@ -382,6 +395,7 @@ public class XmlItem {
|
||||
* Get prefixInteger
|
||||
* @return prefixInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
public Integer getPrefixInteger() {
|
||||
return prefixInteger;
|
||||
@@ -400,6 +414,7 @@ public class XmlItem {
|
||||
* Get prefixBoolean
|
||||
* @return prefixBoolean
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
public Boolean isPrefixBoolean() {
|
||||
return prefixBoolean;
|
||||
@@ -426,6 +441,7 @@ public class XmlItem {
|
||||
* Get prefixArray
|
||||
* @return prefixArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getPrefixArray() {
|
||||
return prefixArray;
|
||||
@@ -452,6 +468,7 @@ public class XmlItem {
|
||||
* Get prefixWrappedArray
|
||||
* @return prefixWrappedArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getPrefixWrappedArray() {
|
||||
return prefixWrappedArray;
|
||||
@@ -470,6 +487,7 @@ public class XmlItem {
|
||||
* Get namespaceString
|
||||
* @return namespaceString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
public String getNamespaceString() {
|
||||
return namespaceString;
|
||||
@@ -488,6 +506,7 @@ public class XmlItem {
|
||||
* Get namespaceNumber
|
||||
* @return namespaceNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
public BigDecimal getNamespaceNumber() {
|
||||
return namespaceNumber;
|
||||
@@ -506,6 +525,7 @@ public class XmlItem {
|
||||
* Get namespaceInteger
|
||||
* @return namespaceInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
public Integer getNamespaceInteger() {
|
||||
return namespaceInteger;
|
||||
@@ -524,6 +544,7 @@ public class XmlItem {
|
||||
* Get namespaceBoolean
|
||||
* @return namespaceBoolean
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
public Boolean isNamespaceBoolean() {
|
||||
return namespaceBoolean;
|
||||
@@ -550,6 +571,7 @@ public class XmlItem {
|
||||
* Get namespaceArray
|
||||
* @return namespaceArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getNamespaceArray() {
|
||||
return namespaceArray;
|
||||
@@ -576,6 +598,7 @@ public class XmlItem {
|
||||
* Get namespaceWrappedArray
|
||||
* @return namespaceWrappedArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getNamespaceWrappedArray() {
|
||||
return namespaceWrappedArray;
|
||||
@@ -594,6 +617,7 @@ public class XmlItem {
|
||||
* Get prefixNsString
|
||||
* @return prefixNsString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
public String getPrefixNsString() {
|
||||
return prefixNsString;
|
||||
@@ -612,6 +636,7 @@ public class XmlItem {
|
||||
* Get prefixNsNumber
|
||||
* @return prefixNsNumber
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
public BigDecimal getPrefixNsNumber() {
|
||||
return prefixNsNumber;
|
||||
@@ -630,6 +655,7 @@ public class XmlItem {
|
||||
* Get prefixNsInteger
|
||||
* @return prefixNsInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
public Integer getPrefixNsInteger() {
|
||||
return prefixNsInteger;
|
||||
@@ -648,6 +674,7 @@ public class XmlItem {
|
||||
* Get prefixNsBoolean
|
||||
* @return prefixNsBoolean
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
public Boolean isPrefixNsBoolean() {
|
||||
return prefixNsBoolean;
|
||||
@@ -674,6 +701,7 @@ public class XmlItem {
|
||||
* Get prefixNsArray
|
||||
* @return prefixNsArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getPrefixNsArray() {
|
||||
return prefixNsArray;
|
||||
@@ -700,6 +728,7 @@ public class XmlItem {
|
||||
* Get prefixNsWrappedArray
|
||||
* @return prefixNsWrappedArray
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Integer> getPrefixNsWrappedArray() {
|
||||
return prefixNsWrappedArray;
|
||||
|
||||
Reference in New Issue
Block a user