forked from loafle/openapi-generator-original
[Java][JAX-RS-CXF] Add JsonProperty to POJO (#6710)
* Included Open Systems International in the list of companies using Swagger Codegen * Force Jackson to use the real names of the properties of the Data type defined in the YAML * Update of the Petstore CXF server sample * Update of the Petstore CXF client sample * Update of the Petstore CXF server annotated base path sample * Update of the Petstore CXF server non spring application sample * Changed {{name}} for {{baseName}} following the correction posted by @wing328 * Update of the Petstore CXF server sample
This commit is contained in:
parent
e4abddf253
commit
d37894199b
@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
{{#withXml}}
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@ -46,6 +47,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {
|
||||
{{/maximum}}
|
||||
* @return {{name}}
|
||||
**/
|
||||
@JsonProperty("{{baseName}}")
|
||||
{{#vendorExtensions.extraAnnotation}}
|
||||
{{{vendorExtensions.extraAnnotation}}}
|
||||
{{/vendorExtensions.extraAnnotation}}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A category for a pet")
|
||||
public class Category {
|
||||
@ -24,6 +25,7 @@ public class Category {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class Category {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="Describes the result of uploading an image resource")
|
||||
public class ModelApiResponse {
|
||||
@ -26,6 +27,7 @@ public class ModelApiResponse {
|
||||
* Get code
|
||||
* @return code
|
||||
**/
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@ -43,6 +45,7 @@ public class ModelApiResponse {
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@ -60,6 +63,7 @@ public class ModelApiResponse {
|
||||
* Get message
|
||||
* @return message
|
||||
**/
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="An order for a pets from the pet store")
|
||||
public class Order {
|
||||
@ -66,6 +67,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -83,6 +85,7 @@ public enum StatusEnum {
|
||||
* Get petId
|
||||
* @return petId
|
||||
**/
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
}
|
||||
@ -100,6 +103,7 @@ public enum StatusEnum {
|
||||
* Get quantity
|
||||
* @return quantity
|
||||
**/
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
@ -117,6 +121,7 @@ public enum StatusEnum {
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
**/
|
||||
@JsonProperty("shipDate")
|
||||
public Date getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
@ -134,6 +139,7 @@ public enum StatusEnum {
|
||||
* Order Status
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@ -151,6 +157,7 @@ public enum StatusEnum {
|
||||
* Get complete
|
||||
* @return complete
|
||||
**/
|
||||
@JsonProperty("complete")
|
||||
public Boolean isComplete() {
|
||||
return complete;
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A pet for sale in the pet store")
|
||||
public class Pet {
|
||||
@ -69,6 +70,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -86,6 +88,7 @@ public enum StatusEnum {
|
||||
* Get category
|
||||
* @return category
|
||||
**/
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
@ -103,6 +106,7 @@ public enum StatusEnum {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
return name;
|
||||
@ -121,6 +125,7 @@ public enum StatusEnum {
|
||||
* Get photoUrls
|
||||
* @return photoUrls
|
||||
**/
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public List<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
@ -144,6 +149,7 @@ public enum StatusEnum {
|
||||
* Get tags
|
||||
* @return tags
|
||||
**/
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
@ -166,6 +172,7 @@ public enum StatusEnum {
|
||||
* pet status in the store
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A tag for a pet")
|
||||
public class Tag {
|
||||
@ -24,6 +25,7 @@ public class Tag {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class Tag {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A User who is purchasing from the pet store")
|
||||
public class User {
|
||||
@ -36,6 +37,7 @@ public class User {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -53,6 +55,7 @@ public class User {
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@ -70,6 +73,7 @@ public class User {
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
@ -87,6 +91,7 @@ public class User {
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
@ -104,6 +109,7 @@ public class User {
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@ -121,6 +127,7 @@ public class User {
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@ -138,6 +145,7 @@ public class User {
|
||||
* Get phone
|
||||
* @return phone
|
||||
**/
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
@ -155,6 +163,7 @@ public class User {
|
||||
* User Status
|
||||
* @return userStatus
|
||||
**/
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A category for a pet")
|
||||
public class Category {
|
||||
@ -24,6 +25,7 @@ public class Category {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class Category {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="Describes the result of uploading an image resource")
|
||||
public class ModelApiResponse {
|
||||
@ -26,6 +27,7 @@ public class ModelApiResponse {
|
||||
* Get code
|
||||
* @return code
|
||||
**/
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@ -43,6 +45,7 @@ public class ModelApiResponse {
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@ -60,6 +63,7 @@ public class ModelApiResponse {
|
||||
* Get message
|
||||
* @return message
|
||||
**/
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="An order for a pets from the pet store")
|
||||
public class Order {
|
||||
@ -66,6 +67,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -83,6 +85,7 @@ public enum StatusEnum {
|
||||
* Get petId
|
||||
* @return petId
|
||||
**/
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
}
|
||||
@ -100,6 +103,7 @@ public enum StatusEnum {
|
||||
* Get quantity
|
||||
* @return quantity
|
||||
**/
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
@ -117,6 +121,7 @@ public enum StatusEnum {
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
**/
|
||||
@JsonProperty("shipDate")
|
||||
public Date getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
@ -134,6 +139,7 @@ public enum StatusEnum {
|
||||
* Order Status
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@ -151,6 +157,7 @@ public enum StatusEnum {
|
||||
* Get complete
|
||||
* @return complete
|
||||
**/
|
||||
@JsonProperty("complete")
|
||||
public Boolean isComplete() {
|
||||
return complete;
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A pet for sale in the pet store")
|
||||
public class Pet {
|
||||
@ -69,6 +70,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -86,6 +88,7 @@ public enum StatusEnum {
|
||||
* Get category
|
||||
* @return category
|
||||
**/
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
@ -103,6 +106,7 @@ public enum StatusEnum {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
return name;
|
||||
@ -121,6 +125,7 @@ public enum StatusEnum {
|
||||
* Get photoUrls
|
||||
* @return photoUrls
|
||||
**/
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public List<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
@ -144,6 +149,7 @@ public enum StatusEnum {
|
||||
* Get tags
|
||||
* @return tags
|
||||
**/
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
@ -166,6 +172,7 @@ public enum StatusEnum {
|
||||
* pet status in the store
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A tag for a pet")
|
||||
public class Tag {
|
||||
@ -24,6 +25,7 @@ public class Tag {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class Tag {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A User who is purchasing from the pet store")
|
||||
public class User {
|
||||
@ -36,6 +37,7 @@ public class User {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -53,6 +55,7 @@ public class User {
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@ -70,6 +73,7 @@ public class User {
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
@ -87,6 +91,7 @@ public class User {
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
@ -104,6 +109,7 @@ public class User {
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@ -121,6 +127,7 @@ public class User {
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@ -138,6 +145,7 @@ public class User {
|
||||
* Get phone
|
||||
* @return phone
|
||||
**/
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
@ -155,6 +163,7 @@ public class User {
|
||||
* User Status
|
||||
* @return userStatus
|
||||
**/
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A category for a pet")
|
||||
public class Category {
|
||||
@ -24,6 +25,7 @@ public class Category {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class Category {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="Describes the result of uploading an image resource")
|
||||
public class ModelApiResponse {
|
||||
@ -26,6 +27,7 @@ public class ModelApiResponse {
|
||||
* Get code
|
||||
* @return code
|
||||
**/
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@ -43,6 +45,7 @@ public class ModelApiResponse {
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@ -60,6 +63,7 @@ public class ModelApiResponse {
|
||||
* Get message
|
||||
* @return message
|
||||
**/
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="An order for a pets from the pet store")
|
||||
public class Order {
|
||||
@ -66,6 +67,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -83,6 +85,7 @@ public enum StatusEnum {
|
||||
* Get petId
|
||||
* @return petId
|
||||
**/
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
}
|
||||
@ -100,6 +103,7 @@ public enum StatusEnum {
|
||||
* Get quantity
|
||||
* @return quantity
|
||||
**/
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
@ -117,6 +121,7 @@ public enum StatusEnum {
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
**/
|
||||
@JsonProperty("shipDate")
|
||||
public Date getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
@ -134,6 +139,7 @@ public enum StatusEnum {
|
||||
* Order Status
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@ -151,6 +157,7 @@ public enum StatusEnum {
|
||||
* Get complete
|
||||
* @return complete
|
||||
**/
|
||||
@JsonProperty("complete")
|
||||
public Boolean isComplete() {
|
||||
return complete;
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A pet for sale in the pet store")
|
||||
public class Pet {
|
||||
@ -69,6 +70,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -86,6 +88,7 @@ public enum StatusEnum {
|
||||
* Get category
|
||||
* @return category
|
||||
**/
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
@ -103,6 +106,7 @@ public enum StatusEnum {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
return name;
|
||||
@ -121,6 +125,7 @@ public enum StatusEnum {
|
||||
* Get photoUrls
|
||||
* @return photoUrls
|
||||
**/
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public List<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
@ -144,6 +149,7 @@ public enum StatusEnum {
|
||||
* Get tags
|
||||
* @return tags
|
||||
**/
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
@ -166,6 +172,7 @@ public enum StatusEnum {
|
||||
* pet status in the store
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A tag for a pet")
|
||||
public class Tag {
|
||||
@ -24,6 +25,7 @@ public class Tag {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class Tag {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="A User who is purchasing from the pet store")
|
||||
public class User {
|
||||
@ -36,6 +37,7 @@ public class User {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -53,6 +55,7 @@ public class User {
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@ -70,6 +73,7 @@ public class User {
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
@ -87,6 +91,7 @@ public class User {
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
@ -104,6 +109,7 @@ public class User {
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@ -121,6 +127,7 @@ public class User {
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@ -138,6 +145,7 @@ public class User {
|
||||
* Get phone
|
||||
* @return phone
|
||||
**/
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
@ -155,6 +163,7 @@ public class User {
|
||||
* User Status
|
||||
* @return userStatus
|
||||
**/
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class AdditionalPropertiesClass {
|
||||
|
||||
@ -25,6 +26,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapProperty
|
||||
* @return mapProperty
|
||||
**/
|
||||
@JsonProperty("map_property")
|
||||
public Map<String, String> getMapProperty() {
|
||||
return mapProperty;
|
||||
}
|
||||
@ -47,6 +49,7 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapOfMapProperty
|
||||
* @return mapOfMapProperty
|
||||
**/
|
||||
@JsonProperty("map_of_map_property")
|
||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||
return mapOfMapProperty;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Animal {
|
||||
|
||||
@ -24,6 +25,7 @@ public class Animal {
|
||||
* Get className
|
||||
* @return className
|
||||
**/
|
||||
@JsonProperty("className")
|
||||
@NotNull
|
||||
public String getClassName() {
|
||||
return className;
|
||||
@ -42,6 +44,7 @@ public class Animal {
|
||||
* Get color
|
||||
* @return color
|
||||
**/
|
||||
@JsonProperty("color")
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class AnimalFarm extends ArrayList<Animal> {
|
||||
|
||||
|
@ -13,6 +13,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
|
||||
@ -23,6 +24,7 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
* Get arrayArrayNumber
|
||||
* @return arrayArrayNumber
|
||||
**/
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class ArrayOfNumberOnly {
|
||||
|
||||
@ -23,6 +24,7 @@ public class ArrayOfNumberOnly {
|
||||
* Get arrayNumber
|
||||
* @return arrayNumber
|
||||
**/
|
||||
@JsonProperty("ArrayNumber")
|
||||
public List<BigDecimal> getArrayNumber() {
|
||||
return arrayNumber;
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class ArrayTest {
|
||||
|
||||
@ -27,6 +28,7 @@ public class ArrayTest {
|
||||
* Get arrayOfString
|
||||
* @return arrayOfString
|
||||
**/
|
||||
@JsonProperty("array_of_string")
|
||||
public List<String> getArrayOfString() {
|
||||
return arrayOfString;
|
||||
}
|
||||
@ -49,6 +51,7 @@ public class ArrayTest {
|
||||
* Get arrayArrayOfInteger
|
||||
* @return arrayArrayOfInteger
|
||||
**/
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public List<List<Long>> getArrayArrayOfInteger() {
|
||||
return arrayArrayOfInteger;
|
||||
}
|
||||
@ -71,6 +74,7 @@ public class ArrayTest {
|
||||
* Get arrayArrayOfModel
|
||||
* @return arrayArrayOfModel
|
||||
**/
|
||||
@JsonProperty("array_array_of_model")
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Capitalization {
|
||||
|
||||
@ -30,6 +31,7 @@ public class Capitalization {
|
||||
* Get smallCamel
|
||||
* @return smallCamel
|
||||
**/
|
||||
@JsonProperty("smallCamel")
|
||||
public String getSmallCamel() {
|
||||
return smallCamel;
|
||||
}
|
||||
@ -47,6 +49,7 @@ public class Capitalization {
|
||||
* Get capitalCamel
|
||||
* @return capitalCamel
|
||||
**/
|
||||
@JsonProperty("CapitalCamel")
|
||||
public String getCapitalCamel() {
|
||||
return capitalCamel;
|
||||
}
|
||||
@ -64,6 +67,7 @@ public class Capitalization {
|
||||
* Get smallSnake
|
||||
* @return smallSnake
|
||||
**/
|
||||
@JsonProperty("small_Snake")
|
||||
public String getSmallSnake() {
|
||||
return smallSnake;
|
||||
}
|
||||
@ -81,6 +85,7 @@ public class Capitalization {
|
||||
* Get capitalSnake
|
||||
* @return capitalSnake
|
||||
**/
|
||||
@JsonProperty("Capital_Snake")
|
||||
public String getCapitalSnake() {
|
||||
return capitalSnake;
|
||||
}
|
||||
@ -98,6 +103,7 @@ public class Capitalization {
|
||||
* Get scAETHFlowPoints
|
||||
* @return scAETHFlowPoints
|
||||
**/
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public String getScAETHFlowPoints() {
|
||||
return scAETHFlowPoints;
|
||||
}
|
||||
@ -115,6 +121,7 @@ public class Capitalization {
|
||||
* Name of the pet
|
||||
* @return ATT_NAME
|
||||
**/
|
||||
@JsonProperty("ATT_NAME")
|
||||
public String getATTNAME() {
|
||||
return ATT_NAME;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Cat extends Animal {
|
||||
|
||||
@ -21,6 +22,7 @@ public class Cat extends Animal {
|
||||
* Get declawed
|
||||
* @return declawed
|
||||
**/
|
||||
@JsonProperty("declawed")
|
||||
public Boolean isDeclawed() {
|
||||
return declawed;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Category {
|
||||
|
||||
@ -22,6 +23,7 @@ public class Category {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -39,6 +41,7 @@ public class Category {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="Model for testing model with \"_class\" property")
|
||||
public class ClassModel {
|
||||
@ -22,6 +23,7 @@ public class ClassModel {
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
**/
|
||||
@JsonProperty("_class")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Client {
|
||||
|
||||
@ -20,6 +21,7 @@ public class Client {
|
||||
* Get client
|
||||
* @return client
|
||||
**/
|
||||
@JsonProperty("client")
|
||||
public String getClient() {
|
||||
return client;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Dog extends Animal {
|
||||
|
||||
@ -21,6 +22,7 @@ public class Dog extends Animal {
|
||||
* Get breed
|
||||
* @return breed
|
||||
**/
|
||||
@JsonProperty("breed")
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class EnumArrays {
|
||||
|
||||
@ -90,6 +91,7 @@ public enum ArrayEnumEnum {
|
||||
* Get justSymbol
|
||||
* @return justSymbol
|
||||
**/
|
||||
@JsonProperty("just_symbol")
|
||||
public JustSymbolEnum getJustSymbol() {
|
||||
return justSymbol;
|
||||
}
|
||||
@ -107,6 +109,7 @@ public enum ArrayEnumEnum {
|
||||
* Get arrayEnum
|
||||
* @return arrayEnum
|
||||
**/
|
||||
@JsonProperty("array_enum")
|
||||
public List<ArrayEnumEnum> getArrayEnum() {
|
||||
return arrayEnum;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class EnumTest {
|
||||
|
||||
@ -126,6 +127,7 @@ public enum EnumNumberEnum {
|
||||
* Get enumString
|
||||
* @return enumString
|
||||
**/
|
||||
@JsonProperty("enum_string")
|
||||
public EnumStringEnum getEnumString() {
|
||||
return enumString;
|
||||
}
|
||||
@ -143,6 +145,7 @@ public enum EnumNumberEnum {
|
||||
* Get enumInteger
|
||||
* @return enumInteger
|
||||
**/
|
||||
@JsonProperty("enum_integer")
|
||||
public EnumIntegerEnum getEnumInteger() {
|
||||
return enumInteger;
|
||||
}
|
||||
@ -160,6 +163,7 @@ public enum EnumNumberEnum {
|
||||
* Get enumNumber
|
||||
* @return enumNumber
|
||||
**/
|
||||
@JsonProperty("enum_number")
|
||||
public EnumNumberEnum getEnumNumber() {
|
||||
return enumNumber;
|
||||
}
|
||||
@ -177,6 +181,7 @@ public enum EnumNumberEnum {
|
||||
* Get outerEnum
|
||||
* @return outerEnum
|
||||
**/
|
||||
@JsonProperty("outerEnum")
|
||||
public OuterEnum getOuterEnum() {
|
||||
return outerEnum;
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class FormatTest {
|
||||
|
||||
@ -50,6 +51,7 @@ public class FormatTest {
|
||||
* maximum: 100
|
||||
* @return integer
|
||||
**/
|
||||
@JsonProperty("integer")
|
||||
@Min(10) @Max(100) public Integer getInteger() {
|
||||
return integer;
|
||||
}
|
||||
@ -69,6 +71,7 @@ public class FormatTest {
|
||||
* maximum: 200
|
||||
* @return int32
|
||||
**/
|
||||
@JsonProperty("int32")
|
||||
@Min(20) @Max(200) public Integer getInt32() {
|
||||
return int32;
|
||||
}
|
||||
@ -86,6 +89,7 @@ public class FormatTest {
|
||||
* Get int64
|
||||
* @return int64
|
||||
**/
|
||||
@JsonProperty("int64")
|
||||
public Long getInt64() {
|
||||
return int64;
|
||||
}
|
||||
@ -105,6 +109,7 @@ public class FormatTest {
|
||||
* maximum: 543.2
|
||||
* @return number
|
||||
**/
|
||||
@JsonProperty("number")
|
||||
@NotNull
|
||||
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
|
||||
return number;
|
||||
@ -125,6 +130,7 @@ public class FormatTest {
|
||||
* maximum: 987.6
|
||||
* @return _float
|
||||
**/
|
||||
@JsonProperty("float")
|
||||
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
|
||||
return _float;
|
||||
}
|
||||
@ -144,6 +150,7 @@ public class FormatTest {
|
||||
* maximum: 123.4
|
||||
* @return _double
|
||||
**/
|
||||
@JsonProperty("double")
|
||||
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
|
||||
return _double;
|
||||
}
|
||||
@ -161,6 +168,7 @@ public class FormatTest {
|
||||
* Get string
|
||||
* @return string
|
||||
**/
|
||||
@JsonProperty("string")
|
||||
@Pattern(regexp="/[a-z]/i") public String getString() {
|
||||
return string;
|
||||
}
|
||||
@ -178,6 +186,7 @@ public class FormatTest {
|
||||
* Get _byte
|
||||
* @return _byte
|
||||
**/
|
||||
@JsonProperty("byte")
|
||||
@NotNull
|
||||
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
|
||||
return _byte;
|
||||
@ -196,6 +205,7 @@ public class FormatTest {
|
||||
* Get binary
|
||||
* @return binary
|
||||
**/
|
||||
@JsonProperty("binary")
|
||||
public byte[] getBinary() {
|
||||
return binary;
|
||||
}
|
||||
@ -213,6 +223,7 @@ public class FormatTest {
|
||||
* Get date
|
||||
* @return date
|
||||
**/
|
||||
@JsonProperty("date")
|
||||
@NotNull
|
||||
public LocalDate getDate() {
|
||||
return date;
|
||||
@ -231,6 +242,7 @@ public class FormatTest {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
**/
|
||||
@JsonProperty("dateTime")
|
||||
public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@ -248,6 +260,7 @@ public class FormatTest {
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
**/
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@ -265,6 +278,7 @@ public class FormatTest {
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@JsonProperty("password")
|
||||
@NotNull
|
||||
@Size(min=10,max=64) public String getPassword() {
|
||||
return password;
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class HasOnlyReadOnly {
|
||||
|
||||
@ -22,6 +23,7 @@ public class HasOnlyReadOnly {
|
||||
* Get bar
|
||||
* @return bar
|
||||
**/
|
||||
@JsonProperty("bar")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@ -31,6 +33,7 @@ public class HasOnlyReadOnly {
|
||||
* Get foo
|
||||
* @return foo
|
||||
**/
|
||||
@JsonProperty("foo")
|
||||
public String getFoo() {
|
||||
return foo;
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class MapTest {
|
||||
|
||||
@ -58,6 +59,7 @@ public enum InnerEnum {
|
||||
* Get mapMapOfString
|
||||
* @return mapMapOfString
|
||||
**/
|
||||
@JsonProperty("map_map_of_string")
|
||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
return mapMapOfString;
|
||||
}
|
||||
@ -80,6 +82,7 @@ public enum InnerEnum {
|
||||
* Get mapOfEnumString
|
||||
* @return mapOfEnumString
|
||||
**/
|
||||
@JsonProperty("map_of_enum_string")
|
||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||
return mapOfEnumString;
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
|
||||
@ -30,6 +31,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
**/
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@ -47,6 +49,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
**/
|
||||
@JsonProperty("dateTime")
|
||||
public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@ -64,6 +67,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get map
|
||||
* @return map
|
||||
**/
|
||||
@JsonProperty("map")
|
||||
public Map<String, Animal> getMap() {
|
||||
return map;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="Model for testing model name starting with number")
|
||||
public class Model200Response {
|
||||
@ -24,6 +25,7 @@ public class Model200Response {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class Model200Response {
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
**/
|
||||
@JsonProperty("class")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class ModelApiResponse {
|
||||
|
||||
@ -24,6 +25,7 @@ public class ModelApiResponse {
|
||||
* Get code
|
||||
* @return code
|
||||
**/
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@ -41,6 +43,7 @@ public class ModelApiResponse {
|
||||
* Get type
|
||||
* @return type
|
||||
**/
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@ -58,6 +61,7 @@ public class ModelApiResponse {
|
||||
* Get message
|
||||
* @return message
|
||||
**/
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="Model for testing reserved words")
|
||||
public class ModelReturn {
|
||||
@ -22,6 +23,7 @@ public class ModelReturn {
|
||||
* Get _return
|
||||
* @return _return
|
||||
**/
|
||||
@JsonProperty("return")
|
||||
public Integer getReturn() {
|
||||
return _return;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@ApiModel(description="Model for testing model name same as property name")
|
||||
public class Name {
|
||||
@ -28,6 +29,7 @@ public class Name {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public Integer getName() {
|
||||
return name;
|
||||
@ -46,6 +48,7 @@ public class Name {
|
||||
* Get snakeCase
|
||||
* @return snakeCase
|
||||
**/
|
||||
@JsonProperty("snake_case")
|
||||
public Integer getSnakeCase() {
|
||||
return snakeCase;
|
||||
}
|
||||
@ -55,6 +58,7 @@ public class Name {
|
||||
* Get property
|
||||
* @return property
|
||||
**/
|
||||
@JsonProperty("property")
|
||||
public String getProperty() {
|
||||
return property;
|
||||
}
|
||||
@ -72,6 +76,7 @@ public class Name {
|
||||
* Get _123Number
|
||||
* @return _123Number
|
||||
**/
|
||||
@JsonProperty("123Number")
|
||||
public Integer get123Number() {
|
||||
return _123Number;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class NumberOnly {
|
||||
|
||||
@ -21,6 +22,7 @@ public class NumberOnly {
|
||||
* Get justNumber
|
||||
* @return justNumber
|
||||
**/
|
||||
@JsonProperty("JustNumber")
|
||||
public BigDecimal getJustNumber() {
|
||||
return justNumber;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Order {
|
||||
|
||||
@ -64,6 +65,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -81,6 +83,7 @@ public enum StatusEnum {
|
||||
* Get petId
|
||||
* @return petId
|
||||
**/
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
}
|
||||
@ -98,6 +101,7 @@ public enum StatusEnum {
|
||||
* Get quantity
|
||||
* @return quantity
|
||||
**/
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
@ -115,6 +119,7 @@ public enum StatusEnum {
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
**/
|
||||
@JsonProperty("shipDate")
|
||||
public Date getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
@ -132,6 +137,7 @@ public enum StatusEnum {
|
||||
* Order Status
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@ -149,6 +155,7 @@ public enum StatusEnum {
|
||||
* Get complete
|
||||
* @return complete
|
||||
**/
|
||||
@JsonProperty("complete")
|
||||
public Boolean isComplete() {
|
||||
return complete;
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class OuterComposite {
|
||||
|
||||
@ -25,6 +26,7 @@ public class OuterComposite {
|
||||
* Get myNumber
|
||||
* @return myNumber
|
||||
**/
|
||||
@JsonProperty("my_number")
|
||||
public BigDecimal getMyNumber() {
|
||||
return myNumber;
|
||||
}
|
||||
@ -42,6 +44,7 @@ public class OuterComposite {
|
||||
* Get myString
|
||||
* @return myString
|
||||
**/
|
||||
@JsonProperty("my_string")
|
||||
public String getMyString() {
|
||||
return myString;
|
||||
}
|
||||
@ -59,6 +62,7 @@ public class OuterComposite {
|
||||
* Get myBoolean
|
||||
* @return myBoolean
|
||||
**/
|
||||
@JsonProperty("my_boolean")
|
||||
public Boolean getMyBoolean() {
|
||||
return myBoolean;
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Pet {
|
||||
|
||||
@ -67,6 +68,7 @@ public enum StatusEnum {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -84,6 +86,7 @@ public enum StatusEnum {
|
||||
* Get category
|
||||
* @return category
|
||||
**/
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
@ -101,6 +104,7 @@ public enum StatusEnum {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
return name;
|
||||
@ -119,6 +123,7 @@ public enum StatusEnum {
|
||||
* Get photoUrls
|
||||
* @return photoUrls
|
||||
**/
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public List<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
@ -142,6 +147,7 @@ public enum StatusEnum {
|
||||
* Get tags
|
||||
* @return tags
|
||||
**/
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
@ -164,6 +170,7 @@ public enum StatusEnum {
|
||||
* pet status in the store
|
||||
* @return status
|
||||
**/
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class ReadOnlyFirst {
|
||||
|
||||
@ -22,6 +23,7 @@ public class ReadOnlyFirst {
|
||||
* Get bar
|
||||
* @return bar
|
||||
**/
|
||||
@JsonProperty("bar")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@ -31,6 +33,7 @@ public class ReadOnlyFirst {
|
||||
* Get baz
|
||||
* @return baz
|
||||
**/
|
||||
@JsonProperty("baz")
|
||||
public String getBaz() {
|
||||
return baz;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class SpecialModelName {
|
||||
|
||||
@ -20,6 +21,7 @@ public class SpecialModelName {
|
||||
* Get specialPropertyName
|
||||
* @return specialPropertyName
|
||||
**/
|
||||
@JsonProperty("$special[property.name]")
|
||||
public Long getSpecialPropertyName() {
|
||||
return specialPropertyName;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Tag {
|
||||
|
||||
@ -22,6 +23,7 @@ public class Tag {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -39,6 +41,7 @@ public class Tag {
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.XmlEnum;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class User {
|
||||
|
||||
@ -34,6 +35,7 @@ public class User {
|
||||
* Get id
|
||||
* @return id
|
||||
**/
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -51,6 +53,7 @@ public class User {
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@ -68,6 +71,7 @@ public class User {
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
**/
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
@ -85,6 +89,7 @@ public class User {
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
**/
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
@ -102,6 +107,7 @@ public class User {
|
||||
* Get email
|
||||
* @return email
|
||||
**/
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@ -119,6 +125,7 @@ public class User {
|
||||
* Get password
|
||||
* @return password
|
||||
**/
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@ -136,6 +143,7 @@ public class User {
|
||||
* Get phone
|
||||
* @return phone
|
||||
**/
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
@ -153,6 +161,7 @@ public class User {
|
||||
* User Status
|
||||
* @return userStatus
|
||||
**/
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user