forked from loafle/openapi-generator-original
replace tab with 4 spaces (#5174)
This commit is contained in:
parent
43aa4a8569
commit
8fbe82a66b
@ -29,7 +29,7 @@ public class Category {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -46,7 +46,7 @@ public class Category {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
@ -30,7 +30,7 @@ public class ModelApiResponse {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
@ -47,7 +47,7 @@ public class ModelApiResponse {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
@ -64,7 +64,7 @@ public class ModelApiResponse {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
|
@ -66,7 +66,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -83,7 +83,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
@ -100,7 +100,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
@ -117,7 +117,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("shipDate")
|
||||
public java.util.Date getShipDate() {
|
||||
return shipDate;
|
||||
@ -135,7 +135,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "Order Status")
|
||||
@ApiModelProperty(value = "Order Status")
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
@ -152,7 +152,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("complete")
|
||||
public Boolean getComplete() {
|
||||
return complete;
|
||||
|
@ -70,7 +70,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -87,7 +87,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
@ -122,7 +122,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public List<String> getPhotoUrls() {
|
||||
@ -140,7 +140,7 @@ public enum StatusEnum {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
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")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
|
@ -29,7 +29,7 @@ public class Tag {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -46,7 +46,7 @@ public class Tag {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
@ -35,7 +35,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -52,7 +52,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
@ -69,7 +69,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
@ -86,7 +86,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
@ -103,7 +103,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
@ -120,7 +120,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
@ -137,7 +137,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
@ -155,7 +155,7 @@ public class User {
|
||||
}
|
||||
|
||||
|
||||
@ApiModelProperty(example = "null", value = "User Status")
|
||||
@ApiModelProperty(value = "User Status")
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
|
@ -108,8 +108,8 @@
|
||||
"type" : "array",
|
||||
"items" : {
|
||||
"type" : "string",
|
||||
"enum" : [ "available", "pending", "sold" ],
|
||||
"default" : "available"
|
||||
"default" : "available",
|
||||
"enum" : [ "available", "pending", "sold" ]
|
||||
},
|
||||
"collectionFormat" : "csv"
|
||||
} ],
|
||||
|
@ -2,6 +2,7 @@ package io.swagger.api;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.model.Client;
|
||||
import java.util.Date;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
import java.io.InputStream;
|
||||
@ -42,7 +43,7 @@ public interface FakeApi {
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 400, message = "Invalid username supplied"),
|
||||
@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
|
||||
@Path("/fake")
|
||||
|
@ -91,6 +91,6 @@ public interface UserApi {
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 400, message = "Invalid user supplied"),
|
||||
@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);
|
||||
}
|
||||
|
||||
|
@ -16,9 +16,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class AdditionalPropertiesClass {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
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>>();
|
||||
|
||||
/**
|
||||
|
@ -15,9 +15,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Animal {
|
||||
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String className = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String color = "red";
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class ArrayOfNumberOnly {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||
|
||||
/**
|
||||
|
@ -16,11 +16,11 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class ArrayTest {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private List<String> arrayOfString = new ArrayList<String>();
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||
|
||||
/**
|
||||
|
@ -13,17 +13,17 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Capitalization {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String smallCamel = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String capitalCamel = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String smallSnake = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String capitalSnake = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String scAETHFlowPoints = null;
|
||||
@ApiModelProperty(example = "null", value = "Name of the pet ")
|
||||
@ApiModelProperty(value = "Name of the pet ")
|
||||
private String ATT_NAME = null;
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Cat extends Animal {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean declawed = null;
|
||||
|
||||
/**
|
||||
|
@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Category {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long id = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String name = null;
|
||||
|
||||
/**
|
||||
|
@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
@ApiModel(description="Model for testing model with \"_class\" property")
|
||||
public class ClassModel {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String propertyClass = null;
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Client {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String client = null;
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Dog extends Animal {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String breed = null;
|
||||
|
||||
/**
|
||||
|
@ -48,7 +48,7 @@ public enum JustSymbolEnum {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private JustSymbolEnum justSymbol = null;
|
||||
|
||||
@XmlType(name="ArrayEnumEnum")
|
||||
@ -83,7 +83,7 @@ public enum ArrayEnumEnum {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||
|
||||
/**
|
||||
|
@ -47,7 +47,7 @@ public enum EnumStringEnum {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private EnumStringEnum enumString = null;
|
||||
|
||||
@XmlType(name="EnumIntegerEnum")
|
||||
@ -82,7 +82,7 @@ public enum EnumIntegerEnum {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private EnumIntegerEnum enumInteger = null;
|
||||
|
||||
@XmlType(name="EnumNumberEnum")
|
||||
@ -117,9 +117,9 @@ public enum EnumNumberEnum {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private EnumNumberEnum enumNumber = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private OuterEnum outerEnum = null;
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,7 @@
|
||||
package io.swagger.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
import org.joda.time.LocalDate;
|
||||
import javax.validation.constraints.*;
|
||||
@ -16,31 +17,31 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class FormatTest {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer integer = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer int32 = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long int64 = null;
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private BigDecimal number = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Float _float = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Double _double = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String string = null;
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private byte[] _byte = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private byte[] binary = null;
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private LocalDate date = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
private javax.xml.datatype.XMLGregorianCalendar dateTime = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Date dateTime = null;
|
||||
@ApiModelProperty(value = "")
|
||||
private UUID uuid = null;
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private String password = null;
|
||||
|
||||
/**
|
||||
@ -230,15 +231,15 @@ public class FormatTest {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
**/
|
||||
public javax.xml.datatype.XMLGregorianCalendar getDateTime() {
|
||||
public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
|
||||
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||
public void setDateTime(Date dateTime) {
|
||||
this.dateTime = dateTime;
|
||||
}
|
||||
|
||||
public FormatTest dateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||
public FormatTest dateTime(Date dateTime) {
|
||||
this.dateTime = dateTime;
|
||||
return this;
|
||||
}
|
||||
|
@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class HasOnlyReadOnly {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String bar = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String foo = null;
|
||||
|
||||
/**
|
||||
|
@ -16,7 +16,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class MapTest {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||
|
||||
@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>();
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,7 @@
|
||||
package io.swagger.model;
|
||||
|
||||
import io.swagger.model.Animal;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -18,11 +19,11 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private UUID uuid = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
private javax.xml.datatype.XMLGregorianCalendar dateTime = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Date dateTime = null;
|
||||
@ApiModelProperty(value = "")
|
||||
private Map<String, Animal> map = new HashMap<String, Animal>();
|
||||
|
||||
/**
|
||||
@ -46,15 +47,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
**/
|
||||
public javax.xml.datatype.XMLGregorianCalendar getDateTime() {
|
||||
public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
|
||||
public void setDateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||
public void setDateTime(Date dateTime) {
|
||||
this.dateTime = dateTime;
|
||||
}
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass dateTime(javax.xml.datatype.XMLGregorianCalendar dateTime) {
|
||||
public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) {
|
||||
this.dateTime = dateTime;
|
||||
return this;
|
||||
}
|
||||
|
@ -15,9 +15,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
@ApiModel(description="Model for testing model name starting with number")
|
||||
public class Model200Response {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer name = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String propertyClass = null;
|
||||
|
||||
/**
|
||||
|
@ -13,11 +13,11 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class ModelApiResponse {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer code = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String type = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String message = null;
|
||||
|
||||
/**
|
||||
|
@ -15,7 +15,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
@ApiModel(description="Model for testing reserved words")
|
||||
public class ModelReturn {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer _return = null;
|
||||
|
||||
/**
|
||||
|
@ -15,13 +15,13 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
@ApiModel(description="Model for testing model name same as property name")
|
||||
public class Name {
|
||||
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private Integer name = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer snakeCase = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String property = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer _123Number = null;
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class NumberOnly {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private BigDecimal justNumber = null;
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,6 @@
|
||||
package io.swagger.model;
|
||||
|
||||
import java.util.Date;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -13,14 +14,14 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Order {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long id = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long petId = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer quantity = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
private javax.xml.datatype.XMLGregorianCalendar shipDate = null;
|
||||
@ApiModelProperty(value = "")
|
||||
private Date shipDate = null;
|
||||
|
||||
@XmlType(name="StatusEnum")
|
||||
@XmlEnum(String.class)
|
||||
@ -54,9 +55,9 @@ public enum StatusEnum {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiModelProperty(example = "null", value = "Order Status")
|
||||
@ApiModelProperty(value = "Order Status")
|
||||
private StatusEnum status = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Boolean complete = false;
|
||||
|
||||
/**
|
||||
@ -114,15 +115,15 @@ public enum StatusEnum {
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
**/
|
||||
public javax.xml.datatype.XMLGregorianCalendar getShipDate() {
|
||||
public Date getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
|
||||
public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
|
||||
public void setShipDate(Date shipDate) {
|
||||
this.shipDate = shipDate;
|
||||
}
|
||||
|
||||
public Order shipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
|
||||
public Order shipDate(Date shipDate) {
|
||||
this.shipDate = shipDate;
|
||||
return this;
|
||||
}
|
||||
|
@ -17,15 +17,15 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Pet {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long id = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Category category = null;
|
||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||
private String name = null;
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
private List<String> photoUrls = new ArrayList<String>();
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private List<Tag> tags = new ArrayList<Tag>();
|
||||
|
||||
@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;
|
||||
|
||||
/**
|
||||
|
@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class ReadOnlyFirst {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String bar = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String baz = null;
|
||||
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class SpecialModelName {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long specialPropertyName = null;
|
||||
|
||||
/**
|
||||
|
@ -13,9 +13,9 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class Tag {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long id = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String name = null;
|
||||
|
||||
/**
|
||||
|
@ -13,21 +13,21 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||
|
||||
public class User {
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private Long id = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String username = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String firstName = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String lastName = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String email = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String password = null;
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
private String phone = null;
|
||||
@ApiModelProperty(example = "null", value = "User Status")
|
||||
@ApiModelProperty(value = "User Status")
|
||||
private Integer userStatus = null;
|
||||
|
||||
/**
|
||||
|
@ -3,6 +3,7 @@ package io.swagger.api.impl;
|
||||
import io.swagger.api.*;
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.model.Client;
|
||||
import java.util.Date;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
import java.io.InputStream;
|
||||
@ -25,7 +26,7 @@ public class FakeApiServiceImpl implements FakeApi {
|
||||
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...
|
||||
|
||||
|
||||
|
@ -27,6 +27,7 @@ package io.swagger.api;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.model.Client;
|
||||
import java.util.Date;
|
||||
import org.joda.time.LocalDate;
|
||||
import org.junit.Test;
|
||||
import org.junit.Before;
|
||||
@ -108,7 +109,7 @@ public class FakeApiTest {
|
||||
String string = null;
|
||||
byte[] binary = null;
|
||||
LocalDate date = null;
|
||||
javax.xml.datatype.XMLGregorianCalendar dateTime = null;
|
||||
Date dateTime = null;
|
||||
String password = null;
|
||||
String paramCallback = null;
|
||||
//api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
||||
|
@ -18,7 +18,7 @@ public class Category {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -30,7 +30,7 @@ public class Category {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
@ -19,7 +19,7 @@ public class ModelApiResponse {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
@ -31,7 +31,7 @@ public class ModelApiResponse {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
@ -43,7 +43,7 @@ public class ModelApiResponse {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
|
@ -47,7 +47,7 @@ public class Order {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -59,7 +59,7 @@ public class Order {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
@ -71,7 +71,7 @@ public class Order {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
@ -83,7 +83,7 @@ public class Order {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("shipDate")
|
||||
public Date getShipDate() {
|
||||
return shipDate;
|
||||
@ -96,7 +96,7 @@ public class Order {
|
||||
* Order Status
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "Order Status")
|
||||
@ApiModelProperty(value = "Order Status")
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
@ -108,7 +108,7 @@ public class Order {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("complete")
|
||||
public Boolean getComplete() {
|
||||
return complete;
|
||||
|
@ -49,7 +49,7 @@ public class Pet {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -61,7 +61,7 @@ public class Pet {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
@ -86,7 +86,7 @@ public class Pet {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", required = true, value = "")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public List<String> getPhotoUrls() {
|
||||
@ -99,7 +99,7 @@ public class Pet {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
return tags;
|
||||
@ -112,7 +112,7 @@ public class Pet {
|
||||
* pet status in the store
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "pet status in the store")
|
||||
@ApiModelProperty(value = "pet status in the store")
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
|
@ -18,7 +18,7 @@ public class Tag {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -30,7 +30,7 @@ public class Tag {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
|
@ -24,7 +24,7 @@ public class User {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
@ -36,7 +36,7 @@ public class User {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
@ -48,7 +48,7 @@ public class User {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
@ -60,7 +60,7 @@ public class User {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
@ -72,7 +72,7 @@ public class User {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
@ -84,7 +84,7 @@ public class User {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
@ -96,7 +96,7 @@ public class User {
|
||||
/**
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
@ -109,7 +109,7 @@ public class User {
|
||||
* User Status
|
||||
**/
|
||||
|
||||
@ApiModelProperty(example = "null", value = "User Status")
|
||||
@ApiModelProperty(value = "User Status")
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
|
@ -727,8 +727,8 @@
|
||||
},
|
||||
"post" : {
|
||||
"tags" : [ "fake" ],
|
||||
"summary" : "Fake endpoint for testing various parameters\n???\n?????????\n?? ?? ???\n",
|
||||
"description" : "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",
|
||||
"operationId" : "testEndpointParameters",
|
||||
"consumes" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ],
|
||||
"produces" : [ "application/xml; charset=utf-8", "application/json; charset=utf-8" ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user