forked from loafle/openapi-generator-original
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
This commit is contained in:
commit
141fc7e8c7
10
bin/windows/jaxrs-spec-petstore-server-interface.bat
Normal file
10
bin/windows/jaxrs-spec-petstore-server-interface.bat
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
set executable=.\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar
|
||||||
|
|
||||||
|
If Not Exist %executable% (
|
||||||
|
mvn clean package
|
||||||
|
)
|
||||||
|
|
||||||
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
|
||||||
|
set ags=generate --artifact-id "jaxrs-cxf-client-petstore-client" -i modules\swagger-codegen\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -l jaxrs-spec -o samples\server\petstore\jaxrs-spec-interface -DhideGenerationTimestamp=true,serializableModel=true,interfaceOnly=true
|
||||||
|
|
||||||
|
java %JAVA_OPTS% -jar %executable% %ags%
|
10
bin/windows/jaxrs-spec-petstore-server.bat
Normal file
10
bin/windows/jaxrs-spec-petstore-server.bat
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
set executable=.\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar
|
||||||
|
|
||||||
|
If Not Exist %executable% (
|
||||||
|
mvn clean package
|
||||||
|
)
|
||||||
|
|
||||||
|
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
|
||||||
|
set ags=generate --artifact-id "jaxrs-cxf-client-petstore-client" -i modules\swagger-codegen\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -l jaxrs-spec -o samples\server\petstore\jaxrs-spec -DhideGenerationTimestamp=true,serializableModel=true
|
||||||
|
|
||||||
|
java %JAVA_OPTS% -jar %executable% %ags%
|
@ -1,5 +1,6 @@
|
|||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
{{#description}}@ApiModel(description = "{{{description}}}"){{/description}}
|
{{#description}}@ApiModel(description = "{{{description}}}"){{/description}}
|
||||||
|
|
||||||
public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
|
public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
|
||||||
@ -29,6 +30,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
|||||||
|
|
||||||
{{#vendorExtensions.extraAnnotation}}{{{vendorExtensions.extraAnnotation}}}{{/vendorExtensions.extraAnnotation}}
|
{{#vendorExtensions.extraAnnotation}}{{{vendorExtensions.extraAnnotation}}}{{/vendorExtensions.extraAnnotation}}
|
||||||
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}")
|
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}")
|
||||||
|
@JsonProperty("{{baseName}}")
|
||||||
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{{datatypeWithEnum}}} {{getter}}() {
|
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{{datatypeWithEnum}}} {{getter}}() {
|
||||||
return {{name}};
|
return {{name}};
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class AdditionalPropertiesClass implements Serializable {
|
public class AdditionalPropertiesClass implements Serializable {
|
||||||
@ -26,6 +27,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_property")
|
||||||
public Map<String, String> getMapProperty() {
|
public Map<String, String> getMapProperty() {
|
||||||
return mapProperty;
|
return mapProperty;
|
||||||
}
|
}
|
||||||
@ -42,6 +44,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_of_map_property")
|
||||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||||
return mapOfMapProperty;
|
return mapOfMapProperty;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Animal implements Serializable {
|
public class Animal implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("className")
|
||||||
@NotNull
|
@NotNull
|
||||||
public String getClassName() {
|
public String getClassName() {
|
||||||
return className;
|
return className;
|
||||||
@ -42,6 +44,7 @@ public class Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("color")
|
||||||
public String getColor() {
|
public String getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class AnimalFarm extends ArrayList<Animal> implements Serializable {
|
public class AnimalFarm extends ArrayList<Animal> implements Serializable {
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("ArrayArrayNumber")
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
return arrayArrayNumber;
|
return arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ArrayOfNumberOnly implements Serializable {
|
public class ArrayOfNumberOnly implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class ArrayOfNumberOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("ArrayNumber")
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
return arrayNumber;
|
return arrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ArrayTest implements Serializable {
|
public class ArrayTest implements Serializable {
|
||||||
@ -27,6 +28,7 @@ public class ArrayTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_of_string")
|
||||||
public List<String> getArrayOfString() {
|
public List<String> getArrayOfString() {
|
||||||
return arrayOfString;
|
return arrayOfString;
|
||||||
}
|
}
|
||||||
@ -43,6 +45,7 @@ public class ArrayTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_array_of_integer")
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
return arrayArrayOfInteger;
|
return arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
@ -59,6 +62,7 @@ public class ArrayTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_array_of_model")
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
return arrayArrayOfModel;
|
return arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Capitalization implements Serializable {
|
public class Capitalization implements Serializable {
|
||||||
@ -27,6 +28,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("smallCamel")
|
||||||
public String getSmallCamel() {
|
public String getSmallCamel() {
|
||||||
return smallCamel;
|
return smallCamel;
|
||||||
}
|
}
|
||||||
@ -43,6 +45,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("CapitalCamel")
|
||||||
public String getCapitalCamel() {
|
public String getCapitalCamel() {
|
||||||
return capitalCamel;
|
return capitalCamel;
|
||||||
}
|
}
|
||||||
@ -59,6 +62,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("small_Snake")
|
||||||
public String getSmallSnake() {
|
public String getSmallSnake() {
|
||||||
return smallSnake;
|
return smallSnake;
|
||||||
}
|
}
|
||||||
@ -75,6 +79,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("Capital_Snake")
|
||||||
public String getCapitalSnake() {
|
public String getCapitalSnake() {
|
||||||
return capitalSnake;
|
return capitalSnake;
|
||||||
}
|
}
|
||||||
@ -91,6 +96,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("SCA_ETH_Flow_Points")
|
||||||
public String getScAETHFlowPoints() {
|
public String getScAETHFlowPoints() {
|
||||||
return scAETHFlowPoints;
|
return scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
@ -108,6 +114,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "Name of the pet ")
|
@ApiModelProperty(value = "Name of the pet ")
|
||||||
|
@JsonProperty("ATT_NAME")
|
||||||
public String getATTNAME() {
|
public String getATTNAME() {
|
||||||
return ATT_NAME;
|
return ATT_NAME;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Cat extends Animal implements Serializable {
|
public class Cat extends Animal implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Cat extends Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("declawed")
|
||||||
public Boolean isDeclawed() {
|
public Boolean isDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Category implements Serializable {
|
public class Category implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Category implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class Category implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||||
|
|
||||||
public class ClassModel implements Serializable {
|
public class ClassModel implements Serializable {
|
||||||
@ -26,6 +27,7 @@ public class ClassModel implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("_class")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Client implements Serializable {
|
public class Client implements Serializable {
|
||||||
@ -22,6 +23,7 @@ public class Client implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("client")
|
||||||
public String getClient() {
|
public String getClient() {
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Dog extends Animal implements Serializable {
|
public class Dog extends Animal implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Dog extends Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("breed")
|
||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class EnumArrays implements Serializable {
|
public class EnumArrays implements Serializable {
|
||||||
@ -87,6 +88,7 @@ public enum ArrayEnumEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("just_symbol")
|
||||||
public JustSymbolEnum getJustSymbol() {
|
public JustSymbolEnum getJustSymbol() {
|
||||||
return justSymbol;
|
return justSymbol;
|
||||||
}
|
}
|
||||||
@ -103,6 +105,7 @@ public enum ArrayEnumEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_enum")
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
return arrayEnum;
|
return arrayEnum;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class EnumTest implements Serializable {
|
public class EnumTest implements Serializable {
|
||||||
@ -119,6 +120,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("enum_string")
|
||||||
public EnumStringEnum getEnumString() {
|
public EnumStringEnum getEnumString() {
|
||||||
return enumString;
|
return enumString;
|
||||||
}
|
}
|
||||||
@ -135,6 +137,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("enum_integer")
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
public EnumIntegerEnum getEnumInteger() {
|
||||||
return enumInteger;
|
return enumInteger;
|
||||||
}
|
}
|
||||||
@ -151,6 +154,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("enum_number")
|
||||||
public EnumNumberEnum getEnumNumber() {
|
public EnumNumberEnum getEnumNumber() {
|
||||||
return enumNumber;
|
return enumNumber;
|
||||||
}
|
}
|
||||||
@ -167,6 +171,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("outerEnum")
|
||||||
public OuterEnum getOuterEnum() {
|
public OuterEnum getOuterEnum() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class FormatTest implements Serializable {
|
public class FormatTest implements Serializable {
|
||||||
@ -40,6 +41,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("integer")
|
||||||
@Min(10) @Max(100) public Integer getInteger() {
|
@Min(10) @Max(100) public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
}
|
}
|
||||||
@ -58,6 +60,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("int32")
|
||||||
@Min(20) @Max(200) public Integer getInt32() {
|
@Min(20) @Max(200) public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
}
|
}
|
||||||
@ -74,6 +77,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("int64")
|
||||||
public Long getInt64() {
|
public Long getInt64() {
|
||||||
return int64;
|
return int64;
|
||||||
}
|
}
|
||||||
@ -92,6 +96,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("number")
|
||||||
@NotNull
|
@NotNull
|
||||||
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
|
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
@ -111,6 +116,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("float")
|
||||||
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
|
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
}
|
}
|
||||||
@ -129,6 +135,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("double")
|
||||||
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
|
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
}
|
}
|
||||||
@ -145,6 +152,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("string")
|
||||||
@Pattern(regexp="/[a-z]/i") public String getString() {
|
@Pattern(regexp="/[a-z]/i") public String getString() {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
@ -161,6 +169,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("byte")
|
||||||
@NotNull
|
@NotNull
|
||||||
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
|
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
@ -178,6 +187,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("binary")
|
||||||
public byte[] getBinary() {
|
public byte[] getBinary() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
@ -194,6 +204,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("date")
|
||||||
@NotNull
|
@NotNull
|
||||||
public LocalDate getDate() {
|
public LocalDate getDate() {
|
||||||
return date;
|
return date;
|
||||||
@ -211,6 +222,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("dateTime")
|
||||||
public Date getDateTime() {
|
public Date getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -227,6 +239,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -243,6 +256,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("password")
|
||||||
@NotNull
|
@NotNull
|
||||||
@Size(min=10,max=64) public String getPassword() {
|
@Size(min=10,max=64) public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class HasOnlyReadOnly implements Serializable {
|
public class HasOnlyReadOnly implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class HasOnlyReadOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class HasOnlyReadOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("foo")
|
||||||
public String getFoo() {
|
public String getFoo() {
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class MapTest implements Serializable {
|
public class MapTest implements Serializable {
|
||||||
@ -57,6 +58,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_map_of_string")
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
return mapMapOfString;
|
return mapMapOfString;
|
||||||
}
|
}
|
||||||
@ -73,6 +75,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_of_enum_string")
|
||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||||
return mapOfEnumString;
|
return mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
||||||
@ -30,6 +31,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -46,6 +48,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("dateTime")
|
||||||
public Date getDateTime() {
|
public Date getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -62,6 +65,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map")
|
||||||
public Map<String, Animal> getMap() {
|
public Map<String, Animal> getMap() {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing model name starting with number")
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
|
|
||||||
public class Model200Response implements Serializable {
|
public class Model200Response implements Serializable {
|
||||||
@ -27,6 +28,7 @@ public class Model200Response implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -43,6 +45,7 @@ public class Model200Response implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("class")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ModelApiResponse implements Serializable {
|
public class ModelApiResponse implements Serializable {
|
||||||
@ -24,6 +25,7 @@ public class ModelApiResponse implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Integer getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
@ -40,6 +42,7 @@ public class ModelApiResponse implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -56,6 +59,7 @@ public class ModelApiResponse implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing reserved words")
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
|
|
||||||
public class ModelReturn implements Serializable {
|
public class ModelReturn implements Serializable {
|
||||||
@ -26,6 +27,7 @@ public class ModelReturn implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("return")
|
||||||
public Integer getReturn() {
|
public Integer getReturn() {
|
||||||
return _return;
|
return _return;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing model name same as property name")
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
|
|
||||||
public class Name implements Serializable {
|
public class Name implements Serializable {
|
||||||
@ -29,6 +30,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
@NotNull
|
@NotNull
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
@ -46,6 +48,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("snake_case")
|
||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
@ -62,6 +65,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("property")
|
||||||
public String getProperty() {
|
public String getProperty() {
|
||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
@ -78,6 +82,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("123Number")
|
||||||
public Integer get123Number() {
|
public Integer get123Number() {
|
||||||
return _123Number;
|
return _123Number;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class NumberOnly implements Serializable {
|
public class NumberOnly implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class NumberOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("JustNumber")
|
||||||
public BigDecimal getJustNumber() {
|
public BigDecimal getJustNumber() {
|
||||||
return justNumber;
|
return justNumber;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Order implements Serializable {
|
public class Order implements Serializable {
|
||||||
@ -59,6 +60,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -75,6 +77,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("petId")
|
||||||
public Long getPetId() {
|
public Long getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
@ -91,6 +94,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("quantity")
|
||||||
public Integer getQuantity() {
|
public Integer getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
@ -107,6 +111,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("shipDate")
|
||||||
public Date getShipDate() {
|
public Date getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
@ -124,6 +129,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "Order Status")
|
@ApiModelProperty(value = "Order Status")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -140,6 +146,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("complete")
|
||||||
public Boolean isComplete() {
|
public Boolean isComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class OuterComposite implements Serializable {
|
public class OuterComposite implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class OuterComposite implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("my_number")
|
||||||
public BigDecimal getMyNumber() {
|
public BigDecimal getMyNumber() {
|
||||||
return myNumber;
|
return myNumber;
|
||||||
}
|
}
|
||||||
@ -41,6 +43,7 @@ public class OuterComposite implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("my_string")
|
||||||
public String getMyString() {
|
public String getMyString() {
|
||||||
return myString;
|
return myString;
|
||||||
}
|
}
|
||||||
@ -57,6 +60,7 @@ public class OuterComposite implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("my_boolean")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean getMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Pet implements Serializable {
|
public class Pet implements Serializable {
|
||||||
@ -62,6 +63,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -78,6 +80,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("category")
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
@ -94,6 +97,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
@NotNull
|
@NotNull
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
@ -111,6 +115,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("photoUrls")
|
||||||
@NotNull
|
@NotNull
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
@ -128,6 +133,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("tags")
|
||||||
public List<Tag> getTags() {
|
public List<Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
@ -145,6 +151,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "pet status in the store")
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ReadOnlyFirst implements Serializable {
|
public class ReadOnlyFirst implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class ReadOnlyFirst implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class ReadOnlyFirst implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("baz")
|
||||||
public String getBaz() {
|
public String getBaz() {
|
||||||
return baz;
|
return baz;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class SpecialModelName implements Serializable {
|
public class SpecialModelName implements Serializable {
|
||||||
@ -22,6 +23,7 @@ public class SpecialModelName implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("$special[property.name]")
|
||||||
public Long getSpecialPropertyName() {
|
public Long getSpecialPropertyName() {
|
||||||
return specialPropertyName;
|
return specialPropertyName;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Tag implements Serializable {
|
public class Tag implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Tag implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class Tag implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class User implements Serializable {
|
public class User implements Serializable {
|
||||||
@ -29,6 +30,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -45,6 +47,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("username")
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
@ -61,6 +64,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("firstName")
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
@ -77,6 +81,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("lastName")
|
||||||
public String getLastName() {
|
public String getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
@ -93,6 +98,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("email")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
@ -109,6 +115,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -125,6 +132,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("phone")
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
@ -142,6 +150,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "User Status")
|
@ApiModelProperty(value = "User Status")
|
||||||
|
@JsonProperty("userStatus")
|
||||||
public Integer getUserStatus() {
|
public Integer getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class AdditionalPropertiesClass implements Serializable {
|
public class AdditionalPropertiesClass implements Serializable {
|
||||||
@ -26,6 +27,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_property")
|
||||||
public Map<String, String> getMapProperty() {
|
public Map<String, String> getMapProperty() {
|
||||||
return mapProperty;
|
return mapProperty;
|
||||||
}
|
}
|
||||||
@ -42,6 +44,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_of_map_property")
|
||||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||||
return mapOfMapProperty;
|
return mapOfMapProperty;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Animal implements Serializable {
|
public class Animal implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("className")
|
||||||
@NotNull
|
@NotNull
|
||||||
public String getClassName() {
|
public String getClassName() {
|
||||||
return className;
|
return className;
|
||||||
@ -42,6 +44,7 @@ public class Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("color")
|
||||||
public String getColor() {
|
public String getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class AnimalFarm extends ArrayList<Animal> implements Serializable {
|
public class AnimalFarm extends ArrayList<Animal> implements Serializable {
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("ArrayArrayNumber")
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
return arrayArrayNumber;
|
return arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ArrayOfNumberOnly implements Serializable {
|
public class ArrayOfNumberOnly implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class ArrayOfNumberOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("ArrayNumber")
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
return arrayNumber;
|
return arrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ArrayTest implements Serializable {
|
public class ArrayTest implements Serializable {
|
||||||
@ -27,6 +28,7 @@ public class ArrayTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_of_string")
|
||||||
public List<String> getArrayOfString() {
|
public List<String> getArrayOfString() {
|
||||||
return arrayOfString;
|
return arrayOfString;
|
||||||
}
|
}
|
||||||
@ -43,6 +45,7 @@ public class ArrayTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_array_of_integer")
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
return arrayArrayOfInteger;
|
return arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
@ -59,6 +62,7 @@ public class ArrayTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_array_of_model")
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
return arrayArrayOfModel;
|
return arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Capitalization implements Serializable {
|
public class Capitalization implements Serializable {
|
||||||
@ -27,6 +28,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("smallCamel")
|
||||||
public String getSmallCamel() {
|
public String getSmallCamel() {
|
||||||
return smallCamel;
|
return smallCamel;
|
||||||
}
|
}
|
||||||
@ -43,6 +45,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("CapitalCamel")
|
||||||
public String getCapitalCamel() {
|
public String getCapitalCamel() {
|
||||||
return capitalCamel;
|
return capitalCamel;
|
||||||
}
|
}
|
||||||
@ -59,6 +62,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("small_Snake")
|
||||||
public String getSmallSnake() {
|
public String getSmallSnake() {
|
||||||
return smallSnake;
|
return smallSnake;
|
||||||
}
|
}
|
||||||
@ -75,6 +79,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("Capital_Snake")
|
||||||
public String getCapitalSnake() {
|
public String getCapitalSnake() {
|
||||||
return capitalSnake;
|
return capitalSnake;
|
||||||
}
|
}
|
||||||
@ -91,6 +96,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("SCA_ETH_Flow_Points")
|
||||||
public String getScAETHFlowPoints() {
|
public String getScAETHFlowPoints() {
|
||||||
return scAETHFlowPoints;
|
return scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
@ -108,6 +114,7 @@ public class Capitalization implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "Name of the pet ")
|
@ApiModelProperty(value = "Name of the pet ")
|
||||||
|
@JsonProperty("ATT_NAME")
|
||||||
public String getATTNAME() {
|
public String getATTNAME() {
|
||||||
return ATT_NAME;
|
return ATT_NAME;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Cat extends Animal implements Serializable {
|
public class Cat extends Animal implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Cat extends Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("declawed")
|
||||||
public Boolean isDeclawed() {
|
public Boolean isDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Category implements Serializable {
|
public class Category implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Category implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class Category implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||||
|
|
||||||
public class ClassModel implements Serializable {
|
public class ClassModel implements Serializable {
|
||||||
@ -26,6 +27,7 @@ public class ClassModel implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("_class")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Client implements Serializable {
|
public class Client implements Serializable {
|
||||||
@ -22,6 +23,7 @@ public class Client implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("client")
|
||||||
public String getClient() {
|
public String getClient() {
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Dog extends Animal implements Serializable {
|
public class Dog extends Animal implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Dog extends Animal implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("breed")
|
||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class EnumArrays implements Serializable {
|
public class EnumArrays implements Serializable {
|
||||||
@ -87,6 +88,7 @@ public enum ArrayEnumEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("just_symbol")
|
||||||
public JustSymbolEnum getJustSymbol() {
|
public JustSymbolEnum getJustSymbol() {
|
||||||
return justSymbol;
|
return justSymbol;
|
||||||
}
|
}
|
||||||
@ -103,6 +105,7 @@ public enum ArrayEnumEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("array_enum")
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
return arrayEnum;
|
return arrayEnum;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class EnumTest implements Serializable {
|
public class EnumTest implements Serializable {
|
||||||
@ -119,6 +120,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("enum_string")
|
||||||
public EnumStringEnum getEnumString() {
|
public EnumStringEnum getEnumString() {
|
||||||
return enumString;
|
return enumString;
|
||||||
}
|
}
|
||||||
@ -135,6 +137,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("enum_integer")
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
public EnumIntegerEnum getEnumInteger() {
|
||||||
return enumInteger;
|
return enumInteger;
|
||||||
}
|
}
|
||||||
@ -151,6 +154,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("enum_number")
|
||||||
public EnumNumberEnum getEnumNumber() {
|
public EnumNumberEnum getEnumNumber() {
|
||||||
return enumNumber;
|
return enumNumber;
|
||||||
}
|
}
|
||||||
@ -167,6 +171,7 @@ public enum EnumNumberEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("outerEnum")
|
||||||
public OuterEnum getOuterEnum() {
|
public OuterEnum getOuterEnum() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class FormatTest implements Serializable {
|
public class FormatTest implements Serializable {
|
||||||
@ -40,6 +41,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("integer")
|
||||||
@Min(10) @Max(100) public Integer getInteger() {
|
@Min(10) @Max(100) public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
}
|
}
|
||||||
@ -58,6 +60,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("int32")
|
||||||
@Min(20) @Max(200) public Integer getInt32() {
|
@Min(20) @Max(200) public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
}
|
}
|
||||||
@ -74,6 +77,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("int64")
|
||||||
public Long getInt64() {
|
public Long getInt64() {
|
||||||
return int64;
|
return int64;
|
||||||
}
|
}
|
||||||
@ -92,6 +96,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("number")
|
||||||
@NotNull
|
@NotNull
|
||||||
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
|
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
@ -111,6 +116,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("float")
|
||||||
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
|
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
}
|
}
|
||||||
@ -129,6 +135,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("double")
|
||||||
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
|
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
}
|
}
|
||||||
@ -145,6 +152,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("string")
|
||||||
@Pattern(regexp="/[a-z]/i") public String getString() {
|
@Pattern(regexp="/[a-z]/i") public String getString() {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
@ -161,6 +169,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("byte")
|
||||||
@NotNull
|
@NotNull
|
||||||
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
|
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
@ -178,6 +187,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("binary")
|
||||||
public byte[] getBinary() {
|
public byte[] getBinary() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
@ -194,6 +204,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("date")
|
||||||
@NotNull
|
@NotNull
|
||||||
public LocalDate getDate() {
|
public LocalDate getDate() {
|
||||||
return date;
|
return date;
|
||||||
@ -211,6 +222,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("dateTime")
|
||||||
public Date getDateTime() {
|
public Date getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -227,6 +239,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -243,6 +256,7 @@ public class FormatTest implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("password")
|
||||||
@NotNull
|
@NotNull
|
||||||
@Size(min=10,max=64) public String getPassword() {
|
@Size(min=10,max=64) public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class HasOnlyReadOnly implements Serializable {
|
public class HasOnlyReadOnly implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class HasOnlyReadOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class HasOnlyReadOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("foo")
|
||||||
public String getFoo() {
|
public String getFoo() {
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class MapTest implements Serializable {
|
public class MapTest implements Serializable {
|
||||||
@ -57,6 +58,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_map_of_string")
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
return mapMapOfString;
|
return mapMapOfString;
|
||||||
}
|
}
|
||||||
@ -73,6 +75,7 @@ public enum InnerEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map_of_enum_string")
|
||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||||
return mapOfEnumString;
|
return mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
||||||
@ -30,6 +31,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -46,6 +48,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("dateTime")
|
||||||
public Date getDateTime() {
|
public Date getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -62,6 +65,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("map")
|
||||||
public Map<String, Animal> getMap() {
|
public Map<String, Animal> getMap() {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing model name starting with number")
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
|
|
||||||
public class Model200Response implements Serializable {
|
public class Model200Response implements Serializable {
|
||||||
@ -27,6 +28,7 @@ public class Model200Response implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -43,6 +45,7 @@ public class Model200Response implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("class")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ModelApiResponse implements Serializable {
|
public class ModelApiResponse implements Serializable {
|
||||||
@ -24,6 +25,7 @@ public class ModelApiResponse implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Integer getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
@ -40,6 +42,7 @@ public class ModelApiResponse implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -56,6 +59,7 @@ public class ModelApiResponse implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing reserved words")
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
|
|
||||||
public class ModelReturn implements Serializable {
|
public class ModelReturn implements Serializable {
|
||||||
@ -26,6 +27,7 @@ public class ModelReturn implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("return")
|
||||||
public Integer getReturn() {
|
public Integer getReturn() {
|
||||||
return _return;
|
return _return;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
**/
|
**/
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@ApiModel(description = "Model for testing model name same as property name")
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
|
|
||||||
public class Name implements Serializable {
|
public class Name implements Serializable {
|
||||||
@ -29,6 +30,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
@NotNull
|
@NotNull
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
@ -46,6 +48,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("snake_case")
|
||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
@ -62,6 +65,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("property")
|
||||||
public String getProperty() {
|
public String getProperty() {
|
||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
@ -78,6 +82,7 @@ public class Name implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("123Number")
|
||||||
public Integer get123Number() {
|
public Integer get123Number() {
|
||||||
return _123Number;
|
return _123Number;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class NumberOnly implements Serializable {
|
public class NumberOnly implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class NumberOnly implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("JustNumber")
|
||||||
public BigDecimal getJustNumber() {
|
public BigDecimal getJustNumber() {
|
||||||
return justNumber;
|
return justNumber;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Order implements Serializable {
|
public class Order implements Serializable {
|
||||||
@ -59,6 +60,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -75,6 +77,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("petId")
|
||||||
public Long getPetId() {
|
public Long getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
@ -91,6 +94,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("quantity")
|
||||||
public Integer getQuantity() {
|
public Integer getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
@ -107,6 +111,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("shipDate")
|
||||||
public Date getShipDate() {
|
public Date getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
@ -124,6 +129,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "Order Status")
|
@ApiModelProperty(value = "Order Status")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -140,6 +146,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("complete")
|
||||||
public Boolean isComplete() {
|
public Boolean isComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class OuterComposite implements Serializable {
|
public class OuterComposite implements Serializable {
|
||||||
@ -25,6 +26,7 @@ public class OuterComposite implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("my_number")
|
||||||
public BigDecimal getMyNumber() {
|
public BigDecimal getMyNumber() {
|
||||||
return myNumber;
|
return myNumber;
|
||||||
}
|
}
|
||||||
@ -41,6 +43,7 @@ public class OuterComposite implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("my_string")
|
||||||
public String getMyString() {
|
public String getMyString() {
|
||||||
return myString;
|
return myString;
|
||||||
}
|
}
|
||||||
@ -57,6 +60,7 @@ public class OuterComposite implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("my_boolean")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean getMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Pet implements Serializable {
|
public class Pet implements Serializable {
|
||||||
@ -62,6 +63,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -78,6 +80,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("category")
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
@ -94,6 +97,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
@NotNull
|
@NotNull
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
@ -111,6 +115,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("photoUrls")
|
||||||
@NotNull
|
@NotNull
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
@ -128,6 +133,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("tags")
|
||||||
public List<Tag> getTags() {
|
public List<Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
@ -145,6 +151,7 @@ public enum StatusEnum {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "pet status in the store")
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class ReadOnlyFirst implements Serializable {
|
public class ReadOnlyFirst implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class ReadOnlyFirst implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class ReadOnlyFirst implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("baz")
|
||||||
public String getBaz() {
|
public String getBaz() {
|
||||||
return baz;
|
return baz;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class SpecialModelName implements Serializable {
|
public class SpecialModelName implements Serializable {
|
||||||
@ -22,6 +23,7 @@ public class SpecialModelName implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("$special[property.name]")
|
||||||
public Long getSpecialPropertyName() {
|
public Long getSpecialPropertyName() {
|
||||||
return specialPropertyName;
|
return specialPropertyName;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class Tag implements Serializable {
|
public class Tag implements Serializable {
|
||||||
@ -23,6 +24,7 @@ public class Tag implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -39,6 +41,7 @@ public class Tag implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import javax.validation.Valid;
|
|||||||
|
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
|
||||||
public class User implements Serializable {
|
public class User implements Serializable {
|
||||||
@ -29,6 +30,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -45,6 +47,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("username")
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
@ -61,6 +64,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("firstName")
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
@ -77,6 +81,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("lastName")
|
||||||
public String getLastName() {
|
public String getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
@ -93,6 +98,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("email")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
@ -109,6 +115,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -125,6 +132,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("phone")
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
@ -142,6 +150,7 @@ public class User implements Serializable {
|
|||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "User Status")
|
@ApiModelProperty(value = "User Status")
|
||||||
|
@JsonProperty("userStatus")
|
||||||
public Integer getUserStatus() {
|
public Integer getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user