replace tab with 4 spaces (#5174)

This commit is contained in:
wing328 2017-03-23 17:18:01 +08:00 committed by GitHub
parent 43aa4a8569
commit 8fbe82a66b
68 changed files with 390 additions and 384 deletions

View File

@ -29,7 +29,7 @@ public class Category {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -46,7 +46,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

@ -30,7 +30,7 @@ public class ModelApiResponse {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("code") @JsonProperty("code")
public Integer getCode() { public Integer getCode() {
return code; return code;
@ -47,7 +47,7 @@ public class ModelApiResponse {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("type") @JsonProperty("type")
public String getType() { public String getType() {
return type; return type;
@ -64,7 +64,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

@ -66,7 +66,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -83,7 +83,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("petId") @JsonProperty("petId")
public Long getPetId() { public Long getPetId() {
return petId; return petId;
@ -100,7 +100,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("quantity") @JsonProperty("quantity")
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
@ -117,7 +117,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public java.util.Date getShipDate() { public java.util.Date getShipDate() {
return shipDate; return shipDate;
@ -135,7 +135,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
@ -152,7 +152,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("complete") @JsonProperty("complete")
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;

View File

@ -70,7 +70,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -87,7 +87,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("category") @JsonProperty("category")
public Category getCategory() { public Category getCategory() {
return category; return category;
@ -122,7 +122,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
@NotNull @NotNull
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
@ -140,7 +140,7 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
@ -158,7 +158,7 @@ public enum StatusEnum {
} }
@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

@ -29,7 +29,7 @@ public class Tag {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -46,7 +46,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

@ -35,7 +35,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -52,7 +52,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("username") @JsonProperty("username")
public String getUsername() { public String getUsername() {
return username; return username;
@ -69,7 +69,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("firstName") @JsonProperty("firstName")
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
@ -86,7 +86,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("lastName") @JsonProperty("lastName")
public String getLastName() { public String getLastName() {
return lastName; return lastName;
@ -103,7 +103,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("email") @JsonProperty("email")
public String getEmail() { public String getEmail() {
return email; return email;
@ -120,7 +120,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("password") @JsonProperty("password")
public String getPassword() { public String getPassword() {
return password; return password;
@ -137,7 +137,7 @@ public class User {
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("phone") @JsonProperty("phone")
public String getPhone() { public String getPhone() {
return phone; return phone;
@ -155,7 +155,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

@ -108,8 +108,8 @@
"type" : "array", "type" : "array",
"items" : { "items" : {
"type" : "string", "type" : "string",
"enum" : [ "available", "pending", "sold" ], "default" : "available",
"default" : "available" "enum" : [ "available", "pending", "sold" ]
}, },
"collectionFormat" : "csv" "collectionFormat" : "csv"
} ], } ],

View File

@ -2,6 +2,7 @@ package io.swagger.api;
import java.math.BigDecimal; import java.math.BigDecimal;
import io.swagger.model.Client; import io.swagger.model.Client;
import java.util.Date;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import java.io.InputStream; import java.io.InputStream;
@ -42,7 +43,7 @@ public interface FakeApi {
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid username supplied"), @ApiResponse(code = 400, message = "Invalid username supplied"),
@ApiResponse(code = 404, message = "User not found") }) @ApiResponse(code = 404, message = "User not found") })
public void testEndpointParameters(@Multipart(value = "number") BigDecimal number, @Multipart(value = "double") Double _double, @Multipart(value = "pattern_without_delimiter") String patternWithoutDelimiter, @Multipart(value = "byte") byte[] _byte, @Multipart(value = "integer", required = false) Integer integer, @Multipart(value = "int32", required = false) Integer int32, @Multipart(value = "int64", required = false) Long int64, @Multipart(value = "float", required = false) Float _float, @Multipart(value = "string", required = false) String string, @Multipart(value = "binary", required = false) byte[] binary, @Multipart(value = "date", required = false) LocalDate date, @Multipart(value = "dateTime", required = false) javax.xml.datatype.XMLGregorianCalendar dateTime, @Multipart(value = "password", required = false) String password, @Multipart(value = "callback", required = false) String paramCallback); public void testEndpointParameters(@Multipart(value = "number") BigDecimal number, @Multipart(value = "double") Double _double, @Multipart(value = "pattern_without_delimiter") String patternWithoutDelimiter, @Multipart(value = "byte") byte[] _byte, @Multipart(value = "integer", required = false) Integer integer, @Multipart(value = "int32", required = false) Integer int32, @Multipart(value = "int64", required = false) Long int64, @Multipart(value = "float", required = false) Float _float, @Multipart(value = "string", required = false) String string, @Multipart(value = "binary", required = false) byte[] binary, @Multipart(value = "date", required = false) LocalDate date, @Multipart(value = "dateTime", required = false) Date dateTime, @Multipart(value = "password", required = false) String password, @Multipart(value = "callback", required = false) String paramCallback);
@GET @GET
@Path("/fake") @Path("/fake")

View File

@ -91,6 +91,6 @@ public interface UserApi {
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid user supplied"), @ApiResponse(code = 400, message = "Invalid user supplied"),
@ApiResponse(code = 404, message = "User not found") }) @ApiResponse(code = 404, message = "User not found") })
public void updateUser(@Valid @PathParam("username") String username, User body); public void updateUser(@PathParam("username") String username, @Valid User body);
} }

View File

@ -16,9 +16,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Map<String, String> mapProperty = new HashMap<String, String>(); private Map<String, String> mapProperty = new HashMap<String, String>();
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<String, Map<String, String>>(); private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<String, Map<String, String>>();
/** /**

View File

@ -15,9 +15,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Animal { public class Animal {
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
private String className = null; private String className = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String color = "red"; private String color = "red";
/** /**

View File

@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>(); private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
/** /**

View File

@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>(); private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
/** /**

View File

@ -16,11 +16,11 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class ArrayTest { public class ArrayTest {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private List<String> arrayOfString = new ArrayList<String>(); private List<String> arrayOfString = new ArrayList<String>();
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>(); private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>(); private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
/** /**

View File

@ -13,17 +13,17 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Capitalization { public class Capitalization {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String smallCamel = null; private String smallCamel = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String capitalCamel = null; private String capitalCamel = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String smallSnake = null; private String smallSnake = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String capitalSnake = null; private String capitalSnake = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String scAETHFlowPoints = null; private String scAETHFlowPoints = null;
@ApiModelProperty(example = "null", value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
private String ATT_NAME = null; private String ATT_NAME = null;
/** /**

View File

@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Cat extends Animal { public class Cat extends Animal {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Boolean declawed = null; private Boolean declawed = null;
/** /**

View File

@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Category { public class Category {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long id = null; private Long id = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String name = null; private String name = null;
/** /**

View File

@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
@ApiModel(description="Model for testing model with \"_class\" property") @ApiModel(description="Model for testing model with \"_class\" property")
public class ClassModel { public class ClassModel {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String propertyClass = null; private String propertyClass = null;
/** /**

View File

@ -13,7 +13,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Client { public class Client {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String client = null; private String client = null;
/** /**

View File

@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Dog extends Animal { public class Dog extends Animal {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String breed = null; private String breed = null;
/** /**

View File

@ -48,7 +48,7 @@ public enum JustSymbolEnum {
} }
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private JustSymbolEnum justSymbol = null; private JustSymbolEnum justSymbol = null;
@XmlType(name="ArrayEnumEnum") @XmlType(name="ArrayEnumEnum")
@ -83,7 +83,7 @@ public enum ArrayEnumEnum {
} }
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>(); private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
/** /**

View File

@ -47,7 +47,7 @@ public enum EnumStringEnum {
} }
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private EnumStringEnum enumString = null; private EnumStringEnum enumString = null;
@XmlType(name="EnumIntegerEnum") @XmlType(name="EnumIntegerEnum")
@ -82,7 +82,7 @@ public enum EnumIntegerEnum {
} }
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private EnumIntegerEnum enumInteger = null; private EnumIntegerEnum enumInteger = null;
@XmlType(name="EnumNumberEnum") @XmlType(name="EnumNumberEnum")
@ -117,9 +117,9 @@ public enum EnumNumberEnum {
} }
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private EnumNumberEnum enumNumber = null; private EnumNumberEnum enumNumber = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private OuterEnum outerEnum = null; private OuterEnum outerEnum = null;
/** /**

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
import java.util.UUID; import java.util.UUID;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import javax.validation.constraints.*; import javax.validation.constraints.*;
@ -16,31 +17,31 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class FormatTest { public class FormatTest {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer integer = null; private Integer integer = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer int32 = null; private Integer int32 = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long int64 = null; private Long int64 = null;
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
private BigDecimal number = null; private BigDecimal number = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Float _float = null; private Float _float = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Double _double = null; private Double _double = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String string = null; private String string = null;
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
private byte[] _byte = null; private byte[] _byte = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private byte[] binary = null; private byte[] binary = null;
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
private LocalDate date = null; private LocalDate date = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private javax.xml.datatype.XMLGregorianCalendar dateTime = null; private Date dateTime = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private UUID uuid = null; private UUID uuid = null;
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
private String password = null; private String password = null;
/** /**
@ -230,15 +231,15 @@ public class FormatTest {
* Get dateTime * Get dateTime
* @return dateTime * @return dateTime
**/ **/
public javax.xml.datatype.XMLGregorianCalendar getDateTime() { public Date getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) { public void setDateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public FormatTest dateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) { public FormatTest dateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
return this; return this;
} }

View File

@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class HasOnlyReadOnly { public class HasOnlyReadOnly {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String bar = null; private String bar = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String foo = null; private String foo = null;
/** /**

View File

@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class MapTest { public class MapTest {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>(); private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
@XmlType(name="InnerEnum") @XmlType(name="InnerEnum")
@ -51,7 +51,7 @@ public enum InnerEnum {
} }
} }
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>(); private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
/** /**

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.model.Animal; import io.swagger.model.Animal;
import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -18,11 +19,11 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class MixedPropertiesAndAdditionalPropertiesClass { public class MixedPropertiesAndAdditionalPropertiesClass {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private UUID uuid = null; private UUID uuid = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private javax.xml.datatype.XMLGregorianCalendar dateTime = null; private Date dateTime = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Map<String, Animal> map = new HashMap<String, Animal>(); private Map<String, Animal> map = new HashMap<String, Animal>();
/** /**
@ -46,15 +47,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Get dateTime * Get dateTime
* @return dateTime * @return dateTime
**/ **/
public javax.xml.datatype.XMLGregorianCalendar getDateTime() { public Date getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) { public void setDateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public MixedPropertiesAndAdditionalPropertiesClass dateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) { public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
return this; return this;
} }

View File

@ -15,9 +15,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
@ApiModel(description="Model for testing model name starting with number") @ApiModel(description="Model for testing model name starting with number")
public class Model200Response { public class Model200Response {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer name = null; private Integer name = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String propertyClass = null; private String propertyClass = null;
/** /**

View File

@ -13,11 +13,11 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class ModelApiResponse { public class ModelApiResponse {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer code = null; private Integer code = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String type = null; private String type = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String message = null; private String message = null;
/** /**

View File

@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
@ApiModel(description="Model for testing reserved words") @ApiModel(description="Model for testing reserved words")
public class ModelReturn { public class ModelReturn {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer _return = null; private Integer _return = null;
/** /**

View File

@ -15,13 +15,13 @@ import javax.xml.bind.annotation.XmlEnumValue;
@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 { public class Name {
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
private Integer name = null; private Integer name = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer snakeCase = null; private Integer snakeCase = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String property = null; private String property = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer _123Number = null; private Integer _123Number = null;
/** /**

View File

@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class NumberOnly { public class NumberOnly {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private BigDecimal justNumber = null; private BigDecimal justNumber = null;
/** /**

View File

@ -1,5 +1,6 @@
package io.swagger.model; package io.swagger.model;
import java.util.Date;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
@ -13,14 +14,14 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Order { public class Order {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long id = null; private Long id = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long petId = null; private Long petId = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Integer quantity = null; private Integer quantity = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private javax.xml.datatype.XMLGregorianCalendar shipDate = null; private Date shipDate = null;
@XmlType(name="StatusEnum") @XmlType(name="StatusEnum")
@XmlEnum(String.class) @XmlEnum(String.class)
@ -54,9 +55,9 @@ public enum StatusEnum {
} }
} }
@ApiModelProperty(example = "null", value = "Order Status") @ApiModelProperty(value = "Order Status")
private StatusEnum status = null; private StatusEnum status = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Boolean complete = false; private Boolean complete = false;
/** /**
@ -114,15 +115,15 @@ public enum StatusEnum {
* Get shipDate * Get shipDate
* @return shipDate * @return shipDate
**/ **/
public javax.xml.datatype.XMLGregorianCalendar getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) { public void setShipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }
public Order shipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) { public Order shipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
return this; return this;
} }

View File

@ -17,15 +17,15 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Pet { public class Pet {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long id = null; private Long id = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Category category = null; private Category category = null;
@ApiModelProperty(example = "doggie", required = true, value = "") @ApiModelProperty(example = "doggie", required = true, value = "")
private String name = null; private String name = null;
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
private List<String> photoUrls = new ArrayList<String>(); private List<String> photoUrls = new ArrayList<String>();
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private List<Tag> tags = new ArrayList<Tag>(); private List<Tag> tags = new ArrayList<Tag>();
@XmlType(name="StatusEnum") @XmlType(name="StatusEnum")
@ -60,7 +60,7 @@ public enum StatusEnum {
} }
} }
@ApiModelProperty(example = "null", value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
private StatusEnum status = null; private StatusEnum status = null;
/** /**

View File

@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class ReadOnlyFirst { public class ReadOnlyFirst {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String bar = null; private String bar = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String baz = null; private String baz = null;
/** /**

View File

@ -13,7 +13,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class SpecialModelName { public class SpecialModelName {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long specialPropertyName = null; private Long specialPropertyName = null;
/** /**

View File

@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class Tag { public class Tag {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long id = null; private Long id = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String name = null; private String name = null;
/** /**

View File

@ -13,21 +13,21 @@ import javax.xml.bind.annotation.XmlEnumValue;
public class User { public class User {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private Long id = null; private Long id = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String username = null; private String username = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String firstName = null; private String firstName = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String lastName = null; private String lastName = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String email = null; private String email = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String password = null; private String password = null;
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
private String phone = null; private String phone = null;
@ApiModelProperty(example = "null", value = "User Status") @ApiModelProperty(value = "User Status")
private Integer userStatus = null; private Integer userStatus = null;
/** /**

View File

@ -3,6 +3,7 @@ package io.swagger.api.impl;
import io.swagger.api.*; import io.swagger.api.*;
import java.math.BigDecimal; import java.math.BigDecimal;
import io.swagger.model.Client; import io.swagger.model.Client;
import java.util.Date;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import java.io.InputStream; import java.io.InputStream;
@ -25,7 +26,7 @@ public class FakeApiServiceImpl implements FakeApi {
return null; return null;
} }
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, javax.xml.datatype.XMLGregorianCalendar dateTime, String password, String paramCallback) { public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, LocalDate date, Date dateTime, String password, String paramCallback) {
// TODO: Implement... // TODO: Implement...

View File

@ -27,6 +27,7 @@ package io.swagger.api;
import java.math.BigDecimal; import java.math.BigDecimal;
import io.swagger.model.Client; import io.swagger.model.Client;
import java.util.Date;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import org.junit.Test; import org.junit.Test;
import org.junit.Before; import org.junit.Before;
@ -108,7 +109,7 @@ public class FakeApiTest {
String string = null; String string = null;
byte[] binary = null; byte[] binary = null;
LocalDate date = null; LocalDate date = null;
javax.xml.datatype.XMLGregorianCalendar dateTime = null; Date dateTime = null;
String password = null; String password = null;
String paramCallback = null; String paramCallback = null;
//api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); //api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);

View File

@ -18,7 +18,7 @@ public class Category {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -30,7 +30,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

@ -19,7 +19,7 @@ public class ModelApiResponse {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("code") @JsonProperty("code")
public Integer getCode() { public Integer getCode() {
return code; return code;
@ -31,7 +31,7 @@ public class ModelApiResponse {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("type") @JsonProperty("type")
public String getType() { public String getType() {
return type; return type;
@ -43,7 +43,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

@ -47,7 +47,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -59,7 +59,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("petId") @JsonProperty("petId")
public Long getPetId() { public Long getPetId() {
return petId; return petId;
@ -71,7 +71,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("quantity") @JsonProperty("quantity")
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
@ -83,7 +83,7 @@ public class Order {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
@ -96,7 +96,7 @@ public class Order {
* Order Status * Order Status
**/ **/
@ApiModelProperty(example = "null", value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
@ -108,7 +108,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

@ -49,7 +49,7 @@ public class Pet {
/** /**
**/ **/
@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 Pet {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("category") @JsonProperty("category")
public Category getCategory() { public Category getCategory() {
return category; return category;
@ -86,7 +86,7 @@ public class Pet {
/** /**
**/ **/
@ApiModelProperty(example = "null", required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
@NotNull @NotNull
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
@ -99,7 +99,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;
@ -112,7 +112,7 @@ public class Pet {
* pet status in the store * pet status in the store
**/ **/
@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

@ -18,7 +18,7 @@ public class Tag {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -30,7 +30,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

@ -24,7 +24,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
@ -36,7 +36,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("username") @JsonProperty("username")
public String getUsername() { public String getUsername() {
return username; return username;
@ -48,7 +48,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("firstName") @JsonProperty("firstName")
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
@ -60,7 +60,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("lastName") @JsonProperty("lastName")
public String getLastName() { public String getLastName() {
return lastName; return lastName;
@ -72,7 +72,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("email") @JsonProperty("email")
public String getEmail() { public String getEmail() {
return email; return email;
@ -84,7 +84,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("password") @JsonProperty("password")
public String getPassword() { public String getPassword() {
return password; return password;
@ -96,7 +96,7 @@ public class User {
/** /**
**/ **/
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(value = "")
@JsonProperty("phone") @JsonProperty("phone")
public String getPhone() { public String getPhone() {
return phone; return phone;
@ -109,7 +109,7 @@ public class User {
* User Status * User Status
**/ **/
@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

@ -727,8 +727,8 @@
}, },
"post" : { "post" : {
"tags" : [ "fake" ], "tags" : [ "fake" ],
"summary" : "Fake endpoint for testing various parameters\n???\n?????????\n?? ?? ???\n", "summary" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n",
"description" : "Fake endpoint for testing various parameters\n???\n?????????\n?? ?? ???\n", "description" : "Fake endpoint for testing various parameters\n假端點\n偽のエンドポイント\n가짜 엔드 포인트\n",
"operationId" : "testEndpointParameters", "operationId" : "testEndpointParameters",
"consumes" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], "consumes" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ],
"produces" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ], "produces" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ],