Merge pull request #4881 from swagger-api/swagger-lib-versions

updated core versions
This commit is contained in:
Tony Tam 2017-03-01 14:12:57 -05:00 committed by GitHub
commit 01f5c1bf0f
163 changed files with 1369 additions and 608 deletions

View File

@ -1076,3 +1076,4 @@ limitations under the License.
--- ---
<img src="http://swagger.io/wp-content/uploads/2016/02/logo.jpg"/> <img src="http://swagger.io/wp-content/uploads/2016/02/logo.jpg"/>

View File

@ -235,7 +235,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<feign-version>8.17.0</feign-version> <feign-version>8.17.0</feign-version>
<feign-form-version>2.0.2</feign-form-version> <feign-form-version>2.0.2</feign-form-version>
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>

View File

@ -271,7 +271,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jersey-version>2.22.2</jersey-version> <jersey-version>2.22.2</jersey-version>
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>
{{^java8}} {{^java8}}

View File

@ -230,7 +230,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<okhttp-version>2.7.5</okhttp-version> <okhttp-version>2.7.5</okhttp-version>
<gson-version>2.6.2</gson-version> <gson-version>2.6.2</gson-version>
<jodatime-version>2.9.3</jodatime-version> <jodatime-version>2.9.3</jodatime-version>

View File

@ -212,7 +212,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<retrofit-version>1.9.0</retrofit-version> <retrofit-version>1.9.0</retrofit-version>
<okhttp-version>2.7.5</okhttp-version> <okhttp-version>2.7.5</okhttp-version>
<jodatime-version>2.9.3</jodatime-version> <jodatime-version>2.9.3</jodatime-version>

View File

@ -261,7 +261,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<retrofit-version>2.1.0</retrofit-version> <retrofit-version>2.1.0</retrofit-version>
{{#usePlay24WS}} {{#usePlay24WS}}
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>

View File

@ -119,7 +119,7 @@
</repositories> </repositories>
<properties> <properties>
<maven-plugin-version>1.0.0</maven-plugin-version> <maven-plugin-version>1.0.0</maven-plugin-version>
<swagger-inflector-version>1.0.8</swagger-inflector-version> <swagger-inflector-version>1.0.11</swagger-inflector-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<logback-version>1.0.1</logback-version> <logback-version>1.0.1</logback-version>
<junit-version>4.8.2</junit-version> <junit-version>4.8.2</junit-version>

View File

@ -166,7 +166,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<jersey2-version>2.22.2</jersey2-version> <jersey2-version>2.22.2</jersey2-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>

View File

@ -217,7 +217,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.10</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<jersey2-version>2.22.2</jersey2-version> <jersey2-version>2.22.2</jersey2-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>

View File

@ -181,7 +181,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<jersey-version>1.19.1</jersey-version> <jersey-version>1.19.1</jersey-version>
<slf4j-version>1.7.21</slf4j-version> <slf4j-version>1.7.21</slf4j-version>

View File

@ -133,7 +133,17 @@
<artifactId>jersey-media-multipart</artifactId> <artifactId>jersey-media-multipart</artifactId>
<version>${jersey2-version}</version> <version>${jersey2-version}</version>
</dependency> </dependency>
<!-- Base64 encoding that works in both JVM and Android --> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<version>${jackson-version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>
<version>${jackson-version}</version>
</dependency>
<!-- Base64 encoding that works in both JVM and Android -->
<dependency> <dependency>
<groupId>com.brsanthu</groupId> <groupId>com.brsanthu</groupId>
<artifactId>migbase64</artifactId> <artifactId>migbase64</artifactId>
@ -178,9 +188,10 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<jersey2-version>2.22.2</jersey2-version> <jersey2-version>2.22.2</jersey2-version>
<jackson-version>2.8.7</jackson-version>
{{#supportJava6}} {{#supportJava6}}
<commons_io_version>2.5</commons_io_version> <commons_io_version>2.5</commons_io_version>
<commons_lang3_version>3.5</commons_lang3_version> <commons_lang3_version>3.5</commons_lang3_version>

View File

@ -174,7 +174,7 @@
</repository> </repository>
</repositories> </repositories>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<resteasy-version>3.0.11.Final</resteasy-version> <resteasy-version>3.0.11.Final</resteasy-version>
<slf4j-version>1.6.3</slf4j-version> <slf4j-version>1.6.3</slf4j-version>

View File

@ -159,7 +159,7 @@
</repository> </repository>
</repositories> </repositories>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<resteasy-version>3.0.11.Final</resteasy-version> <resteasy-version>3.0.11.Final</resteasy-version>
<slf4j-version>1.6.3</slf4j-version> <slf4j-version>1.6.3</slf4j-version>

View File

@ -9,7 +9,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
</properties> </properties>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -81,7 +81,7 @@
<java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version> <java.version>{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jetty-version>9.2.9.v20150224</jetty-version> <jetty-version>9.2.9.v20150224</jetty-version>
<jersey2-version>2.22.2</jersey2-version> <jersey2-version>2.22.2</jersey2-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>

View File

@ -217,7 +217,7 @@
<akka-version>2.3.9</akka-version> <akka-version>2.3.9</akka-version>
<joda-version>1.2</joda-version> <joda-version>1.2</joda-version>
<joda-time-version>2.2</joda-time-version> <joda-time-version>2.2</joda-time-version>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<maven-plugin.version>1.0.0</maven-plugin.version> <maven-plugin.version>1.0.0</maven-plugin.version>
<junit-version>4.8.1</junit-version> <junit-version>4.8.1</junit-version>

View File

@ -145,7 +145,7 @@
</repository> </repository>
</repositories> </repositories>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<gson-version>2.3.1</gson-version> <gson-version>2.3.1</gson-version>
<junit-version>4.8.1</junit-version> <junit-version>4.8.1</junit-version>
<maven-plugin-version>1.0.0</maven-plugin-version> <maven-plugin-version>1.0.0</maven-plugin-version>

View File

@ -210,7 +210,7 @@
<joda-version>1.2</joda-version> <joda-version>1.2</joda-version>
<joda-time-version>2.2</joda-time-version> <joda-time-version>2.2</joda-time-version>
<jersey-version>1.19</jersey-version> <jersey-version>1.19</jersey-version>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jersey-async-version>1.0.5</jersey-async-version> <jersey-async-version>1.0.5</jersey-async-version>
<maven-plugin.version>1.0.0</maven-plugin.version> <maven-plugin.version>1.0.0</maven-plugin.version>
<jackson-version>2.4.2</jackson-version> <jackson-version>2.4.2</jackson-version>

View File

@ -235,7 +235,7 @@
<java.version>1.7</java.version> <java.version>1.7</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<feign-version>8.17.0</feign-version> <feign-version>8.17.0</feign-version>
<feign-form-version>2.0.2</feign-form-version> <feign-form-version>2.0.2</feign-form-version>
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>

View File

@ -238,7 +238,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jersey-version>2.22.2</jersey-version> <jersey-version>2.22.2</jersey-version>
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>
<maven-plugin-version>1.0.0</maven-plugin-version> <maven-plugin-version>1.0.0</maven-plugin-version>

View File

@ -243,7 +243,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<jersey-version>2.22.2</jersey-version> <jersey-version>2.22.2</jersey-version>
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>
<jodatime-version>2.9.4</jodatime-version> <jodatime-version>2.9.4</jodatime-version>

View File

@ -206,7 +206,7 @@
<java.version>1.7</java.version> <java.version>1.7</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<okhttp-version>2.7.5</okhttp-version> <okhttp-version>2.7.5</okhttp-version>
<gson-version>2.6.2</gson-version> <gson-version>2.6.2</gson-version>
<jodatime-version>2.9.3</jodatime-version> <jodatime-version>2.9.3</jodatime-version>

View File

@ -212,7 +212,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<retrofit-version>1.9.0</retrofit-version> <retrofit-version>1.9.0</retrofit-version>
<okhttp-version>2.7.5</okhttp-version> <okhttp-version>2.7.5</okhttp-version>
<jodatime-version>2.9.3</jodatime-version> <jodatime-version>2.9.3</jodatime-version>

View File

@ -245,7 +245,7 @@
<java.version>1.7</java.version> <java.version>1.7</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<retrofit-version>2.1.0</retrofit-version> <retrofit-version>2.1.0</retrofit-version>
<jackson-version>2.7.5</jackson-version> <jackson-version>2.7.5</jackson-version>
<jodatime-version>2.9.4</jodatime-version> <jodatime-version>2.9.4</jodatime-version>

View File

@ -214,7 +214,7 @@
<java.version>1.7</java.version> <java.version>1.7</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<retrofit-version>2.1.0</retrofit-version> <retrofit-version>2.1.0</retrofit-version>
<jodatime-version>2.9.4</jodatime-version> <jodatime-version>2.9.4</jodatime-version>
<oltu-version>1.0.1</oltu-version> <oltu-version>1.0.1</oltu-version>

View File

@ -224,7 +224,7 @@
<java.version>1.7</java.version> <java.version>1.7</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<swagger-core-version>1.5.9</swagger-core-version> <swagger-core-version>1.5.12</swagger-core-version>
<retrofit-version>2.1.0</retrofit-version> <retrofit-version>2.1.0</retrofit-version>
<rxjava-version>1.1.6</rxjava-version> <rxjava-version>1.1.6</rxjava-version>
<jodatime-version>2.9.4</jodatime-version> <jodatime-version>2.9.4</jodatime-version>

View File

@ -1,6 +1,6 @@
package io.swagger.handler; package io.swagger.handler;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class StringUtil { public class StringUtil {
/** /**
* Check if the given array contains the given value (with case-insensitive comparison). * Check if the given array contains the given value (with case-insensitive comparison).

View File

@ -13,7 +13,7 @@ import java.util.Map;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
@JsonProperty("map_property") @JsonProperty("map_property")
private Map<String, String> mapProperty = new HashMap<String, String>(); private Map<String, String> mapProperty = new HashMap<String, String>();
@ -57,7 +57,7 @@ public class AdditionalPropertiesClass {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -89,7 +89,7 @@ public class AdditionalPropertiesClass {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -3,6 +3,8 @@ package io.swagger.model;
import java.util.Objects; import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
@ -10,7 +12,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Animal { public class Animal {
@JsonProperty("className") @JsonProperty("className")
private String className = null; private String className = null;
@ -54,7 +56,7 @@ public class Animal {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -86,7 +88,7 @@ public class Animal {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -9,11 +9,11 @@ import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class AnimalFarm extends ArrayList<Animal> { public class AnimalFarm extends ArrayList<Animal> {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -42,7 +42,7 @@ public class AnimalFarm extends ArrayList<Animal> {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
@JsonProperty("ArrayArrayNumber") @JsonProperty("ArrayArrayNumber")
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>(); private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
@ -37,7 +37,7 @@ public class ArrayOfArrayOfNumberOnly {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -67,7 +67,7 @@ public class ArrayOfArrayOfNumberOnly {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
@JsonProperty("ArrayNumber") @JsonProperty("ArrayNumber")
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>(); private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
@ -37,7 +37,7 @@ public class ArrayOfNumberOnly {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -67,7 +67,7 @@ public class ArrayOfNumberOnly {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ArrayTest { public class ArrayTest {
@JsonProperty("array_of_string") @JsonProperty("array_of_string")
private List<String> arrayOfString = new ArrayList<String>(); private List<String> arrayOfString = new ArrayList<String>();
@ -77,7 +77,7 @@ public class ArrayTest {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -111,7 +111,7 @@ public class ArrayTest {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -0,0 +1,185 @@
package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Capitalization {
@JsonProperty("smallCamel")
private String smallCamel = null;
@JsonProperty("CapitalCamel")
private String capitalCamel = null;
@JsonProperty("small_Snake")
private String smallSnake = null;
@JsonProperty("Capital_Snake")
private String capitalSnake = null;
@JsonProperty("SCA_ETH_Flow_Points")
private String scAETHFlowPoints = null;
@JsonProperty("ATT_NAME")
private String ATT_NAME = null;
/**
**/
public Capitalization smallCamel(String smallCamel) {
this.smallCamel = smallCamel;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("smallCamel")
public String getSmallCamel() {
return smallCamel;
}
public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel;
}
/**
**/
public Capitalization capitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("CapitalCamel")
public String getCapitalCamel() {
return capitalCamel;
}
public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel;
}
/**
**/
public Capitalization smallSnake(String smallSnake) {
this.smallSnake = smallSnake;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("small_Snake")
public String getSmallSnake() {
return smallSnake;
}
public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake;
}
/**
**/
public Capitalization capitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("Capital_Snake")
public String getCapitalSnake() {
return capitalSnake;
}
public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake;
}
/**
**/
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("SCA_ETH_Flow_Points")
public String getScAETHFlowPoints() {
return scAETHFlowPoints;
}
public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints;
}
/**
* Name of the pet
**/
public Capitalization ATT_NAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
return this;
}
@ApiModelProperty(example = "null", value = "Name of the pet ")
@JsonProperty("ATT_NAME")
public String getATTNAME() {
return ATT_NAME;
}
public void setATTNAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Capitalization capitalization = (Capitalization) o;
return Objects.equals(smallCamel, capitalization.smallCamel) &&
Objects.equals(capitalCamel, capitalization.capitalCamel) &&
Objects.equals(smallSnake, capitalization.smallSnake) &&
Objects.equals(capitalSnake, capitalization.capitalSnake) &&
Objects.equals(scAETHFlowPoints, capitalization.scAETHFlowPoints) &&
Objects.equals(ATT_NAME, capitalization.ATT_NAME);
}
@Override
public int hashCode() {
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Capitalization {\n");
sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n");
sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n");
sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n");
sb.append(" capitalSnake: ").append(toIndentedString(capitalSnake)).append("\n");
sb.append(" scAETHFlowPoints: ").append(toIndentedString(scAETHFlowPoints)).append("\n");
sb.append(" ATT_NAME: ").append(toIndentedString(ATT_NAME)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -11,7 +11,7 @@ import io.swagger.model.Animal;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Cat extends Animal { public class Cat extends Animal {
@JsonProperty("declawed") @JsonProperty("declawed")
private Boolean declawed = null; private Boolean declawed = null;
@ -35,7 +35,7 @@ public class Cat extends Animal {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -65,7 +65,7 @@ public class Cat extends Animal {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Category { public class Category {
@JsonProperty("id") @JsonProperty("id")
private Long id = null; private Long id = null;
@ -54,7 +54,7 @@ public class Category {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -86,7 +86,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -0,0 +1,77 @@
package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Model for testing model with \&quot;_class\&quot; property
**/
@ApiModel(description = "Model for testing model with \"_class\" property")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ClassModel {
@JsonProperty("_class")
private String propertyClass = null;
/**
**/
public ClassModel propertyClass(String propertyClass) {
this.propertyClass = propertyClass;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("_class")
public String getPropertyClass() {
return propertyClass;
}
public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ClassModel classModel = (ClassModel) o;
return Objects.equals(propertyClass, classModel.propertyClass);
}
@Override
public int hashCode() {
return Objects.hash(propertyClass);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ClassModel {\n");
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Client { public class Client {
@JsonProperty("client") @JsonProperty("client")
private String client = null; private String client = null;
@ -34,7 +34,7 @@ public class Client {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -64,7 +64,7 @@ public class Client {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -11,7 +11,7 @@ import io.swagger.model.Animal;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Dog extends Animal { public class Dog extends Animal {
@JsonProperty("breed") @JsonProperty("breed")
private String breed = null; private String breed = null;
@ -35,7 +35,7 @@ public class Dog extends Animal {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -65,7 +65,7 @@ public class Dog extends Animal {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -13,7 +13,7 @@ import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class EnumArrays { public class EnumArrays {
/** /**
* Gets or Sets justSymbol * Gets or Sets justSymbol
@ -119,7 +119,7 @@ public class EnumArrays {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -151,7 +151,7 @@ public class EnumArrays {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -6,12 +6,13 @@ import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.model.OuterEnum;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class EnumTest { public class EnumTest {
/** /**
* Gets or Sets enumString * Gets or Sets enumString
@ -117,6 +118,9 @@ public class EnumTest {
@JsonProperty("enum_number") @JsonProperty("enum_number")
private EnumNumberEnum enumNumber = null; private EnumNumberEnum enumNumber = null;
@JsonProperty("outerEnum")
private OuterEnum outerEnum = null;
/** /**
**/ **/
public EnumTest enumString(EnumStringEnum enumString) { public EnumTest enumString(EnumStringEnum enumString) {
@ -168,9 +172,26 @@ public class EnumTest {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
} }
/**
**/
public EnumTest outerEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("outerEnum")
public OuterEnum getOuterEnum() {
return outerEnum;
}
public void setOuterEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum;
}
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -180,12 +201,13 @@ public class EnumTest {
EnumTest enumTest = (EnumTest) o; EnumTest enumTest = (EnumTest) o;
return Objects.equals(enumString, enumTest.enumString) && return Objects.equals(enumString, enumTest.enumString) &&
Objects.equals(enumInteger, enumTest.enumInteger) && Objects.equals(enumInteger, enumTest.enumInteger) &&
Objects.equals(enumNumber, enumTest.enumNumber); Objects.equals(enumNumber, enumTest.enumNumber) &&
Objects.equals(outerEnum, enumTest.outerEnum);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(enumString, enumInteger, enumNumber); return Objects.hash(enumString, enumInteger, enumNumber, outerEnum);
} }
@Override @Override
@ -196,6 +218,7 @@ public class EnumTest {
sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n"); sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n"); sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n"); sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
@ -204,7 +227,7 @@ public class EnumTest {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -7,12 +7,13 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.UUID;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class FormatTest { public class FormatTest {
@JsonProperty("integer") @JsonProperty("integer")
private Integer integer = null; private Integer integer = null;
@ -48,14 +49,14 @@ public class FormatTest {
private Date dateTime = null; private Date dateTime = null;
@JsonProperty("uuid") @JsonProperty("uuid")
private String uuid = null; private UUID uuid = null;
@JsonProperty("password") @JsonProperty("password")
private String password = null; private String password = null;
/** /**
* minimum: 10.0 * minimum: 10
* maximum: 100.0 * maximum: 100
**/ **/
public FormatTest integer(Integer integer) { public FormatTest integer(Integer integer) {
this.integer = integer; this.integer = integer;
@ -73,8 +74,8 @@ public class FormatTest {
} }
/** /**
* minimum: 20.0 * minimum: 20
* maximum: 200.0 * maximum: 200
**/ **/
public FormatTest int32(Integer int32) { public FormatTest int32(Integer int32) {
this.int32 = int32; this.int32 = int32;
@ -252,7 +253,7 @@ public class FormatTest {
/** /**
**/ **/
public FormatTest uuid(String uuid) { public FormatTest uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -260,10 +261,10 @@ public class FormatTest {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(example = "null", value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public String getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(String uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
@ -286,7 +287,7 @@ public class FormatTest {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -340,7 +341,7 @@ public class FormatTest {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class HasOnlyReadOnly { public class HasOnlyReadOnly {
@JsonProperty("bar") @JsonProperty("bar")
private String bar = null; private String bar = null;
@ -54,7 +54,7 @@ public class HasOnlyReadOnly {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -86,7 +86,7 @@ public class HasOnlyReadOnly {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -14,7 +14,7 @@ import java.util.Map;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class MapTest { public class MapTest {
@JsonProperty("map_map_of_string") @JsonProperty("map_map_of_string")
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>(); private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
@ -89,7 +89,7 @@ public class MapTest {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -121,7 +121,7 @@ public class MapTest {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,15 +10,16 @@ import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.UUID;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class MixedPropertiesAndAdditionalPropertiesClass { public class MixedPropertiesAndAdditionalPropertiesClass {
@JsonProperty("uuid") @JsonProperty("uuid")
private String uuid = null; private UUID uuid = null;
@JsonProperty("dateTime") @JsonProperty("dateTime")
private Date dateTime = null; private Date dateTime = null;
@ -28,7 +29,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
/** /**
**/ **/
public MixedPropertiesAndAdditionalPropertiesClass uuid(String uuid) { public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -36,10 +37,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(example = "null", value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public String getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(String uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
@ -79,7 +80,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -113,7 +114,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -13,13 +13,13 @@ import io.swagger.annotations.ApiModelProperty;
**/ **/
@ApiModel(description = "Model for testing model name starting with number") @ApiModel(description = "Model for testing model name starting with number")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Model200Response { public class Model200Response {
@JsonProperty("name") @JsonProperty("name")
private Integer name = null; private Integer name = null;
@JsonProperty("class") @JsonProperty("class")
private String PropertyClass = null; private String propertyClass = null;
/** /**
**/ **/
@ -40,8 +40,8 @@ public class Model200Response {
/** /**
**/ **/
public Model200Response PropertyClass(String PropertyClass) { public Model200Response propertyClass(String propertyClass) {
this.PropertyClass = PropertyClass; this.propertyClass = propertyClass;
return this; return this;
} }
@ -49,15 +49,15 @@ public class Model200Response {
@ApiModelProperty(example = "null", value = "") @ApiModelProperty(example = "null", value = "")
@JsonProperty("class") @JsonProperty("class")
public String getPropertyClass() { public String getPropertyClass() {
return PropertyClass; return propertyClass;
} }
public void setPropertyClass(String PropertyClass) { public void setPropertyClass(String propertyClass) {
this.PropertyClass = PropertyClass; this.propertyClass = propertyClass;
} }
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -66,12 +66,12 @@ public class Model200Response {
} }
Model200Response _200Response = (Model200Response) o; Model200Response _200Response = (Model200Response) o;
return Objects.equals(name, _200Response.name) && return Objects.equals(name, _200Response.name) &&
Objects.equals(PropertyClass, _200Response.PropertyClass); Objects.equals(propertyClass, _200Response.propertyClass);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(name, PropertyClass); return Objects.hash(name, propertyClass);
} }
@Override @Override
@ -80,7 +80,7 @@ public class Model200Response {
sb.append("class Model200Response {\n"); sb.append("class Model200Response {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" PropertyClass: ").append(toIndentedString(PropertyClass)).append("\n"); sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
@ -89,7 +89,7 @@ public class Model200Response {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ModelApiResponse { public class ModelApiResponse {
@JsonProperty("code") @JsonProperty("code")
private Integer code = null; private Integer code = null;
@ -74,7 +74,7 @@ public class ModelApiResponse {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -108,7 +108,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty;
**/ **/
@ApiModel(description = "Model for testing reserved words") @ApiModel(description = "Model for testing reserved words")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ModelReturn { public class ModelReturn {
@JsonProperty("return") @JsonProperty("return")
private Integer _return = null; private Integer _return = null;
@ -37,7 +37,7 @@ public class ModelReturn {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -67,7 +67,7 @@ public class ModelReturn {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -13,7 +13,7 @@ import io.swagger.annotations.ApiModelProperty;
**/ **/
@ApiModel(description = "Model for testing model name same as property name") @ApiModel(description = "Model for testing model name same as property name")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Name { public class Name {
@JsonProperty("name") @JsonProperty("name")
private Integer name = null; private Integer name = null;
@ -97,7 +97,7 @@ public class Name {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -133,7 +133,7 @@ public class Name {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -11,7 +11,7 @@ import java.math.BigDecimal;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class NumberOnly { public class NumberOnly {
@JsonProperty("JustNumber") @JsonProperty("JustNumber")
private BigDecimal justNumber = null; private BigDecimal justNumber = null;
@ -35,7 +35,7 @@ public class NumberOnly {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -65,7 +65,7 @@ public class NumberOnly {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -12,7 +12,7 @@ import java.util.Date;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Order { public class Order {
@JsonProperty("id") @JsonProperty("id")
private Long id = null; private Long id = null;
@ -170,7 +170,7 @@ public class Order {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -210,7 +210,7 @@ public class Order {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -0,0 +1,44 @@
package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* Gets or Sets OuterEnum
*/
public enum OuterEnum {
PLACED("placed"),
APPROVED("approved"),
DELIVERED("delivered");
private String value;
OuterEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static OuterEnum fromValue(String text) {
for (OuterEnum b : OuterEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}

View File

@ -15,7 +15,7 @@ import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Pet { public class Pet {
@JsonProperty("id") @JsonProperty("id")
private Long id = null; private Long id = null;
@ -173,7 +173,7 @@ public class Pet {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -213,7 +213,7 @@ public class Pet {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class ReadOnlyFirst { public class ReadOnlyFirst {
@JsonProperty("bar") @JsonProperty("bar")
private String bar = null; private String bar = null;
@ -54,7 +54,7 @@ public class ReadOnlyFirst {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -86,7 +86,7 @@ public class ReadOnlyFirst {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class SpecialModelName { public class SpecialModelName {
@JsonProperty("$special[property.name]") @JsonProperty("$special[property.name]")
private Long specialPropertyName = null; private Long specialPropertyName = null;
@ -34,7 +34,7 @@ public class SpecialModelName {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -64,7 +64,7 @@ public class SpecialModelName {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class Tag { public class Tag {
@JsonProperty("id") @JsonProperty("id")
private Long id = null; private Long id = null;
@ -54,7 +54,7 @@ public class Tag {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -86,7 +86,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,7 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class User { public class User {
@JsonProperty("id") @JsonProperty("id")
private Long id = null; private Long id = null;
@ -175,7 +175,7 @@ public class User {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -219,7 +219,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -10,11 +10,11 @@ import java.util.List;
import io.swagger.model.*; import io.swagger.model.*;
import java.math.BigDecimal;
import io.swagger.model.Client; import io.swagger.model.Client;
import java.util.Date; import java.util.Date;
import java.math.BigDecimal;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class FakeController { public class FakeController {
/** /**
* Uncomment and implement as you see fit. These operations will map * Uncomment and implement as you see fit. These operations will map
@ -29,13 +29,13 @@ public class FakeController {
*/ */
/* /*
public ResponseContext testEndpointParameters(RequestContext request , BigDecimal number, Double _double, String string, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, byte[] binary, Date date, Date dateTime, String password) { public ResponseContext testEndpointParameters(RequestContext request , BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, Date date, Date dateTime, String password, String paramCallback) {
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" ); return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
} }
*/ */
/* /*
public ResponseContext testEnumParameters(RequestContext request , List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble) { public ResponseContext testEnumParameters(RequestContext request , List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble) {
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" ); return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
} }
*/ */

View File

@ -10,11 +10,11 @@ import java.util.List;
import io.swagger.model.*; import io.swagger.model.*;
import io.swagger.model.Pet;
import java.io.File; import java.io.File;
import io.swagger.model.ModelApiResponse; import io.swagger.model.ModelApiResponse;
import io.swagger.model.Pet;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class PetController { public class PetController {
/** /**
* Uncomment and implement as you see fit. These operations will map * Uncomment and implement as you see fit. These operations will map

View File

@ -13,7 +13,7 @@ import io.swagger.model.*;
import java.util.Map; import java.util.Map;
import io.swagger.model.Order; import io.swagger.model.Order;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class StoreController { public class StoreController {
/** /**
* Uncomment and implement as you see fit. These operations will map * Uncomment and implement as you see fit. These operations will map

View File

@ -10,10 +10,10 @@ import java.util.List;
import io.swagger.model.*; import io.swagger.model.*;
import io.swagger.model.User;
import java.util.List; import java.util.List;
import io.swagger.model.User;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2016-08-20T17:24:26.037+08:00") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2017-03-01T10:03:07.895-05:00")
public class UserController { public class UserController {
/** /**
* Uncomment and implement as you see fit. These operations will map * Uncomment and implement as you see fit. These operations will map

View File

@ -30,221 +30,6 @@ tags:
schemes: schemes:
- "http" - "http"
paths: paths:
/fake:
get:
tags:
- "fake"
summary: "To test enum parameters"
operationId: "testEnumParameters"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- name: "enum_form_string_array"
in: "formData"
description: "Form parameter enum test (string array)"
required: false
type: "array"
- name: "enum_form_string"
in: "formData"
description: "Form parameter enum test (string)"
required: false
type: "string"
default: "-efg"
enum:
- "_abc"
- "-efg"
- "(xyz)"
- name: "enum_header_string_array"
in: "header"
description: "Header parameter enum test (string array)"
required: false
type: "array"
- name: "enum_header_string"
in: "header"
description: "Header parameter enum test (string)"
required: false
type: "string"
default: "-efg"
enum:
- "_abc"
- "-efg"
- "(xyz)"
- name: "enum_query_string_array"
in: "query"
description: "Query parameter enum test (string array)"
required: false
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
- name: "enum_query_string"
in: "query"
description: "Query parameter enum test (string)"
required: false
type: "string"
default: "-efg"
enum:
- "_abc"
- "-efg"
- "(xyz)"
- name: "enum_query_integer"
in: "query"
description: "Query parameter enum test (double)"
required: false
type: "number"
format: "int32"
enum:
- null
- null
- name: "enum_query_double"
in: "formData"
description: "Query parameter enum test (double)"
required: false
type: "number"
format: "double"
enum:
- null
- null
responses:
400:
description: "Invalid request"
404:
description: "Not found"
x-contentType: "application/json"
x-accepts: "application/json"
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"
operationId: "testEndpointParameters"
consumes:
- "application/xml; charset=utf-8"
- "application/json; charset=utf-8"
produces:
- "application/xml; charset=utf-8"
- "application/json; charset=utf-8"
parameters:
- name: "integer"
in: "formData"
description: "None"
required: false
type: "integer"
maximum: 100.0
minimum: 10.0
- name: "int32"
in: "formData"
description: "None"
required: false
type: "integer"
maximum: 200.0
minimum: 20.0
format: "int32"
- name: "int64"
in: "formData"
description: "None"
required: false
type: "integer"
format: "int64"
- name: "number"
in: "formData"
description: "None"
required: true
type: "number"
maximum: 543.2
minimum: 32.1
- name: "float"
in: "formData"
description: "None"
required: false
type: "number"
maximum: 987.6
format: "float"
- name: "double"
in: "formData"
description: "None"
required: true
type: "number"
maximum: 123.4
minimum: 67.8
format: "double"
- name: "string"
in: "formData"
description: "None"
required: true
type: "string"
pattern: "/[a-z]/i"
- name: "byte"
in: "formData"
description: "None"
required: true
type: "string"
format: "byte"
- name: "binary"
in: "formData"
description: "None"
required: false
type: "string"
format: "binary"
- name: "date"
in: "formData"
description: "None"
required: false
type: "string"
format: "date"
- name: "dateTime"
in: "formData"
description: "None"
required: false
type: "string"
format: "date-time"
- name: "password"
in: "formData"
description: "None"
required: false
type: "string"
maxLength: 64
minLength: 10
format: "password"
responses:
400:
description: "Invalid username supplied"
404:
description: "User not found"
security:
- http_basic_test: []
x-contentType: "application/xml; charset=utf-8"
x-accepts: "application/xml; charset=utf-8,application/json; charset=utf-8"
patch:
tags:
- "fake"
summary: "To test \"client\" model"
operationId: "testClientModel"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- in: "body"
name: "body"
description: "client model"
required: true
schema:
$ref: "#/definitions/Client"
responses:
200:
description: "successful operation"
schema:
$ref: "#/definitions/Client"
x-contentType: "application/json"
x-accepts: "application/json"
/pet: /pet:
post: post:
tags: tags:
@ -580,8 +365,8 @@ paths:
description: "ID of pet that needs to be fetched" description: "ID of pet that needs to be fetched"
required: true required: true
type: "integer" type: "integer"
maximum: 5.0 maximum: 5
minimum: 1.0 minimum: 1
format: "int64" format: "int64"
responses: responses:
200: 200:
@ -610,7 +395,6 @@ paths:
description: "ID of the order that needs to be deleted" description: "ID of the order that needs to be deleted"
required: true required: true
type: "string" type: "string"
minimum: 1.0
responses: responses:
400: 400:
description: "Invalid ID supplied" description: "Invalid ID supplied"
@ -820,6 +604,240 @@ paths:
description: "User not found" description: "User not found"
x-contentType: "application/json" x-contentType: "application/json"
x-accepts: "application/json" x-accepts: "application/json"
/fake:
get:
tags:
- "fake"
summary: "To test enum parameters"
description: "To test enum parameters"
operationId: "testEnumParameters"
consumes:
- "*/*"
produces:
- "*/*"
parameters:
- name: "enum_form_string_array"
in: "formData"
description: "Form parameter enum test (string array)"
required: false
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
- name: "enum_form_string"
in: "formData"
description: "Form parameter enum test (string)"
required: false
type: "string"
default: "-efg"
enum:
- "_abc"
- "-efg"
- "(xyz)"
- name: "enum_header_string_array"
in: "header"
description: "Header parameter enum test (string array)"
required: false
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
- name: "enum_header_string"
in: "header"
description: "Header parameter enum test (string)"
required: false
type: "string"
default: "-efg"
enum:
- "_abc"
- "-efg"
- "(xyz)"
- name: "enum_query_string_array"
in: "query"
description: "Query parameter enum test (string array)"
required: false
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
- name: "enum_query_string"
in: "query"
description: "Query parameter enum test (string)"
required: false
type: "string"
default: "-efg"
enum:
- "_abc"
- "-efg"
- "(xyz)"
- name: "enum_query_integer"
in: "query"
description: "Query parameter enum test (double)"
required: false
type: "integer"
format: "int32"
- name: "enum_query_double"
in: "formData"
description: "Query parameter enum test (double)"
required: false
type: "number"
format: "double"
responses:
400:
description: "Invalid request"
404:
description: "Not found"
x-contentType: "*/*"
x-accepts: "*/*"
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"
operationId: "testEndpointParameters"
consumes:
- "application/xml; charset=utf-8"
- "application/json; charset=utf-8"
produces:
- "application/xml; charset=utf-8"
- "application/json; charset=utf-8"
parameters:
- name: "integer"
in: "formData"
description: "None"
required: false
type: "integer"
maximum: 100
minimum: 10
- name: "int32"
in: "formData"
description: "None"
required: false
type: "integer"
maximum: 200
minimum: 20
format: "int32"
- name: "int64"
in: "formData"
description: "None"
required: false
type: "integer"
format: "int64"
- name: "number"
in: "formData"
description: "None"
required: true
type: "number"
maximum: 543.2
minimum: 32.1
- name: "float"
in: "formData"
description: "None"
required: false
type: "number"
maximum: 987.6
format: "float"
- name: "double"
in: "formData"
description: "None"
required: true
type: "number"
maximum: 123.4
minimum: 67.8
format: "double"
- name: "string"
in: "formData"
description: "None"
required: false
type: "string"
pattern: "/[a-z]/i"
- name: "pattern_without_delimiter"
in: "formData"
description: "None"
required: true
type: "string"
pattern: "^[A-Z].*"
- name: "byte"
in: "formData"
description: "None"
required: true
type: "string"
format: "byte"
- name: "binary"
in: "formData"
description: "None"
required: false
type: "string"
format: "binary"
- name: "date"
in: "formData"
description: "None"
required: false
type: "string"
format: "date"
- name: "dateTime"
in: "formData"
description: "None"
required: false
type: "string"
format: "date-time"
- name: "password"
in: "formData"
description: "None"
required: false
type: "string"
maxLength: 64
minLength: 10
format: "password"
- name: "callback"
in: "formData"
description: "None"
required: false
type: "string"
responses:
400:
description: "Invalid username supplied"
404:
description: "User not found"
security:
- http_basic_test: []
x-contentType: "application/xml; charset=utf-8"
x-accepts: "application/xml; charset=utf-8,application/json; charset=utf-8"
patch:
tags:
- "fake"
summary: "To test \"client\" model"
description: "To test \"client\" model"
operationId: "testClientModel"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- in: "body"
name: "body"
description: "client model"
required: true
schema:
$ref: "#/definitions/Client"
responses:
200:
description: "successful operation"
schema:
$ref: "#/definitions/Client"
x-contentType: "application/json"
x-accepts: "application/json"
securityDefinitions: securityDefinitions:
api_key: api_key:
type: "apiKey" type: "apiKey"
@ -999,6 +1017,11 @@ definitions:
description: "Model for testing model name starting with number" description: "Model for testing model name starting with number"
xml: xml:
name: "Name" name: "Name"
ClassModel:
properties:
_class:
type: "string"
description: "Model for testing model with \"_class\" property"
Dog: Dog:
allOf: allOf:
- $ref: "#/definitions/Animal" - $ref: "#/definitions/Animal"
@ -1038,13 +1061,13 @@ definitions:
properties: properties:
integer: integer:
type: "integer" type: "integer"
minimum: 10.0 minimum: 10
maximum: 100.0 maximum: 100
int32: int32:
type: "integer" type: "integer"
format: "int32" format: "int32"
minimum: 20.0 minimum: 20
maximum: 200.0 maximum: 200
int64: int64:
type: "integer" type: "integer"
format: "int64" format: "int64"
@ -1113,6 +1136,8 @@ definitions:
enum: enum:
- 1.1 - 1.1
- -1.2 - -1.2
outerEnum:
$ref: "#/definitions/OuterEnum"
AdditionalPropertiesClass: AdditionalPropertiesClass:
type: "object" type: "object"
properties: properties:
@ -1166,6 +1191,22 @@ definitions:
foo: foo:
type: "string" type: "string"
readOnly: true readOnly: true
Capitalization:
type: "object"
properties:
smallCamel:
type: "string"
CapitalCamel:
type: "string"
small_Snake:
type: "string"
Capital_Snake:
type: "string"
SCA_ETH_Flow_Points:
type: "string"
ATT_NAME:
type: "string"
description: "Name of the pet\n"
MapTest: MapTest:
type: "object" type: "object"
properties: properties:
@ -1238,6 +1279,12 @@ definitions:
enum: enum:
- "fish" - "fish"
- "crab" - "crab"
OuterEnum:
type: "string"
enum:
- "placed"
- "approved"
- "delivered"
externalDocs: externalDocs:
description: "Find out more about Swagger" description: "Find out more about Swagger"
url: "http://swagger.io" url: "http://swagger.io"

View File

@ -15,6 +15,8 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.jaxrs.PATCH;
import javax.validation.constraints.*;
@Path("/v2") @Path("/v2")
@Api(value = "/", description = "") @Api(value = "/", description = "")
@ -37,13 +39,13 @@ public interface PetApi {
@Path("/pet/findByStatus") @Path("/pet/findByStatus")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Finds Pets by status", tags={ "pet", }) @ApiOperation(value = "Finds Pets by status", tags={ "pet", })
public List<Pet> findPetsByStatus(@QueryParam("status")List<String> status); public List<Pet> findPetsByStatus(@QueryParam("status") @NotNull List<String> status);
@GET @GET
@Path("/pet/findByTags") @Path("/pet/findByTags")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Finds Pets by tags", tags={ "pet", }) @ApiOperation(value = "Finds Pets by tags", tags={ "pet", })
public List<Pet> findPetsByTags(@QueryParam("tags")List<String> tags); public List<Pet> findPetsByTags(@QueryParam("tags") @NotNull List<String> tags);
@GET @GET
@Path("/pet/{petId}") @Path("/pet/{petId}")

View File

@ -14,6 +14,8 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.jaxrs.PATCH;
import javax.validation.constraints.*;
@Path("/v2") @Path("/v2")
@Api(value = "/", description = "") @Api(value = "/", description = "")

View File

@ -14,6 +14,8 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.jaxrs.PATCH;
import javax.validation.constraints.*;
@Path("/v2") @Path("/v2")
@Api(value = "/", description = "") @Api(value = "/", description = "")
@ -53,7 +55,7 @@ public interface UserApi {
@Path("/user/login") @Path("/user/login")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Logs user into the system", tags={ "user", }) @ApiOperation(value = "Logs user into the system", tags={ "user", })
public String loginUser(@QueryParam("username")String username, @QueryParam("password")String password); public String loginUser(@QueryParam("username") @NotNull String username, @QueryParam("password") @NotNull String password);
@GET @GET
@Path("/user/logout") @Path("/user/logout")

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -26,9 +27,16 @@ public class Category {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Category id(Long id) {
this.id = id;
return this;
}
/** /**
* Get name * Get name
* @return name * @return name
@ -36,10 +44,17 @@ public class Category {
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Category name(String name) {
this.name = name;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -55,7 +70,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -28,9 +29,16 @@ public class ModelApiResponse {
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public void setCode(Integer code) { public void setCode(Integer code) {
this.code = code; this.code = code;
} }
public ModelApiResponse code(Integer code) {
this.code = code;
return this;
}
/** /**
* Get type * Get type
* @return type * @return type
@ -38,9 +46,16 @@ public class ModelApiResponse {
public String getType() { public String getType() {
return type; return type;
} }
public void setType(String type) { public void setType(String type) {
this.type = type; this.type = type;
} }
public ModelApiResponse type(String type) {
this.type = type;
return this;
}
/** /**
* Get message * Get message
* @return message * @return message
@ -48,10 +63,17 @@ public class ModelApiResponse {
public String getMessage() { public String getMessage() {
return message; return message;
} }
public void setMessage(String message) { public void setMessage(String message) {
this.message = message; this.message = message;
} }
public ModelApiResponse message(String message) {
this.message = message;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -68,7 +90,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -27,7 +28,7 @@ public class Order {
@XmlEnum(String.class) @XmlEnum(String.class)
public enum StatusEnum { public enum StatusEnum {
@XmlEnumValue("placed") PLACED(String.valueOf("placed")), @XmlEnumValue("approved") APPROVED(String.valueOf("approved")), @XmlEnumValue("delivered") DELIVERED(String.valueOf("delivered")); @XmlEnumValue("placed") PLACED(String.valueOf("placed")), @XmlEnumValue("approved") APPROVED(String.valueOf("approved")), @XmlEnumValue("delivered") DELIVERED(String.valueOf("delivered"));
private String value; private String value;
@ -67,9 +68,16 @@ public enum StatusEnum {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Order id(Long id) {
this.id = id;
return this;
}
/** /**
* Get petId * Get petId
* @return petId * @return petId
@ -77,9 +85,16 @@ public enum StatusEnum {
public Long getPetId() { public Long getPetId() {
return petId; return petId;
} }
public void setPetId(Long petId) { public void setPetId(Long petId) {
this.petId = petId; this.petId = petId;
} }
public Order petId(Long petId) {
this.petId = petId;
return this;
}
/** /**
* Get quantity * Get quantity
* @return quantity * @return quantity
@ -87,9 +102,16 @@ public enum StatusEnum {
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
} }
public void setQuantity(Integer quantity) { public void setQuantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
} }
public Order quantity(Integer quantity) {
this.quantity = quantity;
return this;
}
/** /**
* Get shipDate * Get shipDate
* @return shipDate * @return shipDate
@ -97,9 +119,16 @@ public enum StatusEnum {
public javax.xml.datatype.XMLGregorianCalendar getShipDate() { public javax.xml.datatype.XMLGregorianCalendar getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) { public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }
public Order shipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
this.shipDate = shipDate;
return this;
}
/** /**
* Order Status * Order Status
* @return status * @return status
@ -107,9 +136,16 @@ public enum StatusEnum {
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
public Order status(StatusEnum status) {
this.status = status;
return this;
}
/** /**
* Get complete * Get complete
* @return complete * @return complete
@ -117,10 +153,17 @@ public enum StatusEnum {
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;
} }
public void setComplete(Boolean complete) { public void setComplete(Boolean complete) {
this.complete = complete; this.complete = complete;
} }
public Order complete(Boolean complete) {
this.complete = complete;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -140,7 +183,7 @@ public enum StatusEnum {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -5,6 +5,7 @@ import io.swagger.model.Category;
import io.swagger.model.Tag; import io.swagger.model.Tag;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -33,7 +34,7 @@ public class Pet {
@XmlEnum(String.class) @XmlEnum(String.class)
public enum StatusEnum { public enum StatusEnum {
@XmlEnumValue("available") AVAILABLE(String.valueOf("available")), @XmlEnumValue("pending") PENDING(String.valueOf("pending")), @XmlEnumValue("sold") SOLD(String.valueOf("sold")); @XmlEnumValue("available") AVAILABLE(String.valueOf("available")), @XmlEnumValue("pending") PENDING(String.valueOf("pending")), @XmlEnumValue("sold") SOLD(String.valueOf("sold"));
private String value; private String value;
@ -71,9 +72,16 @@ public enum StatusEnum {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Pet id(Long id) {
this.id = id;
return this;
}
/** /**
* Get category * Get category
* @return category * @return category
@ -81,29 +89,57 @@ public enum StatusEnum {
public Category getCategory() { public Category getCategory() {
return category; return category;
} }
public void setCategory(Category category) { public void setCategory(Category category) {
this.category = category; this.category = category;
} }
public Pet category(Category category) {
this.category = category;
return this;
}
/** /**
* Get name * Get name
* @return name * @return name
**/ **/
@NotNull
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Pet name(String name) {
this.name = name;
return this;
}
/** /**
* Get photoUrls * Get photoUrls
* @return photoUrls * @return photoUrls
**/ **/
@NotNull
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
public Pet addPhotoUrlsItem(String photoUrlsItem) {
this.photoUrls.add(photoUrlsItem);
return this;
}
/** /**
* Get tags * Get tags
* @return tags * @return tags
@ -111,9 +147,21 @@ public enum StatusEnum {
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }
public Pet tags(List<Tag> tags) {
this.tags = tags;
return this;
}
public Pet addTagsItem(Tag tagsItem) {
this.tags.add(tagsItem);
return this;
}
/** /**
* pet status in the store * pet status in the store
* @return status * @return status
@ -121,10 +169,17 @@ public enum StatusEnum {
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
public Pet status(StatusEnum status) {
this.status = status;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -144,7 +199,7 @@ public enum StatusEnum {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -26,9 +27,16 @@ public class Tag {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Tag id(Long id) {
this.id = id;
return this;
}
/** /**
* Get name * Get name
* @return name * @return name
@ -36,10 +44,17 @@ public class Tag {
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Tag name(String name) {
this.name = name;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -55,7 +70,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -38,9 +39,16 @@ public class User {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public User id(Long id) {
this.id = id;
return this;
}
/** /**
* Get username * Get username
* @return username * @return username
@ -48,9 +56,16 @@ public class User {
public String getUsername() { public String getUsername() {
return username; return username;
} }
public void setUsername(String username) { public void setUsername(String username) {
this.username = username; this.username = username;
} }
public User username(String username) {
this.username = username;
return this;
}
/** /**
* Get firstName * Get firstName
* @return firstName * @return firstName
@ -58,9 +73,16 @@ public class User {
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
public void setFirstName(String firstName) { public void setFirstName(String firstName) {
this.firstName = firstName; this.firstName = firstName;
} }
public User firstName(String firstName) {
this.firstName = firstName;
return this;
}
/** /**
* Get lastName * Get lastName
* @return lastName * @return lastName
@ -68,9 +90,16 @@ public class User {
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }
public void setLastName(String lastName) { public void setLastName(String lastName) {
this.lastName = lastName; this.lastName = lastName;
} }
public User lastName(String lastName) {
this.lastName = lastName;
return this;
}
/** /**
* Get email * Get email
* @return email * @return email
@ -78,9 +107,16 @@ public class User {
public String getEmail() { public String getEmail() {
return email; return email;
} }
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
public User email(String email) {
this.email = email;
return this;
}
/** /**
* Get password * Get password
* @return password * @return password
@ -88,9 +124,16 @@ public class User {
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }
public User password(String password) {
this.password = password;
return this;
}
/** /**
* Get phone * Get phone
* @return phone * @return phone
@ -98,9 +141,16 @@ public class User {
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
public void setPhone(String phone) { public void setPhone(String phone) {
this.phone = phone; this.phone = phone;
} }
public User phone(String phone) {
this.phone = phone;
return this;
}
/** /**
* User Status * User Status
* @return userStatus * @return userStatus
@ -108,10 +158,17 @@ public class User {
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;
} }
public void setUserStatus(Integer userStatus) { public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus; this.userStatus = userStatus;
} }
public User userStatus(Integer userStatus) {
this.userStatus = userStatus;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -133,7 +190,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -57,7 +57,7 @@ public class Category {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -89,7 +89,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -75,7 +75,7 @@ public class ModelApiResponse {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -109,7 +109,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -163,7 +163,7 @@ public enum StatusEnum {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -203,7 +203,7 @@ public enum StatusEnum {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -169,7 +169,7 @@ public enum StatusEnum {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -209,7 +209,7 @@ public enum StatusEnum {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -57,7 +57,7 @@ public class Tag {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -89,7 +89,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -166,7 +166,7 @@ public class User {
@Override @Override
public boolean equals(Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
return true; return true;
} }
@ -210,7 +210,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private String toIndentedString(Object o) { private String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -636,6 +636,11 @@
} }
}, },
"securityDefinitions" : { "securityDefinitions" : {
"api_key" : {
"type" : "apiKey",
"name" : "api_key",
"in" : "header"
},
"petstore_auth" : { "petstore_auth" : {
"type" : "oauth2", "type" : "oauth2",
"authorizationUrl" : "http://petstore.swagger.io/api/oauth/dialog", "authorizationUrl" : "http://petstore.swagger.io/api/oauth/dialog",
@ -644,11 +649,6 @@
"write:pets" : "modify pets in your account", "write:pets" : "modify pets in your account",
"read:pets" : "read your pets" "read:pets" : "read your pets"
} }
},
"api_key" : {
"type" : "apiKey",
"name" : "api_key",
"in" : "header"
} }
}, },
"definitions" : { "definitions" : {

View File

@ -15,6 +15,8 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.jaxrs.PATCH;
import javax.validation.constraints.*;
@Path("/") @Path("/")
@Api(value = "/", description = "") @Api(value = "/", description = "")
@ -37,13 +39,13 @@ public interface PetApi {
@Path("/pet/findByStatus") @Path("/pet/findByStatus")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Finds Pets by status", tags={ "pet", }) @ApiOperation(value = "Finds Pets by status", tags={ "pet", })
public List<Pet> findPetsByStatus(@QueryParam("status")List<String> status); public List<Pet> findPetsByStatus(@QueryParam("status") @NotNull List<String> status);
@GET @GET
@Path("/pet/findByTags") @Path("/pet/findByTags")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Finds Pets by tags", tags={ "pet", }) @ApiOperation(value = "Finds Pets by tags", tags={ "pet", })
public List<Pet> findPetsByTags(@QueryParam("tags")List<String> tags); public List<Pet> findPetsByTags(@QueryParam("tags") @NotNull List<String> tags);
@GET @GET
@Path("/pet/{petId}") @Path("/pet/{petId}")

View File

@ -14,6 +14,8 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.jaxrs.PATCH;
import javax.validation.constraints.*;
@Path("/") @Path("/")
@Api(value = "/", description = "") @Api(value = "/", description = "")

View File

@ -14,6 +14,8 @@ import org.apache.cxf.jaxrs.ext.multipart.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.jaxrs.PATCH;
import javax.validation.constraints.*;
@Path("/") @Path("/")
@Api(value = "/", description = "") @Api(value = "/", description = "")
@ -53,7 +55,7 @@ public interface UserApi {
@Path("/user/login") @Path("/user/login")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Logs user into the system", tags={ "user", }) @ApiOperation(value = "Logs user into the system", tags={ "user", })
public String loginUser(@QueryParam("username")String username, @QueryParam("password")String password); public String loginUser(@QueryParam("username") @NotNull String username, @QueryParam("password") @NotNull String password);
@GET @GET
@Path("/user/logout") @Path("/user/logout")

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -26,9 +27,16 @@ public class Category {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Category id(Long id) {
this.id = id;
return this;
}
/** /**
* Get name * Get name
* @return name * @return name
@ -36,10 +44,17 @@ public class Category {
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Category name(String name) {
this.name = name;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -55,7 +70,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -28,9 +29,16 @@ public class ModelApiResponse {
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public void setCode(Integer code) { public void setCode(Integer code) {
this.code = code; this.code = code;
} }
public ModelApiResponse code(Integer code) {
this.code = code;
return this;
}
/** /**
* Get type * Get type
* @return type * @return type
@ -38,9 +46,16 @@ public class ModelApiResponse {
public String getType() { public String getType() {
return type; return type;
} }
public void setType(String type) { public void setType(String type) {
this.type = type; this.type = type;
} }
public ModelApiResponse type(String type) {
this.type = type;
return this;
}
/** /**
* Get message * Get message
* @return message * @return message
@ -48,10 +63,17 @@ public class ModelApiResponse {
public String getMessage() { public String getMessage() {
return message; return message;
} }
public void setMessage(String message) { public void setMessage(String message) {
this.message = message; this.message = message;
} }
public ModelApiResponse message(String message) {
this.message = message;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -68,7 +90,7 @@ public class ModelApiResponse {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -27,7 +28,7 @@ public class Order {
@XmlEnum(String.class) @XmlEnum(String.class)
public enum StatusEnum { public enum StatusEnum {
@XmlEnumValue("placed") PLACED(String.valueOf("placed")), @XmlEnumValue("approved") APPROVED(String.valueOf("approved")), @XmlEnumValue("delivered") DELIVERED(String.valueOf("delivered")); @XmlEnumValue("placed") PLACED(String.valueOf("placed")), @XmlEnumValue("approved") APPROVED(String.valueOf("approved")), @XmlEnumValue("delivered") DELIVERED(String.valueOf("delivered"));
private String value; private String value;
@ -67,9 +68,16 @@ public enum StatusEnum {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Order id(Long id) {
this.id = id;
return this;
}
/** /**
* Get petId * Get petId
* @return petId * @return petId
@ -77,9 +85,16 @@ public enum StatusEnum {
public Long getPetId() { public Long getPetId() {
return petId; return petId;
} }
public void setPetId(Long petId) { public void setPetId(Long petId) {
this.petId = petId; this.petId = petId;
} }
public Order petId(Long petId) {
this.petId = petId;
return this;
}
/** /**
* Get quantity * Get quantity
* @return quantity * @return quantity
@ -87,9 +102,16 @@ public enum StatusEnum {
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
} }
public void setQuantity(Integer quantity) { public void setQuantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
} }
public Order quantity(Integer quantity) {
this.quantity = quantity;
return this;
}
/** /**
* Get shipDate * Get shipDate
* @return shipDate * @return shipDate
@ -97,9 +119,16 @@ public enum StatusEnum {
public javax.xml.datatype.XMLGregorianCalendar getShipDate() { public javax.xml.datatype.XMLGregorianCalendar getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) { public void setShipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }
public Order shipDate(javax.xml.datatype.XMLGregorianCalendar shipDate) {
this.shipDate = shipDate;
return this;
}
/** /**
* Order Status * Order Status
* @return status * @return status
@ -107,9 +136,16 @@ public enum StatusEnum {
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
public Order status(StatusEnum status) {
this.status = status;
return this;
}
/** /**
* Get complete * Get complete
* @return complete * @return complete
@ -117,10 +153,17 @@ public enum StatusEnum {
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;
} }
public void setComplete(Boolean complete) { public void setComplete(Boolean complete) {
this.complete = complete; this.complete = complete;
} }
public Order complete(Boolean complete) {
this.complete = complete;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -140,7 +183,7 @@ public enum StatusEnum {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -5,6 +5,7 @@ import io.swagger.model.Category;
import io.swagger.model.Tag; import io.swagger.model.Tag;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -33,7 +34,7 @@ public class Pet {
@XmlEnum(String.class) @XmlEnum(String.class)
public enum StatusEnum { public enum StatusEnum {
@XmlEnumValue("available") AVAILABLE(String.valueOf("available")), @XmlEnumValue("pending") PENDING(String.valueOf("pending")), @XmlEnumValue("sold") SOLD(String.valueOf("sold")); @XmlEnumValue("available") AVAILABLE(String.valueOf("available")), @XmlEnumValue("pending") PENDING(String.valueOf("pending")), @XmlEnumValue("sold") SOLD(String.valueOf("sold"));
private String value; private String value;
@ -71,9 +72,16 @@ public enum StatusEnum {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Pet id(Long id) {
this.id = id;
return this;
}
/** /**
* Get category * Get category
* @return category * @return category
@ -81,29 +89,57 @@ public enum StatusEnum {
public Category getCategory() { public Category getCategory() {
return category; return category;
} }
public void setCategory(Category category) { public void setCategory(Category category) {
this.category = category; this.category = category;
} }
public Pet category(Category category) {
this.category = category;
return this;
}
/** /**
* Get name * Get name
* @return name * @return name
**/ **/
@NotNull
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Pet name(String name) {
this.name = name;
return this;
}
/** /**
* Get photoUrls * Get photoUrls
* @return photoUrls * @return photoUrls
**/ **/
@NotNull
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
return this;
}
public Pet addPhotoUrlsItem(String photoUrlsItem) {
this.photoUrls.add(photoUrlsItem);
return this;
}
/** /**
* Get tags * Get tags
* @return tags * @return tags
@ -111,9 +147,21 @@ public enum StatusEnum {
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }
public Pet tags(List<Tag> tags) {
this.tags = tags;
return this;
}
public Pet addTagsItem(Tag tagsItem) {
this.tags.add(tagsItem);
return this;
}
/** /**
* pet status in the store * pet status in the store
* @return status * @return status
@ -121,10 +169,17 @@ public enum StatusEnum {
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
public Pet status(StatusEnum status) {
this.status = status;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -144,7 +199,7 @@ public enum StatusEnum {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -26,9 +27,16 @@ public class Tag {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Tag id(Long id) {
this.id = id;
return this;
}
/** /**
* Get name * Get name
* @return name * @return name
@ -36,10 +44,17 @@ public class Tag {
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Tag name(String name) {
this.name = name;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -55,7 +70,7 @@ public class Tag {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -1,6 +1,7 @@
package io.swagger.model; package io.swagger.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -38,9 +39,16 @@ public class User {
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public User id(Long id) {
this.id = id;
return this;
}
/** /**
* Get username * Get username
* @return username * @return username
@ -48,9 +56,16 @@ public class User {
public String getUsername() { public String getUsername() {
return username; return username;
} }
public void setUsername(String username) { public void setUsername(String username) {
this.username = username; this.username = username;
} }
public User username(String username) {
this.username = username;
return this;
}
/** /**
* Get firstName * Get firstName
* @return firstName * @return firstName
@ -58,9 +73,16 @@ public class User {
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
public void setFirstName(String firstName) { public void setFirstName(String firstName) {
this.firstName = firstName; this.firstName = firstName;
} }
public User firstName(String firstName) {
this.firstName = firstName;
return this;
}
/** /**
* Get lastName * Get lastName
* @return lastName * @return lastName
@ -68,9 +90,16 @@ public class User {
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }
public void setLastName(String lastName) { public void setLastName(String lastName) {
this.lastName = lastName; this.lastName = lastName;
} }
public User lastName(String lastName) {
this.lastName = lastName;
return this;
}
/** /**
* Get email * Get email
* @return email * @return email
@ -78,9 +107,16 @@ public class User {
public String getEmail() { public String getEmail() {
return email; return email;
} }
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
public User email(String email) {
this.email = email;
return this;
}
/** /**
* Get password * Get password
* @return password * @return password
@ -88,9 +124,16 @@ public class User {
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }
public User password(String password) {
this.password = password;
return this;
}
/** /**
* Get phone * Get phone
* @return phone * @return phone
@ -98,9 +141,16 @@ public class User {
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
public void setPhone(String phone) { public void setPhone(String phone) {
this.phone = phone; this.phone = phone;
} }
public User phone(String phone) {
this.phone = phone;
return this;
}
/** /**
* User Status * User Status
* @return userStatus * @return userStatus
@ -108,10 +158,17 @@ public class User {
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;
} }
public void setUserStatus(Integer userStatus) { public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus; this.userStatus = userStatus;
} }
public User userStatus(Integer userStatus) {
this.userStatus = userStatus;
return this;
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -133,7 +190,7 @@ public class User {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -81,7 +81,7 @@ public class AdditionalPropertiesClass {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -71,7 +71,7 @@ public class Animal {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -31,7 +31,7 @@ public class AnimalFarm extends ArrayList<Animal> {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -56,7 +56,7 @@ public class ArrayOfArrayOfNumberOnly {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -56,7 +56,7 @@ public class ArrayOfNumberOnly {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -106,7 +106,7 @@ public class ArrayTest {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -148,7 +148,7 @@ public class Capitalization {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -49,7 +49,7 @@ public class Cat extends Animal {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -68,7 +68,7 @@ public class Category {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -50,7 +50,7 @@ public class ClassModel {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -48,7 +48,7 @@ public class Client {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -49,7 +49,7 @@ public class Dog extends Animal {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

View File

@ -141,7 +141,7 @@ public enum ArrayEnumEnum {
* Convert the given object to string with each line indented by 4 spaces * Convert the given object to string with each line indented by 4 spaces
* (except the first line). * (except the first line).
*/ */
private static String toIndentedString(Object o) { private static String toIndentedString(java.lang.Object o) {
if (o == null) { if (o == null) {
return "null"; return "null";
} }

Some files were not shown because too many files have changed in this diff Show More