forked from loafle/openapi-generator-original
Update JAX-RS client samples (#17262)
* update jaxrs client samples * move configs
This commit is contained in:
parent
939ffdd73c
commit
f033b11408
@ -1 +1 @@
|
|||||||
5.4.0-SNAPSHOT
|
7.2.0-SNAPSHOT
|
@ -147,7 +147,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||||
<artifactId>jackson-datatype-joda</artifactId>
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||||
<version>${jackson-jaxrs-version}</version>
|
<version>${jackson-jaxrs-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -156,6 +156,11 @@
|
|||||||
<version>${jakarta-annotation-version}</version>
|
<version>${jakarta-annotation-version}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>joda-time</groupId>
|
||||||
|
<artifactId>joda-time</artifactId>
|
||||||
|
<version>2.10.13</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
@ -167,16 +172,16 @@
|
|||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.7</java.version>
|
<java.version>1.8</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.18</swagger-core-version>
|
<swagger-core-version>1.5.18</swagger-core-version>
|
||||||
<jetty-version>9.2.9.v20150224</jetty-version>
|
<jetty-version>9.2.9.v20150224</jetty-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<logback-version>1.2.10</logback-version>
|
<logback-version>1.4.13</logback-version>
|
||||||
<cxf-version>3.3.0</cxf-version>
|
<cxf-version>3.3.0</cxf-version>
|
||||||
<jackson-jaxrs-version>2.9.9</jackson-jaxrs-version>
|
<jackson-jaxrs-version>2.15.2</jackson-jaxrs-version>
|
||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -3,12 +3,14 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A category for a pet
|
* A category for a pet
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A category for a pet")
|
@ApiModel(description="A category for a pet")
|
||||||
|
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -52,6 +54,23 @@ public class Category {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Category category = (Category) o;
|
||||||
|
return Objects.equals(id, category.id) &&
|
||||||
|
Objects.equals(name, category.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describes the result of uploading an image resource
|
* Describes the result of uploading an image resource
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="Describes the result of uploading an image resource")
|
@ApiModel(description="Describes the result of uploading an image resource")
|
||||||
|
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -73,6 +76,24 @@ public class ModelApiResponse {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ModelApiResponse _apiResponse = (ModelApiResponse) o;
|
||||||
|
return Objects.equals(code, _apiResponse.code) &&
|
||||||
|
Objects.equals(type, _apiResponse.type) &&
|
||||||
|
Objects.equals(message, _apiResponse.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(code, type, message);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -6,12 +6,14 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An order for a pets from the pet store
|
* An order for a pets from the pet store
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="An order for a pets from the pet store")
|
@ApiModel(description="An order for a pets from the pet store")
|
||||||
|
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -177,6 +179,27 @@ PLACED(String.valueOf("placed")), APPROVED(String.valueOf("approved")), DELIVERE
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Order order = (Order) o;
|
||||||
|
return Objects.equals(id, order.id) &&
|
||||||
|
Objects.equals(petId, order.petId) &&
|
||||||
|
Objects.equals(quantity, order.quantity) &&
|
||||||
|
Objects.equals(shipDate, order.shipDate) &&
|
||||||
|
Objects.equals(status, order.status) &&
|
||||||
|
Objects.equals(complete, order.complete);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -4,17 +4,20 @@ 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 java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.model.Category;
|
import org.openapitools.model.Category;
|
||||||
import org.openapitools.model.Tag;
|
import org.openapitools.model.Tag;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A pet for sale in the pet store
|
* A pet for sale in the pet store
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A pet for sale in the pet store")
|
@ApiModel(description="A pet for sale in the pet store")
|
||||||
|
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -27,10 +30,10 @@ public class Pet {
|
|||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags;
|
||||||
|
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
@ -190,6 +193,27 @@ AVAILABLE(String.valueOf("available")), PENDING(String.valueOf("pending")), SOLD
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Pet pet = (Pet) o;
|
||||||
|
return Objects.equals(id, pet.id) &&
|
||||||
|
Objects.equals(category, pet.category) &&
|
||||||
|
Objects.equals(name, pet.name) &&
|
||||||
|
Objects.equals(photoUrls, pet.photoUrls) &&
|
||||||
|
Objects.equals(tags, pet.tags) &&
|
||||||
|
Objects.equals(status, pet.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, category, name, photoUrls, tags, status);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -3,12 +3,14 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A tag for a pet
|
* A tag for a pet
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A tag for a pet")
|
@ApiModel(description="A tag for a pet")
|
||||||
|
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -52,6 +54,23 @@ public class Tag {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Tag tag = (Tag) o;
|
||||||
|
return Objects.equals(id, tag.id) &&
|
||||||
|
Objects.equals(name, tag.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -3,12 +3,14 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A User who is purchasing from the pet store
|
* A User who is purchasing from the pet store
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A User who is purchasing from the pet store")
|
@ApiModel(description="A User who is purchasing from the pet store")
|
||||||
|
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -181,6 +183,29 @@ public class User {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
User user = (User) o;
|
||||||
|
return Objects.equals(id, user.id) &&
|
||||||
|
Objects.equals(username, user.username) &&
|
||||||
|
Objects.equals(firstName, user.firstName) &&
|
||||||
|
Objects.equals(lastName, user.lastName) &&
|
||||||
|
Objects.equals(email, user.email) &&
|
||||||
|
Objects.equals(password, user.password) &&
|
||||||
|
Objects.equals(phone, user.phone) &&
|
||||||
|
Objects.equals(userStatus, user.userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -1 +1 @@
|
|||||||
5.4.0-SNAPSHOT
|
7.2.0-SNAPSHOT
|
@ -147,7 +147,7 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||||
<artifactId>jackson-datatype-joda</artifactId>
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||||
<version>${jackson-jaxrs-version}</version>
|
<version>${jackson-jaxrs-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -156,6 +156,11 @@
|
|||||||
<version>${jakarta-annotation-version}</version>
|
<version>${jakarta-annotation-version}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>joda-time</groupId>
|
||||||
|
<artifactId>joda-time</artifactId>
|
||||||
|
<version>2.10.13</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
@ -167,16 +172,16 @@
|
|||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.7</java.version>
|
<java.version>1.8</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.18</swagger-core-version>
|
<swagger-core-version>1.5.18</swagger-core-version>
|
||||||
<jetty-version>9.2.9.v20150224</jetty-version>
|
<jetty-version>9.2.9.v20150224</jetty-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<logback-version>1.2.10</logback-version>
|
<logback-version>1.4.13</logback-version>
|
||||||
<cxf-version>3.3.0</cxf-version>
|
<cxf-version>3.3.0</cxf-version>
|
||||||
<jackson-jaxrs-version>2.9.9</jackson-jaxrs-version>
|
<jackson-jaxrs-version>2.15.2</jackson-jaxrs-version>
|
||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -3,12 +3,14 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A category for a pet
|
* A category for a pet
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A category for a pet")
|
@ApiModel(description="A category for a pet")
|
||||||
|
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -52,6 +54,23 @@ public class Category {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Category category = (Category) o;
|
||||||
|
return Objects.equals(id, category.id) &&
|
||||||
|
Objects.equals(name, category.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -3,12 +3,14 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describes the result of uploading an image resource
|
* Describes the result of uploading an image resource
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="Describes the result of uploading an image resource")
|
@ApiModel(description="Describes the result of uploading an image resource")
|
||||||
|
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -73,6 +75,24 @@ public class ModelApiResponse {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ModelApiResponse _apiResponse = (ModelApiResponse) o;
|
||||||
|
return Objects.equals(code, _apiResponse.code) &&
|
||||||
|
Objects.equals(type, _apiResponse.type) &&
|
||||||
|
Objects.equals(message, _apiResponse.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(code, type, message);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -4,12 +4,14 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An order for a pets from the pet store
|
* An order for a pets from the pet store
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="An order for a pets from the pet store")
|
@ApiModel(description="An order for a pets from the pet store")
|
||||||
|
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -173,6 +175,27 @@ PLACED(String.valueOf("placed")), APPROVED(String.valueOf("approved")), DELIVERE
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Order order = (Order) o;
|
||||||
|
return Objects.equals(id, order.id) &&
|
||||||
|
Objects.equals(petId, order.petId) &&
|
||||||
|
Objects.equals(quantity, order.quantity) &&
|
||||||
|
Objects.equals(shipDate, order.shipDate) &&
|
||||||
|
Objects.equals(status, order.status) &&
|
||||||
|
Objects.equals(complete, order.complete);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -2,17 +2,20 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.model.Category;
|
import org.openapitools.model.Category;
|
||||||
import org.openapitools.model.Tag;
|
import org.openapitools.model.Tag;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A pet for sale in the pet store
|
* A pet for sale in the pet store
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A pet for sale in the pet store")
|
@ApiModel(description="A pet for sale in the pet store")
|
||||||
|
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -25,10 +28,10 @@ public class Pet {
|
|||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags;
|
||||||
|
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
@ -186,6 +189,27 @@ AVAILABLE(String.valueOf("available")), PENDING(String.valueOf("pending")), SOLD
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Pet pet = (Pet) o;
|
||||||
|
return Objects.equals(id, pet.id) &&
|
||||||
|
Objects.equals(category, pet.category) &&
|
||||||
|
Objects.equals(name, pet.name) &&
|
||||||
|
Objects.equals(photoUrls, pet.photoUrls) &&
|
||||||
|
Objects.equals(tags, pet.tags) &&
|
||||||
|
Objects.equals(status, pet.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, category, name, photoUrls, tags, status);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -3,12 +3,14 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A tag for a pet
|
* A tag for a pet
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A tag for a pet")
|
@ApiModel(description="A tag for a pet")
|
||||||
|
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -52,6 +54,23 @@ public class Tag {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Tag tag = (Tag) o;
|
||||||
|
return Objects.equals(id, tag.id) &&
|
||||||
|
Objects.equals(name, tag.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -3,12 +3,14 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A User who is purchasing from the pet store
|
* A User who is purchasing from the pet store
|
||||||
**/
|
**/
|
||||||
@ApiModel(description="A User who is purchasing from the pet store")
|
@ApiModel(description="A User who is purchasing from the pet store")
|
||||||
|
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@ -181,6 +183,29 @@ public class User {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
User user = (User) o;
|
||||||
|
return Objects.equals(id, user.id) &&
|
||||||
|
Objects.equals(username, user.username) &&
|
||||||
|
Objects.equals(firstName, user.firstName) &&
|
||||||
|
Objects.equals(lastName, user.lastName) &&
|
||||||
|
Objects.equals(email, user.email) &&
|
||||||
|
Objects.equals(password, user.password) &&
|
||||||
|
Objects.equals(phone, user.phone) &&
|
||||||
|
Objects.equals(userStatus, user.userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -21,15 +21,12 @@ src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java
|
|||||||
src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java
|
src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java
|
||||||
src/gen/java/org/openapitools/model/ArrayTest.java
|
src/gen/java/org/openapitools/model/ArrayTest.java
|
||||||
src/gen/java/org/openapitools/model/BigCat.java
|
src/gen/java/org/openapitools/model/BigCat.java
|
||||||
src/gen/java/org/openapitools/model/BigCatAllOf.java
|
|
||||||
src/gen/java/org/openapitools/model/Capitalization.java
|
src/gen/java/org/openapitools/model/Capitalization.java
|
||||||
src/gen/java/org/openapitools/model/Cat.java
|
src/gen/java/org/openapitools/model/Cat.java
|
||||||
src/gen/java/org/openapitools/model/CatAllOf.java
|
|
||||||
src/gen/java/org/openapitools/model/Category.java
|
src/gen/java/org/openapitools/model/Category.java
|
||||||
src/gen/java/org/openapitools/model/ClassModel.java
|
src/gen/java/org/openapitools/model/ClassModel.java
|
||||||
src/gen/java/org/openapitools/model/Client.java
|
src/gen/java/org/openapitools/model/Client.java
|
||||||
src/gen/java/org/openapitools/model/Dog.java
|
src/gen/java/org/openapitools/model/Dog.java
|
||||||
src/gen/java/org/openapitools/model/DogAllOf.java
|
|
||||||
src/gen/java/org/openapitools/model/EnumArrays.java
|
src/gen/java/org/openapitools/model/EnumArrays.java
|
||||||
src/gen/java/org/openapitools/model/EnumClass.java
|
src/gen/java/org/openapitools/model/EnumClass.java
|
||||||
src/gen/java/org/openapitools/model/EnumTest.java
|
src/gen/java/org/openapitools/model/EnumTest.java
|
||||||
|
@ -1 +1 @@
|
|||||||
5.4.0-SNAPSHOT
|
7.2.0-SNAPSHOT
|
@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>2.0.4.RELEASE</version>
|
<version>2.7.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>src/main/java</sourceDirectory>
|
<sourceDirectory>src/main/java</sourceDirectory>
|
||||||
@ -233,7 +233,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.openapitools</groupId>
|
<groupId>org.openapitools</groupId>
|
||||||
<artifactId>openapi-generator</artifactId>
|
<artifactId>openapi-generator</artifactId>
|
||||||
<version>5.4.0-SNAPSHOT</version>
|
<version>7.2.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<repositories>
|
<repositories>
|
||||||
@ -260,7 +260,7 @@
|
|||||||
<jetty-version>9.2.9.v20150224</jetty-version>
|
<jetty-version>9.2.9.v20150224</jetty-version>
|
||||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||||
<cxf-version>3.3.0</cxf-version>
|
<cxf-version>3.3.0</cxf-version>
|
||||||
<jackson-jaxrs-version>2.9.9</jackson-jaxrs-version>
|
<jackson-jaxrs-version>2.15.2</jackson-jaxrs-version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -3,6 +3,7 @@ package org.openapitools.api;
|
|||||||
import org.openapitools.model.Client;
|
import org.openapitools.model.Client;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
@ -44,5 +45,5 @@ public interface AnotherFakeApi {
|
|||||||
@ApiOperation(value = "To test special tags", tags={ "$another-fake?" })
|
@ApiOperation(value = "To test special tags", tags={ "$another-fake?" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
||||||
public Client call123testSpecialTags(@Valid Client body);
|
public Client call123testSpecialTags(@HeaderParam("uuid_test") @NotNull UUID uuidTest, @Valid Client body);
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,23 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o;
|
||||||
|
return super.equals(o) && Objects.equals(name, additionalPropertiesAnyType.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -40,6 +40,23 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o;
|
||||||
|
return super.equals(o) && Objects.equals(name, additionalPropertiesArray.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -39,6 +39,23 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o;
|
||||||
|
return super.equals(o) && Objects.equals(name, additionalPropertiesBoolean.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,33 +15,33 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
public class AdditionalPropertiesClass {
|
public class AdditionalPropertiesClass {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private Map<String, String> mapString = null;
|
private Map<String, String> mapString = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, BigDecimal> mapNumber = null;
|
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private Map<String, Integer> mapInteger = null;
|
private Map<String, Integer> mapInteger = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private Map<String, Boolean> mapBoolean = null;
|
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, List<Integer>> mapArrayInteger = null;
|
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, List<Object>> mapArrayAnytype = null;
|
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, Map<String, String>> mapMapString = null;
|
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, Map<String, Object>> mapMapAnytype = null;
|
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
@ -380,6 +380,33 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
|
||||||
|
return Objects.equals(mapString, additionalPropertiesClass.mapString) &&
|
||||||
|
Objects.equals(mapNumber, additionalPropertiesClass.mapNumber) &&
|
||||||
|
Objects.equals(mapInteger, additionalPropertiesClass.mapInteger) &&
|
||||||
|
Objects.equals(mapBoolean, additionalPropertiesClass.mapBoolean) &&
|
||||||
|
Objects.equals(mapArrayInteger, additionalPropertiesClass.mapArrayInteger) &&
|
||||||
|
Objects.equals(mapArrayAnytype, additionalPropertiesClass.mapArrayAnytype) &&
|
||||||
|
Objects.equals(mapMapString, additionalPropertiesClass.mapMapString) &&
|
||||||
|
Objects.equals(mapMapAnytype, additionalPropertiesClass.mapMapAnytype) &&
|
||||||
|
Objects.equals(anytype1, additionalPropertiesClass.anytype1) &&
|
||||||
|
Objects.equals(anytype2, additionalPropertiesClass.anytype2) &&
|
||||||
|
Objects.equals(anytype3, additionalPropertiesClass.anytype3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -39,6 +39,23 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesInteger additionalPropertiesInteger = (AdditionalPropertiesInteger) o;
|
||||||
|
return super.equals(o) && Objects.equals(name, additionalPropertiesInteger.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -40,6 +40,23 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesNumber additionalPropertiesNumber = (AdditionalPropertiesNumber) o;
|
||||||
|
return super.equals(o) && Objects.equals(name, additionalPropertiesNumber.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -39,6 +39,23 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesObject additionalPropertiesObject = (AdditionalPropertiesObject) o;
|
||||||
|
return super.equals(o) && Objects.equals(name, additionalPropertiesObject.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -39,6 +39,23 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AdditionalPropertiesString additionalPropertiesString = (AdditionalPropertiesString) o;
|
||||||
|
return super.equals(o) && Objects.equals(name, additionalPropertiesString.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -73,6 +74,24 @@ public class Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Animal animal = (Animal) o;
|
||||||
|
return Objects.equals(className, animal.className) &&
|
||||||
|
Objects.equals(color, animal.color);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(className, color);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -13,6 +13,22 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
|
|
||||||
public class AnimalFarm extends ArrayList<Animal> {
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AnimalFarm animalFarm = (AnimalFarm) o;return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return super.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -15,7 +16,7 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
private List<List<BigDecimal>> arrayArrayNumber;
|
||||||
/**
|
/**
|
||||||
* Get arrayArrayNumber
|
* Get arrayArrayNumber
|
||||||
* @return arrayArrayNumber
|
* @return arrayArrayNumber
|
||||||
@ -49,6 +50,23 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
|
||||||
|
return Objects.equals(arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(arrayArrayNumber);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -15,7 +16,7 @@ public class ArrayOfNumberOnly {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private List<BigDecimal> arrayNumber = null;
|
private List<BigDecimal> arrayNumber;
|
||||||
/**
|
/**
|
||||||
* Get arrayNumber
|
* Get arrayNumber
|
||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
@ -49,6 +50,23 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
|
||||||
|
return Objects.equals(arrayNumber, arrayOfNumberOnly.arrayNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(arrayNumber);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.model.ReadOnlyFirst;
|
import org.openapitools.model.ReadOnlyFirst;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -14,15 +15,15 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
public class ArrayTest {
|
public class ArrayTest {
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<String> arrayOfString = null;
|
private List<String> arrayOfString;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private List<List<Long>> arrayArrayOfInteger = null;
|
private List<List<Long>> arrayArrayOfInteger;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
private List<List<ReadOnlyFirst>> arrayArrayOfModel;
|
||||||
/**
|
/**
|
||||||
* Get arrayOfString
|
* Get arrayOfString
|
||||||
* @return arrayOfString
|
* @return arrayOfString
|
||||||
@ -120,6 +121,25 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ArrayTest arrayTest = (ArrayTest) o;
|
||||||
|
return Objects.equals(arrayOfString, arrayTest.arrayOfString) &&
|
||||||
|
Objects.equals(arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
|
||||||
|
Objects.equals(arrayArrayOfModel, arrayTest.arrayArrayOfModel);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,7 +2,6 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import org.openapitools.model.BigCatAllOf;
|
|
||||||
import org.openapitools.model.Cat;
|
import org.openapitools.model.Cat;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -73,6 +72,23 @@ public enum KindEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
BigCat bigCat = (BigCat) o;
|
||||||
|
return super.equals(o) && Objects.equals(kind, bigCat.kind);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), kind);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -175,6 +175,28 @@ public class Capitalization {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
import org.openapitools.model.Animal;
|
import org.openapitools.model.Animal;
|
||||||
import org.openapitools.model.CatAllOf;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -39,6 +38,23 @@ public class Cat extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Cat cat = (Cat) o;
|
||||||
|
return super.equals(o) && Objects.equals(declawed, cat.declawed);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), declawed);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -65,6 +65,24 @@ public class Category {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Category category = (Category) o;
|
||||||
|
return Objects.equals(id, category.id) &&
|
||||||
|
Objects.equals(name, category.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -43,6 +43,23 @@ public class ClassModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -37,6 +37,23 @@ public class Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Client client = (Client) o;
|
||||||
|
return Objects.equals(client, client.client);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(client);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
import org.openapitools.model.Animal;
|
import org.openapitools.model.Animal;
|
||||||
import org.openapitools.model.DogAllOf;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -39,6 +38,23 @@ public class Dog extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Dog dog = (Dog) o;
|
||||||
|
return super.equals(o) && Objects.equals(breed, dog.breed);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode(), breed);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -3,6 +3,7 @@ package org.openapitools.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -78,7 +79,7 @@ public enum ArrayEnumEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<ArrayEnumEnum> arrayEnum = null;
|
private List<ArrayEnumEnum> arrayEnum;
|
||||||
/**
|
/**
|
||||||
* Get justSymbol
|
* Get justSymbol
|
||||||
* @return justSymbol
|
* @return justSymbol
|
||||||
@ -136,6 +137,24 @@ public enum ArrayEnumEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
EnumArrays enumArrays = (EnumArrays) o;
|
||||||
|
return Objects.equals(justSymbol, enumArrays.justSymbol) &&
|
||||||
|
Objects.equals(arrayEnum, enumArrays.arrayEnum);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(justSymbol, arrayEnum);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import org.openapitools.model.OuterEnum;
|
import org.openapitools.model.OuterEnum;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -272,6 +273,27 @@ public enum EnumNumberEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
EnumTest enumTest = (EnumTest) o;
|
||||||
|
return Objects.equals(enumString, enumTest.enumString) &&
|
||||||
|
Objects.equals(enumStringRequired, enumTest.enumStringRequired) &&
|
||||||
|
Objects.equals(enumInteger, enumTest.enumInteger) &&
|
||||||
|
Objects.equals(enumNumber, enumTest.enumNumber) &&
|
||||||
|
Objects.equals(outerEnum, enumTest.outerEnum);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.model.ModelFile;
|
import org.openapitools.model.ModelFile;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -19,7 +20,7 @@ public class FileSchemaTestClass {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private List<ModelFile> files = null;
|
private List<ModelFile> files;
|
||||||
/**
|
/**
|
||||||
* Get _file
|
* Get _file
|
||||||
* @return _file
|
* @return _file
|
||||||
@ -77,6 +78,24 @@ public class FileSchemaTestClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
|
||||||
|
return Objects.equals(_file, fileSchemaTestClass._file) &&
|
||||||
|
Objects.equals(files, fileSchemaTestClass.files);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(_file, files);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@ -411,6 +412,36 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
FormatTest formatTest = (FormatTest) o;
|
||||||
|
return Objects.equals(integer, formatTest.integer) &&
|
||||||
|
Objects.equals(int32, formatTest.int32) &&
|
||||||
|
Objects.equals(int64, formatTest.int64) &&
|
||||||
|
Objects.equals(number, formatTest.number) &&
|
||||||
|
Objects.equals(_float, formatTest._float) &&
|
||||||
|
Objects.equals(_double, formatTest._double) &&
|
||||||
|
Objects.equals(string, formatTest.string) &&
|
||||||
|
Objects.equals(_byte, formatTest._byte) &&
|
||||||
|
Objects.equals(binary, formatTest.binary) &&
|
||||||
|
Objects.equals(date, formatTest.date) &&
|
||||||
|
Objects.equals(dateTime, formatTest.dateTime) &&
|
||||||
|
Objects.equals(uuid, formatTest.uuid) &&
|
||||||
|
Objects.equals(password, formatTest.password) &&
|
||||||
|
Objects.equals(bigDecimal, formatTest.bigDecimal);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
@ -428,7 +459,7 @@ public class FormatTest {
|
|||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append("*").append("\n");
|
||||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -68,6 +69,24 @@ public class HasOnlyReadOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
|
||||||
|
return Objects.equals(bar, hasOnlyReadOnly.bar) &&
|
||||||
|
Objects.equals(foo, hasOnlyReadOnly.foo);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(bar, foo);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -3,7 +3,6 @@ package org.openapitools.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.openapitools.model.StringBooleanMap;
|
import org.openapitools.model.StringBooleanMap;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -18,7 +17,7 @@ public class MapTest {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, Map<String, String>> mapMapOfString = null;
|
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
|
||||||
|
|
||||||
public enum InnerEnum {
|
public enum InnerEnum {
|
||||||
|
|
||||||
@ -51,14 +50,14 @@ public enum InnerEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private Map<String, Boolean> directMap = null;
|
private Map<String, Boolean> directMap = new HashMap<>();
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private StringBooleanMap indirectMap = new StringBooleanMap();
|
private StringBooleanMap indirectMap = new HashMap<>();
|
||||||
/**
|
/**
|
||||||
* Get mapMapOfString
|
* Get mapMapOfString
|
||||||
* @return mapMapOfString
|
* @return mapMapOfString
|
||||||
@ -180,6 +179,26 @@ public enum InnerEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
MapTest mapTest = (MapTest) o;
|
||||||
|
return Objects.equals(mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
|
Objects.equals(mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(indirectMap, mapTest.indirectMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,7 +2,6 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.openapitools.model.Animal;
|
import org.openapitools.model.Animal;
|
||||||
@ -25,7 +24,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, Animal> map = null;
|
private Map<String, Animal> map = new HashMap<>();
|
||||||
/**
|
/**
|
||||||
* Get uuid
|
* Get uuid
|
||||||
* @return uuid
|
* @return uuid
|
||||||
@ -107,6 +106,25 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
|
||||||
|
return Objects.equals(uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
|
||||||
|
Objects.equals(dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
|
||||||
|
Objects.equals(map, mixedPropertiesAndAdditionalPropertiesClass.map);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(uuid, dateTime, map);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -70,6 +71,24 @@ public class Model200Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Model200Response _200response = (Model200Response) o;
|
||||||
|
return Objects.equals(name, _200response.name) &&
|
||||||
|
Objects.equals(propertyClass, _200response.propertyClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(name, propertyClass);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -91,6 +92,25 @@ public class ModelApiResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ModelApiResponse _apiResponse = (ModelApiResponse) o;
|
||||||
|
return Objects.equals(code, _apiResponse.code) &&
|
||||||
|
Objects.equals(type, _apiResponse.type) &&
|
||||||
|
Objects.equals(message, _apiResponse.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(code, type, message);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -46,6 +47,23 @@ public class ModelFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ModelFile _file = (ModelFile) o;
|
||||||
|
return Objects.equals(sourceURI, _file.sourceURI);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(sourceURI);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -37,6 +38,23 @@ public class ModelList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ModelList _list = (ModelList) o;
|
||||||
|
return Objects.equals(_123list, _list._123list);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(_123list);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -43,6 +44,23 @@ public class ModelReturn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ModelReturn _return = (ModelReturn) o;
|
||||||
|
return Objects.equals(_return, _return._return);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(_return);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -129,6 +129,26 @@ public class Name {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Name name = (Name) o;
|
||||||
|
return Objects.equals(name, name.name) &&
|
||||||
|
Objects.equals(snakeCase, name.snakeCase) &&
|
||||||
|
Objects.equals(property, name.property) &&
|
||||||
|
Objects.equals(_123number, name._123number);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(name, snakeCase, property, _123number);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -39,6 +39,23 @@ public class NumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NumberOnly numberOnly = (NumberOnly) o;
|
||||||
|
return Objects.equals(justNumber, numberOnly.justNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(justNumber);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -210,6 +210,28 @@ public enum StatusEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Order order = (Order) o;
|
||||||
|
return Objects.equals(id, order.id) &&
|
||||||
|
Objects.equals(petId, order.petId) &&
|
||||||
|
Objects.equals(quantity, order.quantity) &&
|
||||||
|
Objects.equals(shipDate, order.shipDate) &&
|
||||||
|
Objects.equals(status, order.status) &&
|
||||||
|
Objects.equals(complete, order.complete);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -93,6 +93,25 @@ public class OuterComposite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
OuterComposite outerComposite = (OuterComposite) o;
|
||||||
|
return Objects.equals(myNumber, outerComposite.myNumber) &&
|
||||||
|
Objects.equals(myString, outerComposite.myString) &&
|
||||||
|
Objects.equals(myBoolean, outerComposite.myBoolean);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(myNumber, myString, myBoolean);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
|||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -34,7 +35,7 @@ public class Pet {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@Valid
|
@Valid
|
||||||
private List<Tag> tags = null;
|
private List<Tag> tags;
|
||||||
|
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
@ -236,6 +237,28 @@ public enum StatusEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Pet pet = (Pet) o;
|
||||||
|
return Objects.equals(id, pet.id) &&
|
||||||
|
Objects.equals(category, pet.category) &&
|
||||||
|
Objects.equals(name, pet.name) &&
|
||||||
|
Objects.equals(photoUrls, pet.photoUrls) &&
|
||||||
|
Objects.equals(tags, pet.tags) &&
|
||||||
|
Objects.equals(status, pet.status);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, category, name, photoUrls, tags, status);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -66,6 +66,24 @@ public class ReadOnlyFirst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
|
||||||
|
return Objects.equals(bar, readOnlyFirst.bar) &&
|
||||||
|
Objects.equals(baz, readOnlyFirst.baz);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(bar, baz);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package org.openapitools.model;
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -37,6 +38,23 @@ public class SpecialModelName {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
SpecialModelName $specialModelName = (SpecialModelName) o;
|
||||||
|
return Objects.equals($specialPropertyName, $specialModelName.$specialPropertyName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash($specialPropertyName);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -12,6 +12,22 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
|
|
||||||
public class StringBooleanMap extends HashMap<String, Boolean> {
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
StringBooleanMap stringBooleanMap = (StringBooleanMap) o;return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return super.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -64,6 +64,24 @@ public class Tag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Tag tag = (Tag) o;
|
||||||
|
return Objects.equals(id, tag.id) &&
|
||||||
|
Objects.equals(name, tag.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, name);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -162,6 +163,27 @@ public class TypeHolderDefault {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
|
||||||
|
return Objects.equals(stringItem, typeHolderDefault.stringItem) &&
|
||||||
|
Objects.equals(numberItem, typeHolderDefault.numberItem) &&
|
||||||
|
Objects.equals(integerItem, typeHolderDefault.integerItem) &&
|
||||||
|
Objects.equals(boolItem, typeHolderDefault.boolItem) &&
|
||||||
|
Objects.equals(arrayItem, typeHolderDefault.arrayItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -190,6 +191,28 @@ public class TypeHolderExample {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
|
||||||
|
return Objects.equals(stringItem, typeHolderExample.stringItem) &&
|
||||||
|
Objects.equals(numberItem, typeHolderExample.numberItem) &&
|
||||||
|
Objects.equals(floatItem, typeHolderExample.floatItem) &&
|
||||||
|
Objects.equals(integerItem, typeHolderExample.integerItem) &&
|
||||||
|
Objects.equals(boolItem, typeHolderExample.boolItem) &&
|
||||||
|
Objects.equals(arrayItem, typeHolderExample.arrayItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -229,6 +229,30 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
User user = (User) o;
|
||||||
|
return Objects.equals(id, user.id) &&
|
||||||
|
Objects.equals(username, user.username) &&
|
||||||
|
Objects.equals(firstName, user.firstName) &&
|
||||||
|
Objects.equals(lastName, user.lastName) &&
|
||||||
|
Objects.equals(email, user.email) &&
|
||||||
|
Objects.equals(password, user.password) &&
|
||||||
|
Objects.equals(phone, user.phone) &&
|
||||||
|
Objects.equals(userStatus, user.userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -2,6 +2,7 @@ package org.openapitools.model;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
@ -27,7 +28,7 @@ public class XmlItem {
|
|||||||
private Boolean attributeBoolean;
|
private Boolean attributeBoolean;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> wrappedArray = null;
|
private List<Integer> wrappedArray;
|
||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
private String nameString;
|
private String nameString;
|
||||||
@ -43,10 +44,10 @@ public class XmlItem {
|
|||||||
private Boolean nameBoolean;
|
private Boolean nameBoolean;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> nameArray = null;
|
private List<Integer> nameArray;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> nameWrappedArray = null;
|
private List<Integer> nameWrappedArray;
|
||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
private String prefixString;
|
private String prefixString;
|
||||||
@ -62,10 +63,10 @@ public class XmlItem {
|
|||||||
private Boolean prefixBoolean;
|
private Boolean prefixBoolean;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> prefixArray = null;
|
private List<Integer> prefixArray;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> prefixWrappedArray = null;
|
private List<Integer> prefixWrappedArray;
|
||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
private String namespaceString;
|
private String namespaceString;
|
||||||
@ -81,10 +82,10 @@ public class XmlItem {
|
|||||||
private Boolean namespaceBoolean;
|
private Boolean namespaceBoolean;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> namespaceArray = null;
|
private List<Integer> namespaceArray;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> namespaceWrappedArray = null;
|
private List<Integer> namespaceWrappedArray;
|
||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
private String prefixNsString;
|
private String prefixNsString;
|
||||||
@ -100,10 +101,10 @@ public class XmlItem {
|
|||||||
private Boolean prefixNsBoolean;
|
private Boolean prefixNsBoolean;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> prefixNsArray = null;
|
private List<Integer> prefixNsArray;
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
private List<Integer> prefixNsWrappedArray = null;
|
private List<Integer> prefixNsWrappedArray;
|
||||||
/**
|
/**
|
||||||
* Get attributeString
|
* Get attributeString
|
||||||
* @return attributeString
|
* @return attributeString
|
||||||
@ -873,6 +874,51 @@ public class XmlItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
XmlItem xmlItem = (XmlItem) o;
|
||||||
|
return Objects.equals(attributeString, xmlItem.attributeString) &&
|
||||||
|
Objects.equals(attributeNumber, xmlItem.attributeNumber) &&
|
||||||
|
Objects.equals(attributeInteger, xmlItem.attributeInteger) &&
|
||||||
|
Objects.equals(attributeBoolean, xmlItem.attributeBoolean) &&
|
||||||
|
Objects.equals(wrappedArray, xmlItem.wrappedArray) &&
|
||||||
|
Objects.equals(nameString, xmlItem.nameString) &&
|
||||||
|
Objects.equals(nameNumber, xmlItem.nameNumber) &&
|
||||||
|
Objects.equals(nameInteger, xmlItem.nameInteger) &&
|
||||||
|
Objects.equals(nameBoolean, xmlItem.nameBoolean) &&
|
||||||
|
Objects.equals(nameArray, xmlItem.nameArray) &&
|
||||||
|
Objects.equals(nameWrappedArray, xmlItem.nameWrappedArray) &&
|
||||||
|
Objects.equals(prefixString, xmlItem.prefixString) &&
|
||||||
|
Objects.equals(prefixNumber, xmlItem.prefixNumber) &&
|
||||||
|
Objects.equals(prefixInteger, xmlItem.prefixInteger) &&
|
||||||
|
Objects.equals(prefixBoolean, xmlItem.prefixBoolean) &&
|
||||||
|
Objects.equals(prefixArray, xmlItem.prefixArray) &&
|
||||||
|
Objects.equals(prefixWrappedArray, xmlItem.prefixWrappedArray) &&
|
||||||
|
Objects.equals(namespaceString, xmlItem.namespaceString) &&
|
||||||
|
Objects.equals(namespaceNumber, xmlItem.namespaceNumber) &&
|
||||||
|
Objects.equals(namespaceInteger, xmlItem.namespaceInteger) &&
|
||||||
|
Objects.equals(namespaceBoolean, xmlItem.namespaceBoolean) &&
|
||||||
|
Objects.equals(namespaceArray, xmlItem.namespaceArray) &&
|
||||||
|
Objects.equals(namespaceWrappedArray, xmlItem.namespaceWrappedArray) &&
|
||||||
|
Objects.equals(prefixNsString, xmlItem.prefixNsString) &&
|
||||||
|
Objects.equals(prefixNsNumber, xmlItem.prefixNsNumber) &&
|
||||||
|
Objects.equals(prefixNsInteger, xmlItem.prefixNsInteger) &&
|
||||||
|
Objects.equals(prefixNsBoolean, xmlItem.prefixNsBoolean) &&
|
||||||
|
Objects.equals(prefixNsArray, xmlItem.prefixNsArray) &&
|
||||||
|
Objects.equals(prefixNsWrappedArray, xmlItem.prefixNsWrappedArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(attributeString, attributeNumber, attributeInteger, attributeBoolean, wrappedArray, nameString, nameNumber, nameInteger, nameBoolean, nameArray, nameWrappedArray, prefixString, prefixNumber, prefixInteger, prefixBoolean, prefixArray, prefixWrappedArray, namespaceString, namespaceNumber, namespaceInteger, namespaceBoolean, namespaceArray, namespaceWrappedArray, prefixNsString, prefixNsNumber, prefixNsInteger, prefixNsBoolean, prefixNsArray, prefixNsWrappedArray);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -4,6 +4,7 @@ import org.openapitools.api.*;
|
|||||||
import org.openapitools.model.Client;
|
import org.openapitools.model.Client;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
@ -35,7 +36,7 @@ public class AnotherFakeApiServiceImpl implements AnotherFakeApi {
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
||||||
"/Users/williamcheng/Code/openapi-generator2/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
"/Users/williamcheng/Code/openapi-generator7/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
||||||
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/AnotherFakeApi");
|
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/AnotherFakeApi");
|
||||||
} catch (CacheException e) {
|
} catch (CacheException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -49,7 +50,7 @@ public class AnotherFakeApiServiceImpl implements AnotherFakeApi {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Client call123testSpecialTags(Client body) {
|
public Client call123testSpecialTags(UUID uuidTest, Client body) {
|
||||||
try {
|
try {
|
||||||
Client response = cache.getObject("/call123testSpecialTags/response", Client.class);
|
Client response = cache.getObject("/call123testSpecialTags/response", Client.class);
|
||||||
return response;
|
return response;
|
||||||
|
@ -44,7 +44,7 @@ public class FakeApiServiceImpl implements FakeApi {
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
||||||
"/Users/williamcheng/Code/openapi-generator2/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
"/Users/williamcheng/Code/openapi-generator7/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
||||||
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/FakeApi");
|
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/FakeApi");
|
||||||
} catch (CacheException e) {
|
} catch (CacheException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -35,7 +35,7 @@ public class FakeClassnameTags123ApiServiceImpl implements FakeClassnameTags123A
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
||||||
"/Users/williamcheng/Code/openapi-generator2/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
"/Users/williamcheng/Code/openapi-generator7/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
||||||
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/FakeClassnameTags123Api");
|
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/FakeClassnameTags123Api");
|
||||||
} catch (CacheException e) {
|
} catch (CacheException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -39,7 +39,7 @@ public class PetApiServiceImpl implements PetApi {
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
||||||
"/Users/williamcheng/Code/openapi-generator2/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
"/Users/williamcheng/Code/openapi-generator7/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
||||||
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/PetApi");
|
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/PetApi");
|
||||||
} catch (CacheException e) {
|
} catch (CacheException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -35,7 +35,7 @@ public class StoreApiServiceImpl implements StoreApi {
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
||||||
"/Users/williamcheng/Code/openapi-generator2/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
"/Users/williamcheng/Code/openapi-generator7/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
||||||
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/StoreApi");
|
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/StoreApi");
|
||||||
} catch (CacheException e) {
|
} catch (CacheException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -36,7 +36,7 @@ public class UserApiServiceImpl implements UserApi {
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
File cacheFile = new File(System.getProperty("jaxrs.test.server.json",
|
||||||
"/Users/williamcheng/Code/openapi-generator2/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
"/Users/williamcheng/Code/openapi-generator7/samples/server/petstore/jaxrs-cxf-test-data/src/main/resources/test-data.json"));
|
||||||
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/UserApi");
|
cache = JsonCache.Factory.instance.get("test-data").load(cacheFile).child("/org.openapitools.api/UserApi");
|
||||||
} catch (CacheException e) {
|
} catch (CacheException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -20,15 +20,12 @@ src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java
|
|||||||
src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java
|
src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java
|
||||||
src/gen/java/org/openapitools/model/ArrayTest.java
|
src/gen/java/org/openapitools/model/ArrayTest.java
|
||||||
src/gen/java/org/openapitools/model/BigCat.java
|
src/gen/java/org/openapitools/model/BigCat.java
|
||||||
src/gen/java/org/openapitools/model/BigCatAllOf.java
|
|
||||||
src/gen/java/org/openapitools/model/Capitalization.java
|
src/gen/java/org/openapitools/model/Capitalization.java
|
||||||
src/gen/java/org/openapitools/model/Cat.java
|
src/gen/java/org/openapitools/model/Cat.java
|
||||||
src/gen/java/org/openapitools/model/CatAllOf.java
|
|
||||||
src/gen/java/org/openapitools/model/Category.java
|
src/gen/java/org/openapitools/model/Category.java
|
||||||
src/gen/java/org/openapitools/model/ClassModel.java
|
src/gen/java/org/openapitools/model/ClassModel.java
|
||||||
src/gen/java/org/openapitools/model/Client.java
|
src/gen/java/org/openapitools/model/Client.java
|
||||||
src/gen/java/org/openapitools/model/Dog.java
|
src/gen/java/org/openapitools/model/Dog.java
|
||||||
src/gen/java/org/openapitools/model/DogAllOf.java
|
|
||||||
src/gen/java/org/openapitools/model/EnumArrays.java
|
src/gen/java/org/openapitools/model/EnumArrays.java
|
||||||
src/gen/java/org/openapitools/model/EnumClass.java
|
src/gen/java/org/openapitools/model/EnumClass.java
|
||||||
src/gen/java/org/openapitools/model/EnumTest.java
|
src/gen/java/org/openapitools/model/EnumTest.java
|
||||||
|
@ -1 +1 @@
|
|||||||
6.1.0-SNAPSHOT
|
7.2.0-SNAPSHOT
|
@ -94,7 +94,7 @@
|
|||||||
<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>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<jackson-version>2.9.9</jackson-version>
|
<jackson-version>2.15.2</jackson-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<joda-version>2.10.13</joda-version>
|
<joda-version>2.10.13</joda-version>
|
||||||
<javax.annotation-api-version>1.3.2</javax.annotation-api-version>
|
<javax.annotation-api-version>1.3.2</javax.annotation-api-version>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.api;
|
package org.openapitools.api;
|
||||||
|
|
||||||
import org.openapitools.model.Client;
|
import org.openapitools.model.Client;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import javax.ws.rs.*;
|
import javax.ws.rs.*;
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
@ -24,5 +25,6 @@ public interface AnotherFakeApi {
|
|||||||
@ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", tags={ "$another-fake?" })
|
@ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", tags={ "$another-fake?" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
||||||
Response call123testSpecialTags(@Valid @NotNull Client body);
|
Response call123testSpecialTags(@HeaderParam("uuid_test") @NotNull @ApiParam("to test uuid example value") UUID uuidTest,@Valid @NotNull Client body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
||||||
Response createXmlItem(@Valid @NotNull XmlItem xmlItem);
|
Response createXmlItem(@Valid @NotNull XmlItem xmlItem);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/boolean")
|
@Path("/outer/boolean")
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
@ -44,6 +45,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) })
|
@ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) })
|
||||||
Response fakeOuterBooleanSerialize(@Valid Boolean body);
|
Response fakeOuterBooleanSerialize(@Valid Boolean body);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/composite")
|
@Path("/outer/composite")
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
@ -52,6 +54,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) })
|
@ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) })
|
||||||
Response fakeOuterCompositeSerialize(@Valid OuterComposite body);
|
Response fakeOuterCompositeSerialize(@Valid OuterComposite body);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/number")
|
@Path("/outer/number")
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
@ -60,6 +63,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) })
|
@ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) })
|
||||||
Response fakeOuterNumberSerialize(@Valid BigDecimal body);
|
Response fakeOuterNumberSerialize(@Valid BigDecimal body);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/string")
|
@Path("/outer/string")
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
@ -68,6 +72,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "Output string", response = String.class) })
|
@ApiResponse(code = 200, message = "Output string", response = String.class) })
|
||||||
Response fakeOuterStringSerialize(@Valid String body);
|
Response fakeOuterStringSerialize(@Valid String body);
|
||||||
|
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/body-with-file-schema")
|
@Path("/body-with-file-schema")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@ -76,6 +81,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "Success", response = Void.class) })
|
@ApiResponse(code = 200, message = "Success", response = Void.class) })
|
||||||
Response testBodyWithFileSchema(@Valid @NotNull FileSchemaTestClass body);
|
Response testBodyWithFileSchema(@Valid @NotNull FileSchemaTestClass body);
|
||||||
|
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/body-with-query-params")
|
@Path("/body-with-query-params")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@ -84,6 +90,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "Success", response = Void.class) })
|
@ApiResponse(code = 200, message = "Success", response = Void.class) })
|
||||||
Response testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid @NotNull User body);
|
Response testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid @NotNull User body);
|
||||||
|
|
||||||
|
|
||||||
@PATCH
|
@PATCH
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@ -92,6 +99,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
||||||
Response testClientModel(@Valid @NotNull Client body);
|
Response testClientModel(@Valid @NotNull Client body);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
@ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트", authorizations = {
|
||||||
@ -103,6 +111,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
||||||
Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string, @FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") Date dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback);
|
Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string, @FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") Date dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
@ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", tags={ "fake" })
|
@ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", tags={ "fake" })
|
||||||
@ -111,12 +120,14 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 404, message = "Not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "Not found", response = Void.class) })
|
||||||
Response testEnumParameters(@HeaderParam("enum_header_string_array") @ApiParam("Header parameter enum test (string array)") List<String> enumHeaderStringArray,@HeaderParam("enum_header_string") @DefaultValue("-efg") @ApiParam("Header parameter enum test (string)") String enumHeaderString,@QueryParam("enum_query_string_array") @ApiParam("Query parameter enum test (string array)") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") @ApiParam("Query parameter enum test (string)") String enumQueryString,@QueryParam("enum_query_integer") @ApiParam("Query parameter enum test (double)") Integer enumQueryInteger,@QueryParam("enum_query_double") @ApiParam("Query parameter enum test (double)") Double enumQueryDouble,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString);
|
Response testEnumParameters(@HeaderParam("enum_header_string_array") @ApiParam("Header parameter enum test (string array)") List<String> enumHeaderStringArray,@HeaderParam("enum_header_string") @DefaultValue("-efg") @ApiParam("Header parameter enum test (string)") String enumHeaderString,@QueryParam("enum_query_string_array") @ApiParam("Query parameter enum test (string array)") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") @ApiParam("Query parameter enum test (string)") String enumQueryString,@QueryParam("enum_query_integer") @ApiParam("Query parameter enum test (double)") Integer enumQueryInteger,@QueryParam("enum_query_double") @ApiParam("Query parameter enum test (double)") Double enumQueryDouble,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString);
|
||||||
|
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake" })
|
@ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake" })
|
||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 400, message = "Something wrong", response = Void.class) })
|
@ApiResponse(code = 400, message = "Something wrong", response = Void.class) })
|
||||||
Response testGroupParameters(@QueryParam("required_string_group") @NotNull @ApiParam("Required String in group parameters") Integer requiredStringGroup,@HeaderParam("required_boolean_group") @NotNull @ApiParam("Required Boolean in group parameters") Boolean requiredBooleanGroup,@QueryParam("required_int64_group") @NotNull @ApiParam("Required Integer in group parameters") Long requiredInt64Group,@QueryParam("string_group") @ApiParam("String in group parameters") Integer stringGroup,@HeaderParam("boolean_group") @ApiParam("Boolean in group parameters") Boolean booleanGroup,@QueryParam("int64_group") @ApiParam("Integer in group parameters") Long int64Group);
|
Response testGroupParameters(@QueryParam("required_string_group") @NotNull @ApiParam("Required String in group parameters") Integer requiredStringGroup,@HeaderParam("required_boolean_group") @NotNull @ApiParam("Required Boolean in group parameters") Boolean requiredBooleanGroup,@QueryParam("required_int64_group") @NotNull @ApiParam("Required Integer in group parameters") Long requiredInt64Group,@QueryParam("string_group") @ApiParam("String in group parameters") Integer stringGroup,@HeaderParam("boolean_group") @ApiParam("Boolean in group parameters") Boolean booleanGroup,@QueryParam("int64_group") @ApiParam("Integer in group parameters") Long int64Group);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/inline-additionalProperties")
|
@Path("/inline-additionalProperties")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@ -125,6 +136,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
||||||
Response testInlineAdditionalProperties(@Valid @NotNull Map<String, String> param);
|
Response testInlineAdditionalProperties(@Valid @NotNull Map<String, String> param);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/jsonFormData")
|
@Path("/jsonFormData")
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
@ -133,6 +145,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
||||||
Response testJsonFormData(@FormParam(value = "param") String param,@FormParam(value = "param2") String param2);
|
Response testJsonFormData(@FormParam(value = "param") String param,@FormParam(value = "param2") String param2);
|
||||||
|
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/test-query-parameters")
|
@Path("/test-query-parameters")
|
||||||
@ApiOperation(value = "", notes = "To test the collection format in query parameters", tags={ "fake" })
|
@ApiOperation(value = "", notes = "To test the collection format in query parameters", tags={ "fake" })
|
||||||
@ -140,6 +153,7 @@ public interface FakeApi {
|
|||||||
@ApiResponse(code = 200, message = "Success", response = Void.class) })
|
@ApiResponse(code = 200, message = "Success", response = Void.class) })
|
||||||
Response testQueryParameterCollectionFormat(@QueryParam("pipe") @NotNull List<String> pipe,@QueryParam("ioutil") @NotNull List<String> ioutil,@QueryParam("http") @NotNull List<String> http,@QueryParam("url") @NotNull List<String> url,@QueryParam("context") @NotNull List<String> context);
|
Response testQueryParameterCollectionFormat(@QueryParam("pipe") @NotNull List<String> pipe,@QueryParam("ioutil") @NotNull List<String> ioutil,@QueryParam("http") @NotNull List<String> http,@QueryParam("url") @NotNull List<String> url,@QueryParam("context") @NotNull List<String> context);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/{petId}/uploadImageWithRequiredFile")
|
@Path("/{petId}/uploadImageWithRequiredFile")
|
||||||
@Consumes({ "multipart/form-data" })
|
@Consumes({ "multipart/form-data" })
|
||||||
@ -152,4 +166,5 @@ public interface FakeApi {
|
|||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
Response uploadFileWithRequiredFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId, @FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata);
|
Response uploadFileWithRequiredFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId, @FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -28,4 +28,5 @@ public interface FakeClassnameTestApi {
|
|||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
||||||
Response testClassname(@Valid @NotNull Client body);
|
Response testClassname(@Valid @NotNull Client body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ public interface PetApi {
|
|||||||
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
||||||
Response addPet(@Valid @NotNull Pet body);
|
Response addPet(@Valid @NotNull Pet body);
|
||||||
|
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("/{petId}")
|
@Path("/{petId}")
|
||||||
@ApiOperation(value = "Deletes a pet", notes = "", authorizations = {
|
@ApiOperation(value = "Deletes a pet", notes = "", authorizations = {
|
||||||
@ -45,6 +46,7 @@ public interface PetApi {
|
|||||||
@ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
|
@ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
|
||||||
Response deletePet(@PathParam("petId") @ApiParam("Pet id to delete") Long petId,@HeaderParam("api_key") String apiKey);
|
Response deletePet(@PathParam("petId") @ApiParam("Pet id to delete") Long petId,@HeaderParam("api_key") String apiKey);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/findByStatus")
|
@Path("/findByStatus")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ -58,6 +60,7 @@ public interface PetApi {
|
|||||||
@ApiResponse(code = 400, message = "Invalid status value", response = Void.class, responseContainer = "List") })
|
@ApiResponse(code = 400, message = "Invalid status value", response = Void.class, responseContainer = "List") })
|
||||||
Response findPetsByStatus(@QueryParam("status") @NotNull @ApiParam("Status values that need to be considered for filter") List<String> status);
|
Response findPetsByStatus(@QueryParam("status") @NotNull @ApiParam("Status values that need to be considered for filter") List<String> status);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/findByTags")
|
@Path("/findByTags")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ -71,6 +74,7 @@ public interface PetApi {
|
|||||||
@ApiResponse(code = 400, message = "Invalid tag value", response = Void.class, responseContainer = "Set") })
|
@ApiResponse(code = 400, message = "Invalid tag value", response = Void.class, responseContainer = "Set") })
|
||||||
Response findPetsByTags(@QueryParam("tags") @NotNull @ApiParam("Tags to filter by") Set<String> tags);
|
Response findPetsByTags(@QueryParam("tags") @NotNull @ApiParam("Tags to filter by") Set<String> tags);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/{petId}")
|
@Path("/{petId}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ -84,6 +88,7 @@ public interface PetApi {
|
|||||||
@ApiResponse(code = 404, message = "Pet not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "Pet not found", response = Void.class) })
|
||||||
Response getPetById(@PathParam("petId") @ApiParam("ID of pet to return") Long petId);
|
Response getPetById(@PathParam("petId") @ApiParam("ID of pet to return") Long petId);
|
||||||
|
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Consumes({ "application/json", "application/xml" })
|
@Consumes({ "application/json", "application/xml" })
|
||||||
@ApiOperation(value = "Update an existing pet", notes = "", authorizations = {
|
@ApiOperation(value = "Update an existing pet", notes = "", authorizations = {
|
||||||
@ -98,6 +103,7 @@ public interface PetApi {
|
|||||||
@ApiResponse(code = 405, message = "Validation exception", response = Void.class) })
|
@ApiResponse(code = 405, message = "Validation exception", response = Void.class) })
|
||||||
Response updatePet(@Valid @NotNull Pet body);
|
Response updatePet(@Valid @NotNull Pet body);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/{petId}")
|
@Path("/{petId}")
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
@ -110,6 +116,7 @@ public interface PetApi {
|
|||||||
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
|
||||||
Response updatePetWithForm(@PathParam("petId") @ApiParam("ID of pet that needs to be updated") Long petId,@FormParam(value = "name") String name,@FormParam(value = "status") String status);
|
Response updatePetWithForm(@PathParam("petId") @ApiParam("ID of pet that needs to be updated") Long petId,@FormParam(value = "name") String name,@FormParam(value = "status") String status);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/{petId}/uploadImage")
|
@Path("/{petId}/uploadImage")
|
||||||
@Consumes({ "multipart/form-data" })
|
@Consumes({ "multipart/form-data" })
|
||||||
@ -122,4 +129,5 @@ public interface PetApi {
|
|||||||
@ApiResponses(value = {
|
@ApiResponses(value = {
|
||||||
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
Response uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream);
|
Response uploadFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,7 @@ public interface StoreApi {
|
|||||||
@ApiResponse(code = 404, message = "Order not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "Order not found", response = Void.class) })
|
||||||
Response deleteOrder(@PathParam("order_id") @ApiParam("ID of the order that needs to be deleted") String orderId);
|
Response deleteOrder(@PathParam("order_id") @ApiParam("ID of the order that needs to be deleted") String orderId);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/inventory")
|
@Path("/inventory")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@ -38,6 +39,7 @@ public interface StoreApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") })
|
@ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") })
|
||||||
Response getInventory();
|
Response getInventory();
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/order/{order_id}")
|
@Path("/order/{order_id}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ -48,6 +50,7 @@ public interface StoreApi {
|
|||||||
@ApiResponse(code = 404, message = "Order not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "Order not found", response = Void.class) })
|
||||||
Response getOrderById(@PathParam("order_id") @Min(1L) @Max(5L) @ApiParam("ID of pet that needs to be fetched") Long orderId);
|
Response getOrderById(@PathParam("order_id") @Min(1L) @Max(5L) @ApiParam("ID of pet that needs to be fetched") Long orderId);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/order")
|
@Path("/order")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ -56,4 +59,5 @@ public interface StoreApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
@ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
||||||
@ApiResponse(code = 400, message = "Invalid Order", response = Void.class) })
|
@ApiResponse(code = 400, message = "Invalid Order", response = Void.class) })
|
||||||
Response placeOrder(@Valid @NotNull Order body);
|
Response placeOrder(@Valid @NotNull Order body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package org.openapitools.api;
|
package org.openapitools.api;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
|
||||||
import org.openapitools.model.User;
|
import org.openapitools.model.User;
|
||||||
|
|
||||||
import javax.ws.rs.*;
|
import javax.ws.rs.*;
|
||||||
@ -26,6 +25,7 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
||||||
Response createUser(@Valid @NotNull User body);
|
Response createUser(@Valid @NotNull User body);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/createWithArray")
|
@Path("/createWithArray")
|
||||||
@ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" })
|
@ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" })
|
||||||
@ -33,6 +33,7 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
||||||
Response createUsersWithArrayInput(@Valid @NotNull List<User> body);
|
Response createUsersWithArrayInput(@Valid @NotNull List<User> body);
|
||||||
|
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/createWithList")
|
@Path("/createWithList")
|
||||||
@ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" })
|
@ApiOperation(value = "Creates list of users with given input array", notes = "", tags={ "user" })
|
||||||
@ -40,6 +41,7 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
||||||
Response createUsersWithListInput(@Valid @NotNull List<User> body);
|
Response createUsersWithListInput(@Valid @NotNull List<User> body);
|
||||||
|
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
@ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", tags={ "user" })
|
@ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", tags={ "user" })
|
||||||
@ -48,6 +50,7 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
||||||
Response deleteUser(@PathParam("username") @ApiParam("The name that needs to be deleted") String username);
|
Response deleteUser(@PathParam("username") @ApiParam("The name that needs to be deleted") String username);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ -58,6 +61,7 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
||||||
Response getUserByName(@PathParam("username") @ApiParam("The name that needs to be fetched. Use user1 for testing.") String username);
|
Response getUserByName(@PathParam("username") @ApiParam("The name that needs to be fetched. Use user1 for testing.") String username);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/login")
|
@Path("/login")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@ -67,6 +71,7 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) })
|
@ApiResponse(code = 400, message = "Invalid username/password supplied", response = Void.class) })
|
||||||
Response loginUser(@QueryParam("username") @NotNull @ApiParam("The user name for login") String username,@QueryParam("password") @NotNull @ApiParam("The password for login in clear text") String password);
|
Response loginUser(@QueryParam("username") @NotNull @ApiParam("The user name for login") String username,@QueryParam("password") @NotNull @ApiParam("The password for login in clear text") String password);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/logout")
|
@Path("/logout")
|
||||||
@ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ "user" })
|
@ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ "user" })
|
||||||
@ -74,6 +79,7 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
|
||||||
Response logoutUser();
|
Response logoutUser();
|
||||||
|
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
@ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", tags={ "user" })
|
@ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", tags={ "user" })
|
||||||
@ -81,4 +87,5 @@ public interface UserApi {
|
|||||||
@ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class),
|
@ApiResponse(code = 400, message = "Invalid user supplied", response = Void.class),
|
||||||
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
@ApiResponse(code = 404, message = "User not found", response = Void.class) })
|
||||||
Response updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid @NotNull User body);
|
Response updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid @NotNull User body);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,14 +22,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("AdditionalPropertiesClass")
|
@JsonTypeName("AdditionalPropertiesClass")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class AdditionalPropertiesClass implements Serializable {
|
public class AdditionalPropertiesClass implements Serializable {
|
||||||
private @Valid Map<String, String> mapString = null;
|
private @Valid Map<String, String> mapString = new HashMap<>();
|
||||||
private @Valid Map<String, BigDecimal> mapNumber = null;
|
private @Valid Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||||
private @Valid Map<String, Integer> mapInteger = null;
|
private @Valid Map<String, Integer> mapInteger = new HashMap<>();
|
||||||
private @Valid Map<String, Boolean> mapBoolean = null;
|
private @Valid Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||||
private @Valid Map<String, List<Integer>> mapArrayInteger = null;
|
private @Valid Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||||
private @Valid Map<String, List<Object>> mapArrayAnytype = null;
|
private @Valid Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||||
private @Valid Map<String, Map<String, String>> mapMapString = null;
|
private @Valid Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||||
private @Valid Map<String, Map<String, Object>> mapMapAnytype = null;
|
private @Valid Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||||
private @Valid Object anytype1;
|
private @Valid Object anytype1;
|
||||||
private @Valid Object anytype2;
|
private @Valid Object anytype2;
|
||||||
private @Valid Object anytype3;
|
private @Valid Object anytype3;
|
||||||
|
@ -4,6 +4,7 @@ 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.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -21,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("ArrayOfArrayOfNumberOnly")
|
@JsonTypeName("ArrayOfArrayOfNumberOnly")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||||
private @Valid List<List<BigDecimal>> arrayArrayNumber = null;
|
private @Valid List<List<BigDecimal>> arrayArrayNumber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -4,6 +4,7 @@ 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.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -21,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("ArrayOfNumberOnly")
|
@JsonTypeName("ArrayOfNumberOnly")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class ArrayOfNumberOnly implements Serializable {
|
public class ArrayOfNumberOnly implements Serializable {
|
||||||
private @Valid List<BigDecimal> arrayNumber = null;
|
private @Valid List<BigDecimal> arrayNumber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -3,6 +3,7 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.model.ReadOnlyFirst;
|
import org.openapitools.model.ReadOnlyFirst;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@ -21,9 +22,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("ArrayTest")
|
@JsonTypeName("ArrayTest")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class ArrayTest implements Serializable {
|
public class ArrayTest implements Serializable {
|
||||||
private @Valid List<String> arrayOfString = null;
|
private @Valid List<String> arrayOfString;
|
||||||
private @Valid List<List<Long>> arrayArrayOfInteger = null;
|
private @Valid List<List<Long>> arrayArrayOfInteger;
|
||||||
private @Valid List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
private @Valid List<List<ReadOnlyFirst>> arrayArrayOfModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -3,6 +3,7 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -115,7 +116,7 @@ public class EnumArrays implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private @Valid List<ArrayEnumEnum> arrayEnum = null;
|
private @Valid List<ArrayEnumEnum> arrayEnum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -3,6 +3,7 @@ package org.openapitools.model;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.model.ModelFile;
|
import org.openapitools.model.ModelFile;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@ -22,7 +23,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class FileSchemaTestClass implements Serializable {
|
public class FileSchemaTestClass implements Serializable {
|
||||||
private @Valid ModelFile _file;
|
private @Valid ModelFile _file;
|
||||||
private @Valid List<ModelFile> files = null;
|
private @Valid List<ModelFile> files;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -368,7 +368,7 @@ public class FormatTest implements Serializable {
|
|||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append("*").append("\n");
|
||||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
@JsonTypeName("MapTest")
|
@JsonTypeName("MapTest")
|
||||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen")
|
||||||
public class MapTest implements Serializable {
|
public class MapTest implements Serializable {
|
||||||
private @Valid Map<String, Map<String, String>> mapMapOfString = null;
|
private @Valid Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
|
||||||
public enum InnerEnum {
|
public enum InnerEnum {
|
||||||
|
|
||||||
UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower"));
|
UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower"));
|
||||||
@ -68,9 +68,9 @@ public class MapTest implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private @Valid Map<String, InnerEnum> mapOfEnumString = null;
|
private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
|
||||||
private @Valid Map<String, Boolean> directMap = null;
|
private @Valid Map<String, Boolean> directMap = new HashMap<>();
|
||||||
private @Valid Map<String, Boolean> indirectMap = null;
|
private @Valid Map<String, Boolean> indirectMap = new HashMap<>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -25,7 +25,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
|||||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
||||||
private @Valid UUID uuid;
|
private @Valid UUID uuid;
|
||||||
private @Valid Date dateTime;
|
private @Valid Date dateTime;
|
||||||
private @Valid Map<String, Animal> map = null;
|
private @Valid Map<String, Animal> map = new HashMap<>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -29,7 +30,7 @@ public class Pet implements Serializable {
|
|||||||
private @Valid Category category;
|
private @Valid Category category;
|
||||||
private @Valid String name;
|
private @Valid String name;
|
||||||
private @Valid Set<String> photoUrls = new LinkedHashSet<>();
|
private @Valid Set<String> photoUrls = new LinkedHashSet<>();
|
||||||
private @Valid List<Tag> tags = null;
|
private @Valid List<Tag> tags;
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
|
|
||||||
AVAILABLE(String.valueOf("available")), PENDING(String.valueOf("pending")), SOLD(String.valueOf("sold"));
|
AVAILABLE(String.valueOf("available")), PENDING(String.valueOf("pending")), SOLD(String.valueOf("sold"));
|
||||||
|
@ -4,6 +4,7 @@ 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.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
@ -4,6 +4,7 @@ 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.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
@ -4,6 +4,7 @@ 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.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
@ -25,31 +26,31 @@ public class XmlItem implements Serializable {
|
|||||||
private @Valid BigDecimal attributeNumber;
|
private @Valid BigDecimal attributeNumber;
|
||||||
private @Valid Integer attributeInteger;
|
private @Valid Integer attributeInteger;
|
||||||
private @Valid Boolean attributeBoolean;
|
private @Valid Boolean attributeBoolean;
|
||||||
private @Valid List<Integer> wrappedArray = null;
|
private @Valid List<Integer> wrappedArray;
|
||||||
private @Valid String nameString;
|
private @Valid String nameString;
|
||||||
private @Valid BigDecimal nameNumber;
|
private @Valid BigDecimal nameNumber;
|
||||||
private @Valid Integer nameInteger;
|
private @Valid Integer nameInteger;
|
||||||
private @Valid Boolean nameBoolean;
|
private @Valid Boolean nameBoolean;
|
||||||
private @Valid List<Integer> nameArray = null;
|
private @Valid List<Integer> nameArray;
|
||||||
private @Valid List<Integer> nameWrappedArray = null;
|
private @Valid List<Integer> nameWrappedArray;
|
||||||
private @Valid String prefixString;
|
private @Valid String prefixString;
|
||||||
private @Valid BigDecimal prefixNumber;
|
private @Valid BigDecimal prefixNumber;
|
||||||
private @Valid Integer prefixInteger;
|
private @Valid Integer prefixInteger;
|
||||||
private @Valid Boolean prefixBoolean;
|
private @Valid Boolean prefixBoolean;
|
||||||
private @Valid List<Integer> prefixArray = null;
|
private @Valid List<Integer> prefixArray;
|
||||||
private @Valid List<Integer> prefixWrappedArray = null;
|
private @Valid List<Integer> prefixWrappedArray;
|
||||||
private @Valid String namespaceString;
|
private @Valid String namespaceString;
|
||||||
private @Valid BigDecimal namespaceNumber;
|
private @Valid BigDecimal namespaceNumber;
|
||||||
private @Valid Integer namespaceInteger;
|
private @Valid Integer namespaceInteger;
|
||||||
private @Valid Boolean namespaceBoolean;
|
private @Valid Boolean namespaceBoolean;
|
||||||
private @Valid List<Integer> namespaceArray = null;
|
private @Valid List<Integer> namespaceArray;
|
||||||
private @Valid List<Integer> namespaceWrappedArray = null;
|
private @Valid List<Integer> namespaceWrappedArray;
|
||||||
private @Valid String prefixNsString;
|
private @Valid String prefixNsString;
|
||||||
private @Valid BigDecimal prefixNsNumber;
|
private @Valid BigDecimal prefixNsNumber;
|
||||||
private @Valid Integer prefixNsInteger;
|
private @Valid Integer prefixNsInteger;
|
||||||
private @Valid Boolean prefixNsBoolean;
|
private @Valid Boolean prefixNsBoolean;
|
||||||
private @Valid List<Integer> prefixNsArray = null;
|
private @Valid List<Integer> prefixNsArray;
|
||||||
private @Valid List<Integer> prefixNsWrappedArray = null;
|
private @Valid List<Integer> prefixNsWrappedArray;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
**/
|
**/
|
||||||
|
@ -1079,6 +1079,14 @@ paths:
|
|||||||
patch:
|
patch:
|
||||||
description: To test special tags and operation ID starting with number
|
description: To test special tags and operation ID starting with number
|
||||||
operationId: 123_test_@#$%_special_tags
|
operationId: 123_test_@#$%_special_tags
|
||||||
|
parameters:
|
||||||
|
- description: to test uuid example value
|
||||||
|
in: header
|
||||||
|
name: uuid_test
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
format: uuid
|
||||||
|
type: string
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@ -1438,15 +1446,29 @@ components:
|
|||||||
Dog:
|
Dog:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/Animal'
|
- $ref: '#/components/schemas/Animal'
|
||||||
- $ref: '#/components/schemas/Dog_allOf'
|
- properties:
|
||||||
|
breed:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
Cat:
|
Cat:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/Animal'
|
- $ref: '#/components/schemas/Animal'
|
||||||
- $ref: '#/components/schemas/Cat_allOf'
|
- properties:
|
||||||
|
declawed:
|
||||||
|
type: boolean
|
||||||
|
type: object
|
||||||
BigCat:
|
BigCat:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/Cat'
|
- $ref: '#/components/schemas/Cat'
|
||||||
- $ref: '#/components/schemas/BigCat_allOf'
|
- properties:
|
||||||
|
kind:
|
||||||
|
enum:
|
||||||
|
- lions
|
||||||
|
- tigers
|
||||||
|
- leopards
|
||||||
|
- jaguars
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
Animal:
|
Animal:
|
||||||
discriminator:
|
discriminator:
|
||||||
propertyName: className
|
propertyName: className
|
||||||
@ -2111,6 +2133,7 @@ components:
|
|||||||
status:
|
status:
|
||||||
description: Updated status of the pet
|
description: Updated status of the pet
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
uploadFile_request:
|
uploadFile_request:
|
||||||
properties:
|
properties:
|
||||||
additionalMetadata:
|
additionalMetadata:
|
||||||
@ -2120,6 +2143,7 @@ components:
|
|||||||
description: file to upload
|
description: file to upload
|
||||||
format: binary
|
format: binary
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
testEnumParameters_request:
|
testEnumParameters_request:
|
||||||
properties:
|
properties:
|
||||||
enum_form_string_array:
|
enum_form_string_array:
|
||||||
@ -2139,6 +2163,7 @@ components:
|
|||||||
- -efg
|
- -efg
|
||||||
- (xyz)
|
- (xyz)
|
||||||
type: string
|
type: string
|
||||||
|
type: object
|
||||||
testEndpointParameters_request:
|
testEndpointParameters_request:
|
||||||
properties:
|
properties:
|
||||||
integer:
|
integer:
|
||||||
@ -2211,6 +2236,7 @@ components:
|
|||||||
- double
|
- double
|
||||||
- number
|
- number
|
||||||
- pattern_without_delimiter
|
- pattern_without_delimiter
|
||||||
|
type: object
|
||||||
testJsonFormData_request:
|
testJsonFormData_request:
|
||||||
properties:
|
properties:
|
||||||
param:
|
param:
|
||||||
@ -2222,6 +2248,7 @@ components:
|
|||||||
required:
|
required:
|
||||||
- param
|
- param
|
||||||
- param2
|
- param2
|
||||||
|
type: object
|
||||||
uploadFileWithRequiredFile_request:
|
uploadFileWithRequiredFile_request:
|
||||||
properties:
|
properties:
|
||||||
additionalMetadata:
|
additionalMetadata:
|
||||||
@ -2233,25 +2260,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- requiredFile
|
- requiredFile
|
||||||
Dog_allOf:
|
|
||||||
properties:
|
|
||||||
breed:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
Cat_allOf:
|
|
||||||
properties:
|
|
||||||
declawed:
|
|
||||||
type: boolean
|
|
||||||
type: object
|
|
||||||
BigCat_allOf:
|
|
||||||
properties:
|
|
||||||
kind:
|
|
||||||
enum:
|
|
||||||
- lions
|
|
||||||
- tigers
|
|
||||||
- leopards
|
|
||||||
- jaguars
|
|
||||||
type: string
|
|
||||||
type: object
|
type: object
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
petstore_auth:
|
petstore_auth:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user