Update samples for Java Inflector. (#5204)

This commit is contained in:
Paŭlo Ebermann 2017-03-27 08:10:15 +02:00 committed by wing328
parent 6fef9c5ce6
commit b3fac54df6
29 changed files with 90 additions and 84 deletions

View File

@ -29,7 +29,7 @@ public class AdditionalPropertiesClass {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("map_property") @JsonProperty("map_property")
public Map<String, String> getMapProperty() { public Map<String, String> getMapProperty() {
return mapProperty; return mapProperty;
@ -46,7 +46,7 @@ public class AdditionalPropertiesClass {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("map_of_map_property") @JsonProperty("map_of_map_property")
public Map<String, Map<String, String>> getMapOfMapProperty() { public Map<String, Map<String, String>> getMapOfMapProperty() {
return mapOfMapProperty; return mapOfMapProperty;

View File

@ -28,7 +28,7 @@ public class Animal {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("className") @JsonProperty("className")
public String getClassName() { public String getClassName() {
return className; return className;
@ -45,7 +45,7 @@ public class Animal {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("color") @JsonProperty("color")
public String getColor() { public String getColor() {
return color; return color;

View File

@ -26,7 +26,7 @@ public class ArrayOfArrayOfNumberOnly {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayArrayNumber") @JsonProperty("ArrayArrayNumber")
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber; return arrayArrayNumber;

View File

@ -26,7 +26,7 @@ public class ArrayOfNumberOnly {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayNumber") @JsonProperty("ArrayNumber")
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
return arrayNumber; return arrayNumber;

View File

@ -32,7 +32,7 @@ public class ArrayTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("array_of_string") @JsonProperty("array_of_string")
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
return arrayOfString; return arrayOfString;
@ -49,7 +49,7 @@ public class ArrayTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_integer") @JsonProperty("array_array_of_integer")
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger; return arrayArrayOfInteger;
@ -66,7 +66,7 @@ public class ArrayTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_model") @JsonProperty("array_array_of_model")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel; return arrayArrayOfModel;

View File

@ -38,7 +38,7 @@ public class Capitalization {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("smallCamel") @JsonProperty("smallCamel")
public String getSmallCamel() { public String getSmallCamel() {
return smallCamel; return smallCamel;
@ -55,7 +55,7 @@ public class Capitalization {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("CapitalCamel") @JsonProperty("CapitalCamel")
public String getCapitalCamel() { public String getCapitalCamel() {
return capitalCamel; return capitalCamel;
@ -72,7 +72,7 @@ public class Capitalization {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("small_Snake") @JsonProperty("small_Snake")
public String getSmallSnake() { public String getSmallSnake() {
return smallSnake; return smallSnake;
@ -89,7 +89,7 @@ public class Capitalization {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("Capital_Snake") @JsonProperty("Capital_Snake")
public String getCapitalSnake() { public String getCapitalSnake() {
return capitalSnake; return capitalSnake;
@ -106,7 +106,7 @@ public class Capitalization {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("SCA_ETH_Flow_Points") @JsonProperty("SCA_ETH_Flow_Points")
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
return scAETHFlowPoints; return scAETHFlowPoints;
@ -124,7 +124,7 @@ public class Capitalization {
} }
@ApiModelProperty(example = "null", value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
@JsonProperty("ATT_NAME") @JsonProperty("ATT_NAME")
public String getATTNAME() { public String getATTNAME() {
return ATT_NAME; return ATT_NAME;

View File

@ -24,7 +24,7 @@ public class Cat extends Animal {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("declawed") @JsonProperty("declawed")
public Boolean getDeclawed() { public Boolean getDeclawed() {
return declawed; return declawed;

View File

@ -26,7 +26,7 @@ public class Category {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -43,7 +43,7 @@ public class Category {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;

View File

@ -26,7 +26,7 @@ public class ClassModel {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("_class") @JsonProperty("_class")
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;

View File

@ -23,7 +23,7 @@ public class Client {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("client") @JsonProperty("client")
public String getClient() { public String getClient() {
return client; return client;

View File

@ -24,7 +24,7 @@ public class Dog extends Animal {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("breed") @JsonProperty("breed")
public String getBreed() { public String getBreed() {
return breed; return breed;

View File

@ -91,7 +91,7 @@ public class EnumArrays {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("just_symbol") @JsonProperty("just_symbol")
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
return justSymbol; return justSymbol;
@ -108,7 +108,7 @@ public class EnumArrays {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("array_enum") @JsonProperty("array_enum")
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum; return arrayEnum;

View File

@ -129,7 +129,7 @@ public class EnumTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_string") @JsonProperty("enum_string")
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
return enumString; return enumString;
@ -146,7 +146,7 @@ public class EnumTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_integer") @JsonProperty("enum_integer")
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
return enumInteger; return enumInteger;
@ -163,7 +163,7 @@ public class EnumTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_number") @JsonProperty("enum_number")
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
return enumNumber; return enumNumber;
@ -180,7 +180,7 @@ public class EnumTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("outerEnum") @JsonProperty("outerEnum")
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {
return outerEnum; return outerEnum;

View File

@ -64,7 +64,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("integer") @JsonProperty("integer")
public Integer getInteger() { public Integer getInteger() {
return integer; return integer;
@ -83,7 +83,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("int32") @JsonProperty("int32")
public Integer getInt32() { public Integer getInt32() {
return int32; return int32;
@ -100,7 +100,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("int64") @JsonProperty("int64")
public Long getInt64() { public Long getInt64() {
return int64; return int64;
@ -119,7 +119,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("number") @JsonProperty("number")
public BigDecimal getNumber() { public BigDecimal getNumber() {
return number; return number;
@ -138,7 +138,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("float") @JsonProperty("float")
public Float getFloat() { public Float getFloat() {
return _float; return _float;
@ -157,7 +157,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("double") @JsonProperty("double")
public Double getDouble() { public Double getDouble() {
return _double; return _double;
@ -174,7 +174,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("string") @JsonProperty("string")
public String getString() { public String getString() {
return string; return string;
@ -191,7 +191,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("byte") @JsonProperty("byte")
public byte[] getByte() { public byte[] getByte() {
return _byte; return _byte;
@ -208,7 +208,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("binary") @JsonProperty("binary")
public byte[] getBinary() { public byte[] getBinary() {
return binary; return binary;
@ -225,7 +225,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("date") @JsonProperty("date")
public Date getDate() { public Date getDate() {
return date; return date;
@ -242,7 +242,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
return dateTime; return dateTime;
@ -259,7 +259,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
@ -276,7 +276,7 @@ public class FormatTest {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("password") @JsonProperty("password")
public String getPassword() { public String getPassword() {
return password; return password;

View File

@ -26,7 +26,7 @@ public class HasOnlyReadOnly {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
return bar; return bar;
@ -43,7 +43,7 @@ public class HasOnlyReadOnly {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("foo") @JsonProperty("foo")
public String getFoo() { public String getFoo() {
return foo; return foo;

View File

@ -61,7 +61,7 @@ public class MapTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_of_string") @JsonProperty("map_map_of_string")
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString; return mapMapOfString;
@ -78,7 +78,7 @@ public class MapTest {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("map_of_enum_string") @JsonProperty("map_of_enum_string")
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString; return mapOfEnumString;

View File

@ -35,7 +35,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
@ -52,7 +52,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
return dateTime; return dateTime;
@ -69,7 +69,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("map") @JsonProperty("map")
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {
return map; return map;

View File

@ -29,7 +29,7 @@ public class Model200Response {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public Integer getName() { public Integer getName() {
return name; return name;
@ -46,7 +46,7 @@ public class Model200Response {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("class") @JsonProperty("class")
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;

View File

@ -29,7 +29,7 @@ public class ModelApiResponse {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("code") @JsonProperty("code")
public Integer getCode() { public Integer getCode() {
return code; return code;
@ -46,7 +46,7 @@ public class ModelApiResponse {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("type") @JsonProperty("type")
public String getType() { public String getType() {
return type; return type;
@ -63,7 +63,7 @@ public class ModelApiResponse {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("message") @JsonProperty("message")
public String getMessage() { public String getMessage() {
return message; return message;

View File

@ -26,7 +26,7 @@ public class ModelReturn {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("return") @JsonProperty("return")
public Integer getReturn() { public Integer getReturn() {
return _return; return _return;

View File

@ -35,7 +35,7 @@ public class Name {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
public Integer getName() { public Integer getName() {
return name; return name;
@ -52,7 +52,7 @@ public class Name {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("snake_case") @JsonProperty("snake_case")
public Integer getSnakeCase() { public Integer getSnakeCase() {
return snakeCase; return snakeCase;
@ -69,7 +69,7 @@ public class Name {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("property") @JsonProperty("property")
public String getProperty() { public String getProperty() {
return property; return property;
@ -86,7 +86,7 @@ public class Name {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("123Number") @JsonProperty("123Number")
public Integer get123Number() { public Integer get123Number() {
return _123Number; return _123Number;

View File

@ -24,7 +24,7 @@ public class NumberOnly {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("JustNumber") @JsonProperty("JustNumber")
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {
return justNumber; return justNumber;

View File

@ -73,7 +73,7 @@ public class Order {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -90,7 +90,7 @@ public class Order {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("petId") @JsonProperty("petId")
public Long getPetId() { public Long getPetId() {
return petId; return petId;
@ -107,7 +107,7 @@ public class Order {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("quantity") @JsonProperty("quantity")
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
@ -124,7 +124,7 @@ public class Order {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
@ -142,7 +142,7 @@ public class Order {
} }
@ApiModelProperty(example = "null", value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
@ -159,7 +159,7 @@ public class Order {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("complete") @JsonProperty("complete")
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;

View File

@ -76,7 +76,7 @@ public class Pet {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -93,7 +93,7 @@ public class Pet {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("category") @JsonProperty("category")
public Category getCategory() { public Category getCategory() {
return category; return category;
@ -127,7 +127,7 @@ public class Pet {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
@ -144,7 +144,7 @@ public class Pet {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
@ -162,7 +162,7 @@ public class Pet {
} }
@ApiModelProperty(example = "null", value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;

View File

@ -26,7 +26,7 @@ public class ReadOnlyFirst {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
return bar; return bar;
@ -43,7 +43,7 @@ public class ReadOnlyFirst {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("baz") @JsonProperty("baz")
public String getBaz() { public String getBaz() {
return baz; return baz;

View File

@ -23,7 +23,7 @@ public class SpecialModelName {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("$special[property.name]") @JsonProperty("$special[property.name]")
public Long getSpecialPropertyName() { public Long getSpecialPropertyName() {
return specialPropertyName; return specialPropertyName;

View File

@ -26,7 +26,7 @@ public class Tag {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -43,7 +43,7 @@ public class Tag {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;

View File

@ -44,7 +44,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -61,7 +61,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("username") @JsonProperty("username")
public String getUsername() { public String getUsername() {
return username; return username;
@ -78,7 +78,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("firstName") @JsonProperty("firstName")
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
@ -95,7 +95,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("lastName") @JsonProperty("lastName")
public String getLastName() { public String getLastName() {
return lastName; return lastName;
@ -112,7 +112,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("email") @JsonProperty("email")
public String getEmail() { public String getEmail() {
return email; return email;
@ -129,7 +129,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("password") @JsonProperty("password")
public String getPassword() { public String getPassword() {
return password; return password;
@ -146,7 +146,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("phone") @JsonProperty("phone")
public String getPhone() { public String getPhone() {
return phone; return phone;
@ -164,7 +164,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "User Status") @ApiModelProperty(value = "User Status")
@JsonProperty("userStatus") @JsonProperty("userStatus")
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;

View File

@ -685,12 +685,18 @@ paths:
required: false required: false
type: "integer" type: "integer"
format: "int32" format: "int32"
enum:
- 1
- -2
- name: "enum_query_double" - name: "enum_query_double"
in: "formData" in: "formData"
description: "Query parameter enum test (double)" description: "Query parameter enum test (double)"
required: false required: false
type: "number" type: "number"
format: "double" format: "double"
enum:
- 1.1
- -1.2
responses: responses:
400: 400:
description: "Invalid request" description: "Invalid request"
@ -846,12 +852,12 @@ securityDefinitions:
scopes: scopes:
write:pets: "modify pets in your account" write:pets: "modify pets in your account"
read:pets: "read your pets" read:pets: "read your pets"
http_basic_test:
type: "basic"
api_key: api_key:
type: "apiKey" type: "apiKey"
name: "api_key" name: "api_key"
in: "header" in: "header"
http_basic_test:
type: "basic"
definitions: definitions:
Order: Order:
type: "object" type: "object"