[enhancement] [jaxrs-spec] Add builders to models (#4930)

* Update formatting in jaxrs-spec POJOs

* Add generateBuilders option

* Update formatting in jaxrs-spec POJOs

* Disable the builders generation by default

* Ensure samples are up-to-date

* Revert newline change

* Run ensure-up-to-date

* update doc

* fix merge conflicts

Co-authored-by: Artem Shubovych <ashubovych@atlassian.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
Artem Shubovych 2020-04-12 19:27:34 +10:00 committed by GitHub
parent 1c51d4138e
commit 62c346f8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
150 changed files with 4745 additions and 1321 deletions

View File

@ -22,6 +22,7 @@ sidebar_label: jaxrs-cxf-cdi
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false| |disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false| |fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
|generateBuilders|Whether to generate builders for models.| |false|
|generatePom|Whether to generate pom.xml if the file does not already exist.| |true| |generatePom|Whether to generate pom.xml if the file does not already exist.| |true|
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|

View File

@ -22,6 +22,7 @@ sidebar_label: jaxrs-spec
|disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false| |disableHtmlEscaping|Disable HTML escaping of JSON strings when using gson (needed to avoid problems with byte[] fields)| |false|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false| |fullJavaUtil|whether to use fully qualified name for classes under java.util. This option only works for Java API client| |false|
|generateBuilders|Whether to generate builders for models.| |false|
|generatePom|Whether to generate pom.xml if the file does not already exist.| |true| |generatePom|Whether to generate pom.xml if the file does not already exist.| |true|
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|

View File

@ -38,6 +38,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen {
public static final String USE_SWAGGER_ANNOTATIONS = "useSwaggerAnnotations"; public static final String USE_SWAGGER_ANNOTATIONS = "useSwaggerAnnotations";
public static final String JACKSON = "jackson"; public static final String JACKSON = "jackson";
public static final String OPEN_API_SPEC_FILE_LOCATION = "openApiSpecFileLocation"; public static final String OPEN_API_SPEC_FILE_LOCATION = "openApiSpecFileLocation";
public static final String GENERATE_BUILDERS = "generateBuilders";
public static final String QUARKUS_LIBRARY = "quarkus"; public static final String QUARKUS_LIBRARY = "quarkus";
public static final String THORNTAIL_LIBRARY = "thorntail"; public static final String THORNTAIL_LIBRARY = "thorntail";
@ -47,6 +48,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen {
private boolean interfaceOnly = false; private boolean interfaceOnly = false;
private boolean returnResponse = false; private boolean returnResponse = false;
private boolean generatePom = true; private boolean generatePom = true;
private boolean generateBuilders = false;
private boolean useSwaggerAnnotations = true; private boolean useSwaggerAnnotations = true;
private boolean useJackson = false; private boolean useJackson = false;
private String openApiSpecFileLocation = "src/main/openapi/openapi.yaml"; private String openApiSpecFileLocation = "src/main/openapi/openapi.yaml";
@ -101,6 +103,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen {
cliOptions.add(library); cliOptions.add(library);
cliOptions.add(CliOption.newBoolean(GENERATE_POM, "Whether to generate pom.xml if the file does not already exist.").defaultValue(String.valueOf(generatePom))); cliOptions.add(CliOption.newBoolean(GENERATE_POM, "Whether to generate pom.xml if the file does not already exist.").defaultValue(String.valueOf(generatePom)));
cliOptions.add(CliOption.newBoolean(GENERATE_BUILDERS, "Whether to generate builders for models.").defaultValue(String.valueOf(generateBuilders)));
cliOptions.add(CliOption.newBoolean(INTERFACE_ONLY, "Whether to generate only API interface stubs without the server files.").defaultValue(String.valueOf(interfaceOnly))); cliOptions.add(CliOption.newBoolean(INTERFACE_ONLY, "Whether to generate only API interface stubs without the server files.").defaultValue(String.valueOf(interfaceOnly)));
cliOptions.add(CliOption.newBoolean(RETURN_RESPONSE, "Whether generate API interface should return javax.ws.rs.core.Response instead of a deserialized entity. Only useful if interfaceOnly is true.").defaultValue(String.valueOf(returnResponse))); cliOptions.add(CliOption.newBoolean(RETURN_RESPONSE, "Whether generate API interface should return javax.ws.rs.core.Response instead of a deserialized entity. Only useful if interfaceOnly is true.").defaultValue(String.valueOf(returnResponse)));
cliOptions.add(CliOption.newBoolean(USE_SWAGGER_ANNOTATIONS, "Whether to generate Swagger annotations.", useSwaggerAnnotations)); cliOptions.add(CliOption.newBoolean(USE_SWAGGER_ANNOTATIONS, "Whether to generate Swagger annotations.", useSwaggerAnnotations));
@ -124,7 +127,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen {
additionalProperties.remove(RETURN_RESPONSE); additionalProperties.remove(RETURN_RESPONSE);
} }
} }
if(QUARKUS_LIBRARY.equals(library) || THORNTAIL_LIBRARY.equals(library) || HELIDON_LIBRARY.equals(library) || OPEN_LIBERTY_LIBRARY.equals(library)) { if (QUARKUS_LIBRARY.equals(library) || THORNTAIL_LIBRARY.equals(library) || HELIDON_LIBRARY.equals(library) || OPEN_LIBERTY_LIBRARY.equals(library)) {
useSwaggerAnnotations = false; useSwaggerAnnotations = false;
} else { } else {
if (additionalProperties.containsKey(USE_SWAGGER_ANNOTATIONS)) { if (additionalProperties.containsKey(USE_SWAGGER_ANNOTATIONS)) {
@ -132,6 +135,12 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen {
} }
} }
writePropertyBack(USE_SWAGGER_ANNOTATIONS, useSwaggerAnnotations); writePropertyBack(USE_SWAGGER_ANNOTATIONS, useSwaggerAnnotations);
if (additionalProperties.containsKey(GENERATE_BUILDERS)) {
generateBuilders = Boolean.valueOf(additionalProperties.get(GENERATE_BUILDERS).toString());
}
additionalProperties.put(GENERATE_BUILDERS, generateBuilders);
if (additionalProperties.containsKey(OPEN_API_SPEC_FILE_LOCATION)) { if (additionalProperties.containsKey(OPEN_API_SPEC_FILE_LOCATION)) {
openApiSpecFileLocation = additionalProperties.get(OPEN_API_SPEC_FILE_LOCATION).toString(); openApiSpecFileLocation = additionalProperties.get(OPEN_API_SPEC_FILE_LOCATION).toString();
} else if(QUARKUS_LIBRARY.equals(library) || THORNTAIL_LIBRARY.equals(library) || HELIDON_LIBRARY.equals(library)) { } else if(QUARKUS_LIBRARY.equals(library) || THORNTAIL_LIBRARY.equals(library) || HELIDON_LIBRARY.equals(library)) {

View File

@ -6,21 +6,19 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{#description}} {{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{#description}}/**
/**
* {{description}} * {{description}}
**/{{/description}}{{#useSwaggerAnnotations}} **/{{/description}}
{{#description}}{{>additionalModelTypeAnnotations}}@ApiModel(description = "{{{description}}}"){{/description}}{{/useSwaggerAnnotations}} {{#useSwaggerAnnotations}}{{#description}}{{>additionalModelTypeAnnotations}}@ApiModel(description = "{{{description}}}"){{/description}}{{/useSwaggerAnnotations}}
{{>generatedAnnotation}}public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} { {{>generatedAnnotation}}public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#serializableModel}}implements Serializable{{/serializableModel}} {
{{#vars}}{{#isEnum}}{{^isContainer}} {{#vars}}{{#isEnum}}{{^isContainer}}
{{>enumClass}}{{/isContainer}}{{#isContainer}}{{#mostInnerItems}} {{>enumClass}}{{/isContainer}}{{#isContainer}}{{#mostInnerItems}}
{{>enumClass}}{{/mostInnerItems}}{{/isContainer}}{{/isEnum}} {{>enumClass}}{{/mostInnerItems}}{{/isContainer}}{{/isEnum}}
private {{#useBeanValidation}}@Valid{{/useBeanValidation}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/vars}} private {{#useBeanValidation}}@Valid {{/useBeanValidation}}{{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/vars}}
{{#vars}} {{#vars}}/**
/**
{{#description}} {{#description}}
* {{description}} * {{description}}
{{/description}} {{/description}}
@ -36,17 +34,22 @@ import com.fasterxml.jackson.annotation.JsonValue;
return this; return this;
} }
{{#generateBuilders}}public {{classname}}({{#vars}}{{{datatypeWithEnum}}} {{name}}{{#hasMore}}, {{/hasMore}}{{/vars}}) {
{{#vars}}
this.{{name}} = {{name}};
{{/vars}}
}{{/generateBuilders}}
{{#vendorExtensions.x-extra-annotation}}{{{vendorExtensions.x-extra-annotation}}}{{/vendorExtensions.x-extra-annotation}}{{#useSwaggerAnnotations}} {{#vendorExtensions.x-extra-annotation}}{{{vendorExtensions.x-extra-annotation}}}{{/vendorExtensions.x-extra-annotation}}{{#useSwaggerAnnotations}}
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}"){{/useSwaggerAnnotations}} @ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}"){{/useSwaggerAnnotations}}
@JsonProperty("{{baseName}}") @JsonProperty("{{baseName}}")
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{{datatypeWithEnum}}} {{getter}}() { {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{{datatypeWithEnum}}} {{getter}}() {
return {{name}}; return {{name}};
} }
public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { public void {{setter}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}}; this.{{name}} = {{name}};
} }{{/vars}}
{{/vars}}
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
@ -88,4 +91,37 @@ import com.fasterxml.jackson.annotation.JsonValue;
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
{{#generateBuilders}}
public static Builder builder() {
return new Builder();
}
public static class Builder {
{{#vars}}
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
{{/vars}}
{{#vars}}
/**
{{#description}}
* {{description}}
{{/description}}
{{#minimum}}
* minimum: {{minimum}}
{{/minimum}}
{{#maximum}}
* maximum: {{maximum}}
{{/maximum}}
**/
public Builder {{name}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}};
return this;
}
{{/vars}}
public {{classname}} build() {
return new {{classname}}({{#vars}}{{name}}{{#hasMore}}, {{/hasMore}}{{/vars}});
}
}{{/generateBuilders}}
} }

View File

@ -1 +1 @@
4.3.1-SNAPSHOT 4.3.1-SNAPSHOT

View File

@ -1 +1 @@
3.3.0-SNAPSHOT 4.2.3-SNAPSHOT

View File

@ -13,16 +13,15 @@ import java.util.List;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@Path("/another-fake") @Path("/AnotherFake")
@Api(description = "the another-fake API") @Api(description = "the AnotherFake API")
public interface AnotherFakeApi { public interface AnotherFakeApi {
@PATCH @PATCH
@Path("/dummy")
@Consumes({ "application/json" }) @Consumes({ "application/json" })
@Produces({ "application/json" }) @Produces({ "application/json" })
@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 Client client); Response call123testSpecialTags(@Valid Client body);
} }

View File

@ -7,9 +7,9 @@ import java.io.File;
import org.openapitools.model.FileSchemaTestClass; import org.openapitools.model.FileSchemaTestClass;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import java.util.Map; import java.util.Map;
import org.openapitools.model.ModelApiResponse;
import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterComposite;
import org.openapitools.model.User; import org.openapitools.model.User;
import org.openapitools.model.XmlItem;
import javax.ws.rs.*; import javax.ws.rs.*;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
@ -22,12 +22,18 @@ import java.util.List;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@Path("/fake") @Path("/Fake")
@Api(description = "the fake API") @Api(description = "the Fake API")
public interface FakeApi { public interface FakeApi {
@POST @POST
@Path("/outer/boolean") @Consumes({ "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" })
@ApiOperation(value = "creates an XmlItem", notes = "this route creates an XmlItem", tags={ "fake", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class) })
Response createXmlItem(@Valid XmlItem xmlItem);
@POST
@Produces({ "*/*" }) @Produces({ "*/*" })
@ApiOperation(value = "", notes = "Test serialization of outer boolean types", tags={ "fake", }) @ApiOperation(value = "", notes = "Test serialization of outer boolean types", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ -35,15 +41,13 @@ public interface FakeApi {
Response fakeOuterBooleanSerialize(@Valid Boolean body); Response fakeOuterBooleanSerialize(@Valid Boolean body);
@POST @POST
@Path("/outer/composite")
@Produces({ "*/*" }) @Produces({ "*/*" })
@ApiOperation(value = "", notes = "Test serialization of object with outer number type", tags={ "fake", }) @ApiOperation(value = "", notes = "Test serialization of object with outer number type", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) }) @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) })
Response fakeOuterCompositeSerialize(@Valid OuterComposite outerComposite); Response fakeOuterCompositeSerialize(@Valid OuterComposite body);
@POST @POST
@Path("/outer/number")
@Produces({ "*/*" }) @Produces({ "*/*" })
@ApiOperation(value = "", notes = "Test serialization of outer number types", tags={ "fake", }) @ApiOperation(value = "", notes = "Test serialization of outer number types", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ -51,7 +55,6 @@ public interface FakeApi {
Response fakeOuterNumberSerialize(@Valid BigDecimal body); Response fakeOuterNumberSerialize(@Valid BigDecimal body);
@POST @POST
@Path("/outer/string")
@Produces({ "*/*" }) @Produces({ "*/*" })
@ApiOperation(value = "", notes = "Test serialization of outer string types", tags={ "fake", }) @ApiOperation(value = "", notes = "Test serialization of outer string types", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ -59,20 +62,18 @@ public interface FakeApi {
Response fakeOuterStringSerialize(@Valid String body); Response fakeOuterStringSerialize(@Valid String body);
@PUT @PUT
@Path("/body-with-file-schema")
@Consumes({ "application/json" }) @Consumes({ "application/json" })
@ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", }) @ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "Success", response = Void.class) }) @ApiResponse(code = 200, message = "Success", response = Void.class) })
Response testBodyWithFileSchema(@Valid FileSchemaTestClass fileSchemaTestClass); Response testBodyWithFileSchema(@Valid FileSchemaTestClass body);
@PUT @PUT
@Path("/body-with-query-params")
@Consumes({ "application/json" }) @Consumes({ "application/json" })
@ApiOperation(value = "", notes = "", tags={ "fake", }) @ApiOperation(value = "", notes = "", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "Success", response = Void.class) }) @ApiResponse(code = 200, message = "Success", response = Void.class) })
Response testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid User user); Response testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid User body);
@PATCH @PATCH
@Consumes({ "application/json" }) @Consumes({ "application/json" })
@ -80,7 +81,7 @@ public interface FakeApi {
@ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", tags={ "fake", }) @ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) }) @ApiResponse(code = 200, message = "successful operation", response = Client.class) })
Response testClientModel(@Valid Client client); Response testClientModel(@Valid Client body);
@POST @POST
@Consumes({ "application/x-www-form-urlencoded" }) @Consumes({ "application/x-www-form-urlencoded" })
@ -98,35 +99,31 @@ public interface FakeApi {
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid request", response = Void.class), @ApiResponse(code = 400, message = "Invalid request", response = Void.class),
@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") @DefaultValue("new ArrayList<String>()") @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") @DefaultValue("new ArrayList<String>()") @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") @DefaultValue("new ArrayList<String>()") @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
@ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake", })
@ApiResponses(value = {
@ApiResponse(code = 400, message = "Someting 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);
@POST @POST
@Path("/inline-additionalProperties")
@Consumes({ "application/json" }) @Consumes({ "application/json" })
@ApiOperation(value = "test inline additionalProperties", notes = "", tags={ "fake", }) @ApiOperation(value = "test inline additionalProperties", notes = "", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @ApiResponse(code = 200, message = "successful operation", response = Void.class) })
Response testInlineAdditionalProperties(@Valid Map<String, String> requestBody); Response testInlineAdditionalProperties(@Valid Map<String, String> param);
@GET @GET
@Path("/jsonFormData")
@Consumes({ "application/x-www-form-urlencoded" }) @Consumes({ "application/x-www-form-urlencoded" })
@ApiOperation(value = "test json serialization of form data", notes = "", tags={ "fake", }) @ApiOperation(value = "test json serialization of form data", notes = "", tags={ "fake", })
@ApiResponses(value = { @ApiResponses(value = {
@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);
@POST @PUT
@Path("/{petId}/uploadImageWithRequiredFile") @ApiOperation(value = "", notes = "To test the collection format in query parameters", tags={ "fake" })
@Consumes({ "multipart/form-data" })
@Produces({ "application/json" })
@ApiOperation(value = "uploads an image (required)", notes = "", authorizations = {
@Authorization(value = "petstore_auth", scopes = {
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
@AuthorizationScope(scope = "read:pets", description = "read your pets")
})
}, tags={ "pet" })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) }) @ApiResponse(code = 200, message = "Success", response = Void.class) })
Response uploadFileWithRequiredFile(@PathParam("petId") @ApiParam("ID of pet to update") Long petId, @FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata); 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);
} }

View File

@ -0,0 +1,29 @@
package org.openapitools.api;
import org.openapitools.model.Client;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import io.swagger.annotations.*;
import java.io.InputStream;
import java.util.Map;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
@Path("/FakeClassnameTags123")
@Api(description = "the FakeClassnameTags123 API")
public interface FakeClassnameTags123Api {
@PATCH
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", authorizations = {
@Authorization(value = "api_key_query")
}, tags={ "fake_classname_tags 123#$%^" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
Response testClassname(@Valid Client body);
}

View File

@ -25,5 +25,5 @@ public interface FakeClassnameTestApi {
}, tags={ "fake_classname_tags 123#$%^" }) }, tags={ "fake_classname_tags 123#$%^" })
@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 Client client); Response testClassname(@Valid Client body);
} }

View File

@ -15,8 +15,8 @@ import java.util.List;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@Path("/pet") @Path("/Pet")
@Api(description = "the pet API") @Api(description = "the Pet API")
public interface PetApi { public interface PetApi {
@POST @POST
@ -28,11 +28,11 @@ public interface PetApi {
}) })
}, tags={ "pet", }) }, tags={ "pet", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
@ApiResponse(code = 405, message = "Invalid input", response = Void.class) }) @ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
Response addPet(@Valid Pet pet); Response addPet(@Valid Pet body);
@DELETE @DELETE
@Path("/{petId}")
@ApiOperation(value = "Deletes a pet", notes = "", authorizations = { @ApiOperation(value = "Deletes a pet", notes = "", authorizations = {
@Authorization(value = "petstore_auth", scopes = { @Authorization(value = "petstore_auth", scopes = {
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
@ -40,11 +40,11 @@ public interface PetApi {
}) })
}, tags={ "pet", }) }, tags={ "pet", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
@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")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", authorizations = { @ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", authorizations = {
@Authorization(value = "petstore_auth", scopes = { @Authorization(value = "petstore_auth", scopes = {
@ -55,10 +55,9 @@ public interface PetApi {
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
@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 @DefaultValue("new ArrayList<String>()") @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")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", authorizations = { @ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", authorizations = {
@Authorization(value = "petstore_auth", scopes = { @Authorization(value = "petstore_auth", scopes = {
@ -69,10 +68,9 @@ public interface PetApi {
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
@ApiResponse(code = 400, message = "Invalid tag value", response = Void.class, responseContainer = "List") }) @ApiResponse(code = 400, message = "Invalid tag value", response = Void.class, responseContainer = "List") })
Response findPetsByTags(@QueryParam("tags") @NotNull @DefaultValue("new ArrayList<String>()") @ApiParam("Tags to filter by") List<String> tags); Response findPetsByTags(@QueryParam("tags") @NotNull @ApiParam("Tags to filter by") List<String> tags);
@GET @GET
@Path("/{petId}")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", authorizations = { @ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", authorizations = {
@Authorization(value = "api_key") @Authorization(value = "api_key")
@ -92,13 +90,13 @@ public interface PetApi {
}) })
}, tags={ "pet", }) }, tags={ "pet", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class),
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
@ApiResponse(code = 404, message = "Pet not found", response = Void.class), @ApiResponse(code = 404, message = "Pet not found", response = Void.class),
@ApiResponse(code = 405, message = "Validation exception", response = Void.class) }) @ApiResponse(code = 405, message = "Validation exception", response = Void.class) })
Response updatePet(@Valid Pet pet); Response updatePet(@Valid Pet body);
@POST @POST
@Path("/{petId}")
@Consumes({ "application/x-www-form-urlencoded" }) @Consumes({ "application/x-www-form-urlencoded" })
@ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = { @ApiOperation(value = "Updates a pet in the store with form data", notes = "", authorizations = {
@Authorization(value = "petstore_auth", scopes = { @Authorization(value = "petstore_auth", scopes = {
@ -111,7 +109,6 @@ public interface PetApi {
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")
@Consumes({ "multipart/form-data" }) @Consumes({ "multipart/form-data" })
@Produces({ "application/json" }) @Produces({ "application/json" })
@ApiOperation(value = "uploads an image", notes = "", authorizations = { @ApiOperation(value = "uploads an image", notes = "", authorizations = {
@ -119,8 +116,21 @@ public interface PetApi {
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
@AuthorizationScope(scope = "read:pets", description = "read your pets") @AuthorizationScope(scope = "read:pets", description = "read your pets")
}) })
}, tags={ "pet" }) }, tags={ "pet", })
@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);
@POST
@Consumes({ "multipart/form-data" })
@Produces({ "application/json" })
@ApiOperation(value = "uploads an image (required)", notes = "", authorizations = {
@Authorization(value = "petstore_auth", scopes = {
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
@AuthorizationScope(scope = "read:pets", description = "read your pets")
})
}, tags={ "pet" })
@ApiResponses(value = {
@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);
} }

View File

@ -14,12 +14,11 @@ import java.util.List;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@Path("/store") @Path("/Store")
@Api(description = "the store API") @Api(description = "the Store API")
public interface StoreApi { public interface StoreApi {
@DELETE @DELETE
@Path("/order/{order_id}")
@ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", }) @ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", tags={ "store", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class), @ApiResponse(code = 400, message = "Invalid ID supplied", response = Void.class),
@ -27,7 +26,6 @@ public interface StoreApi {
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")
@Produces({ "application/json" }) @Produces({ "application/json" })
@ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", authorizations = { @ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", authorizations = {
@Authorization(value = "api_key") @Authorization(value = "api_key")
@ -37,7 +35,6 @@ public interface StoreApi {
Response getInventory(); Response getInventory();
@GET @GET
@Path("/order/{order_id}")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", tags={ "store", }) @ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", tags={ "store", })
@ApiResponses(value = { @ApiResponses(value = {
@ -47,11 +44,10 @@ public interface StoreApi {
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")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Place an order for a pet", notes = "", tags={ "store" }) @ApiOperation(value = "Place an order for a pet", notes = "", tags={ "store" })
@ApiResponses(value = { @ApiResponses(value = {
@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 Order order); Response placeOrder(@Valid Order body);
} }

View File

@ -14,32 +14,29 @@ import java.util.List;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@Path("/user") @Path("/User")
@Api(description = "the user API") @Api(description = "the User API")
public interface UserApi { public interface UserApi {
@POST @POST
@ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", tags={ "user", }) @ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", tags={ "user", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @ApiResponse(code = 200, message = "successful operation", response = Void.class) })
Response createUser(@Valid User user); Response createUser(@Valid User body);
@POST @POST
@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", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @ApiResponse(code = 200, message = "successful operation", response = Void.class) })
Response createUsersWithArrayInput(@Valid List<User> user); Response createUsersWithArrayInput(@Valid List<User> body);
@POST @POST
@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", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class) }) @ApiResponse(code = 200, message = "successful operation", response = Void.class) })
Response createUsersWithListInput(@Valid List<User> user); Response createUsersWithListInput(@Valid List<User> body);
@DELETE @DELETE
@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", })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class), @ApiResponse(code = 400, message = "Invalid username supplied", response = Void.class),
@ -47,7 +44,6 @@ public interface UserApi {
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}")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Get user by user name", notes = "", tags={ "user", }) @ApiOperation(value = "Get user by user name", notes = "", tags={ "user", })
@ApiResponses(value = { @ApiResponses(value = {
@ -57,7 +53,6 @@ public interface UserApi {
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")
@Produces({ "application/xml", "application/json" }) @Produces({ "application/xml", "application/json" })
@ApiOperation(value = "Logs user into the system", notes = "", tags={ "user", }) @ApiOperation(value = "Logs user into the system", notes = "", tags={ "user", })
@ApiResponses(value = { @ApiResponses(value = {
@ -66,17 +61,15 @@ public interface UserApi {
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")
@ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ "user", }) @ApiOperation(value = "Logs out current logged in user session", notes = "", tags={ "user", })
@ApiResponses(value = { @ApiResponses(value = {
@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}")
@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" })
@ApiResponses(value = { @ApiResponses(value = {
@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 User user); Response updateUser(@PathParam("username") @ApiParam("name that need to be deleted") String username,@Valid User body);
} }

View File

@ -0,0 +1,80 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesAnyType extends HashMap<String, Object> implements Serializable {
private @Valid String name;
/**
**/
public AdditionalPropertiesAnyType name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o;
return Objects.equals(this.name, additionalPropertiesAnyType.name) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesAnyType {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,81 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesArray extends HashMap<String, List> implements Serializable {
private @Valid String name;
/**
**/
public AdditionalPropertiesArray name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o;
return Objects.equals(this.name, additionalPropertiesArray.name) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesArray {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,80 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implements Serializable {
private @Valid String name;
/**
**/
public AdditionalPropertiesBoolean name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o;
return Objects.equals(this.name, additionalPropertiesBoolean.name) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesBoolean {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -2,6 +2,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.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -19,41 +20,203 @@ import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesClass implements Serializable { public class AdditionalPropertiesClass implements Serializable {
private @Valid Map<String, String> mapProperty = new HashMap<String, String>(); private @Valid Map<String, String> mapString = new HashMap<String, String>();
private @Valid Map<String, Map<String, String>> mapOfMapProperty = new HashMap<String, Map<String, String>>(); private @Valid Map<String, BigDecimal> mapNumber = new HashMap<String, BigDecimal>();
private @Valid Map<String, Integer> mapInteger = new HashMap<String, Integer>();
private @Valid Map<String, Boolean> mapBoolean = new HashMap<String, Boolean>();
private @Valid Map<String, List<Integer>> mapArrayInteger = new HashMap<String, List<Integer>>();
private @Valid Map<String, List<Object>> mapArrayAnytype = new HashMap<String, List<Object>>();
private @Valid Map<String, Map<String, String>> mapMapString = new HashMap<String, Map<String, String>>();
private @Valid Map<String, Map<String, Object>> mapMapAnytype = new HashMap<String, Map<String, Object>>();
private @Valid Object anytype1;
private @Valid Object anytype2;
private @Valid Object anytype3;
/** /**
**/ **/
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) { public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
this.mapProperty = mapProperty; this.mapString = mapString;
return this; return this;
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_property") @JsonProperty("map_string")
public Map<String, String> getMapProperty() { public Map<String, String> getMapString() {
return mapProperty; return mapString;
} }
public void setMapProperty(Map<String, String> mapProperty) { public void setMapString(Map<String, String> mapString) {
this.mapProperty = mapProperty; this.mapString = mapString;
} }
/** /**
**/ **/
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) { public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
this.mapOfMapProperty = mapOfMapProperty; this.mapNumber = mapNumber;
return this; return this;
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_of_map_property") @JsonProperty("map_number")
public Map<String, Map<String, String>> getMapOfMapProperty() { public Map<String, BigDecimal> getMapNumber() {
return mapOfMapProperty; return mapNumber;
} }
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) { public void setMapNumber(Map<String, BigDecimal> mapNumber) {
this.mapOfMapProperty = mapOfMapProperty; this.mapNumber = mapNumber;
}
/**
**/
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("map_integer")
public Map<String, Integer> getMapInteger() {
return mapInteger;
}
public void setMapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger;
}
/**
**/
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("map_boolean")
public Map<String, Boolean> getMapBoolean() {
return mapBoolean;
}
public void setMapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean;
}
/**
**/
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("map_array_integer")
public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger;
}
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger;
}
/**
**/
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("map_array_anytype")
public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype;
}
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype;
}
/**
**/
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("map_map_string")
public Map<String, Map<String, String>> getMapMapString() {
return mapMapString;
}
public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString;
}
/**
**/
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("map_map_anytype")
public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype;
}
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype;
}
/**
**/
public AdditionalPropertiesClass anytype1(Object anytype1) {
this.anytype1 = anytype1;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("anytype_1")
public Object getAnytype1() {
return anytype1;
}
public void setAnytype1(Object anytype1) {
this.anytype1 = anytype1;
}
/**
**/
public AdditionalPropertiesClass anytype2(Object anytype2) {
this.anytype2 = anytype2;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("anytype_2")
public Object getAnytype2() {
return anytype2;
}
public void setAnytype2(Object anytype2) {
this.anytype2 = anytype2;
}
/**
**/
public AdditionalPropertiesClass anytype3(Object anytype3) {
this.anytype3 = anytype3;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("anytype_3")
public Object getAnytype3() {
return anytype3;
}
public void setAnytype3(Object anytype3) {
this.anytype3 = anytype3;
} }
@ -66,13 +229,22 @@ public class AdditionalPropertiesClass implements Serializable {
return false; return false;
} }
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o; AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
return Objects.equals(mapProperty, additionalPropertiesClass.mapProperty) && return Objects.equals(this.mapString, additionalPropertiesClass.mapString) &&
Objects.equals(mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty); Objects.equals(this.mapNumber, additionalPropertiesClass.mapNumber) &&
Objects.equals(this.mapInteger, additionalPropertiesClass.mapInteger) &&
Objects.equals(this.mapBoolean, additionalPropertiesClass.mapBoolean) &&
Objects.equals(this.mapArrayInteger, additionalPropertiesClass.mapArrayInteger) &&
Objects.equals(this.mapArrayAnytype, additionalPropertiesClass.mapArrayAnytype) &&
Objects.equals(this.mapMapString, additionalPropertiesClass.mapMapString) &&
Objects.equals(this.mapMapAnytype, additionalPropertiesClass.mapMapAnytype) &&
Objects.equals(this.anytype1, additionalPropertiesClass.anytype1) &&
Objects.equals(this.anytype2, additionalPropertiesClass.anytype2) &&
Objects.equals(this.anytype3, additionalPropertiesClass.anytype3);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(mapProperty, mapOfMapProperty); return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
} }
@Override @Override
@ -80,8 +252,17 @@ public class AdditionalPropertiesClass implements Serializable {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesClass {\n"); sb.append("class AdditionalPropertiesClass {\n");
sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n"); sb.append(" mapString: ").append(toIndentedString(mapString)).append("\n");
sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n"); sb.append(" mapNumber: ").append(toIndentedString(mapNumber)).append("\n");
sb.append(" mapInteger: ").append(toIndentedString(mapInteger)).append("\n");
sb.append(" mapBoolean: ").append(toIndentedString(mapBoolean)).append("\n");
sb.append(" mapArrayInteger: ").append(toIndentedString(mapArrayInteger)).append("\n");
sb.append(" mapArrayAnytype: ").append(toIndentedString(mapArrayAnytype)).append("\n");
sb.append(" mapMapString: ").append(toIndentedString(mapMapString)).append("\n");
sb.append(" mapMapAnytype: ").append(toIndentedString(mapMapAnytype)).append("\n");
sb.append(" anytype1: ").append(toIndentedString(anytype1)).append("\n");
sb.append(" anytype2: ").append(toIndentedString(anytype2)).append("\n");
sb.append(" anytype3: ").append(toIndentedString(anytype3)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }

View File

@ -0,0 +1,80 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesInteger extends HashMap<String, Integer> implements Serializable {
private @Valid String name;
/**
**/
public AdditionalPropertiesInteger name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesInteger additionalPropertiesInteger = (AdditionalPropertiesInteger) o;
return Objects.equals(this.name, additionalPropertiesInteger.name) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesInteger {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,81 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> implements Serializable {
private @Valid String name;
/**
**/
public AdditionalPropertiesNumber name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesNumber additionalPropertiesNumber = (AdditionalPropertiesNumber) o;
return Objects.equals(this.name, additionalPropertiesNumber.name) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesNumber {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,80 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesObject extends HashMap<String, Map> implements Serializable {
private @Valid String name;
/**
**/
public AdditionalPropertiesObject name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesObject additionalPropertiesObject = (AdditionalPropertiesObject) o;
return Objects.equals(this.name, additionalPropertiesObject.name) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesObject {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,80 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AdditionalPropertiesString extends HashMap<String, String> implements Serializable {
private @Valid String name;
/**
**/
public AdditionalPropertiesString name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdditionalPropertiesString additionalPropertiesString = (AdditionalPropertiesString) o;
return Objects.equals(this.name, additionalPropertiesString.name) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(name, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalPropertiesString {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -14,6 +14,12 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
@JsonSubTypes({
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
})
public class Animal implements Serializable { public class Animal implements Serializable {
@ -66,8 +72,8 @@ public class Animal implements Serializable {
return false; return false;
} }
Animal animal = (Animal) o; Animal animal = (Animal) o;
return Objects.equals(className, animal.className) && return Objects.equals(this.className, animal.className) &&
Objects.equals(color, animal.color); Objects.equals(this.color, animal.color);
} }
@Override @Override

View File

@ -48,7 +48,7 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
return false; return false;
} }
ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o; ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
return Objects.equals(arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber); return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
} }
@Override @Override

View File

@ -48,7 +48,7 @@ public class ArrayOfNumberOnly implements Serializable {
return false; return false;
} }
ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o; ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
return Objects.equals(arrayNumber, arrayOfNumberOnly.arrayNumber); return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
} }
@Override @Override

View File

@ -84,9 +84,9 @@ public class ArrayTest implements Serializable {
return false; return false;
} }
ArrayTest arrayTest = (ArrayTest) o; ArrayTest arrayTest = (ArrayTest) o;
return Objects.equals(arrayOfString, arrayTest.arrayOfString) && return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
Objects.equals(arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) && Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
Objects.equals(arrayArrayOfModel, arrayTest.arrayArrayOfModel); Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
} }
@Override @Override

View File

@ -0,0 +1,113 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.BigCatAllOf;
import org.openapitools.model.Cat;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class BigCat extends Cat implements Serializable {
public enum KindEnum {
LIONS(String.valueOf("lions")), TIGERS(String.valueOf("tigers")), LEOPARDS(String.valueOf("leopards")), JAGUARS(String.valueOf("jaguars"));
private String value;
KindEnum (String v) {
value = v;
}
public String value() {
return value;
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static KindEnum fromValue(String value) {
for (KindEnum b : KindEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
private @Valid KindEnum kind;
/**
**/
public BigCat kind(KindEnum kind) {
this.kind = kind;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("kind")
public KindEnum getKind() {
return kind;
}
public void setKind(KindEnum kind) {
this.kind = kind;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BigCat bigCat = (BigCat) o;
return Objects.equals(this.kind, bigCat.kind) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(kind, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BigCat {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" kind: ").append(toIndentedString(kind)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,110 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class BigCatAllOf implements Serializable {
public enum KindEnum {
LIONS(String.valueOf("lions")), TIGERS(String.valueOf("tigers")), LEOPARDS(String.valueOf("leopards")), JAGUARS(String.valueOf("jaguars"));
private String value;
KindEnum (String v) {
value = v;
}
public String value() {
return value;
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static KindEnum fromValue(String value) {
for (KindEnum b : KindEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
private @Valid KindEnum kind;
/**
**/
public BigCatAllOf kind(KindEnum kind) {
this.kind = kind;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("kind")
public KindEnum getKind() {
return kind;
}
public void setKind(KindEnum kind) {
this.kind = kind;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BigCatAllOf bigCatAllOf = (BigCatAllOf) o;
return Objects.equals(this.kind, bigCatAllOf.kind);
}
@Override
public int hashCode() {
return Objects.hash(kind);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BigCatAllOf {\n");
sb.append(" kind: ").append(toIndentedString(kind)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -136,12 +136,12 @@ public class Capitalization implements Serializable {
return false; return false;
} }
Capitalization capitalization = (Capitalization) o; Capitalization capitalization = (Capitalization) o;
return Objects.equals(smallCamel, capitalization.smallCamel) && return Objects.equals(this.smallCamel, capitalization.smallCamel) &&
Objects.equals(capitalCamel, capitalization.capitalCamel) && Objects.equals(this.capitalCamel, capitalization.capitalCamel) &&
Objects.equals(smallSnake, capitalization.smallSnake) && Objects.equals(this.smallSnake, capitalization.smallSnake) &&
Objects.equals(capitalSnake, capitalization.capitalSnake) && Objects.equals(this.capitalSnake, capitalization.capitalSnake) &&
Objects.equals(scAETHFlowPoints, capitalization.scAETHFlowPoints) && Objects.equals(this.scAETHFlowPoints, capitalization.scAETHFlowPoints) &&
Objects.equals(ATT_NAME, capitalization.ATT_NAME); Objects.equals(this.ATT_NAME, capitalization.ATT_NAME);
} }
@Override @Override

View File

@ -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 org.openapitools.model.Animal; import org.openapitools.model.Animal;
import org.openapitools.model.CatAllOf;
import java.io.Serializable; import java.io.Serializable;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@ -46,12 +47,13 @@ public class Cat extends Animal implements Serializable {
return false; return false;
} }
Cat cat = (Cat) o; Cat cat = (Cat) o;
return Objects.equals(declawed, cat.declawed); return Objects.equals(this.declawed, cat.declawed) &&
super.equals(o);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(declawed); return Objects.hash(declawed, super.hashCode());
} }
@Override @Override

View File

@ -0,0 +1,77 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class CatAllOf implements Serializable {
private @Valid Boolean declawed;
/**
**/
public CatAllOf declawed(Boolean declawed) {
this.declawed = declawed;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("declawed")
public Boolean getDeclawed() {
return declawed;
}
public void setDeclawed(Boolean declawed) {
this.declawed = declawed;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CatAllOf catAllOf = (CatAllOf) o;
return Objects.equals(this.declawed, catAllOf.declawed);
}
@Override
public int hashCode() {
return Objects.hash(declawed);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CatAllOf {\n");
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
public class Category implements Serializable { public class Category implements Serializable {
private @Valid Long id; private @Valid Long id;
private @Valid String name; private @Valid String name = "default-name";
/** /**
**/ **/
@ -44,8 +44,9 @@ public class Category implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull
public String getName() { public String getName() {
return name; return name;
} }
@ -63,8 +64,8 @@ public class Category implements Serializable {
return false; return false;
} }
Category category = (Category) o; Category category = (Category) o;
return Objects.equals(id, category.id) && return Objects.equals(this.id, category.id) &&
Objects.equals(name, category.name); Objects.equals(this.name, category.name);
} }
@Override @Override

View File

@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing model with \&quot;_class\&quot; property * Model for testing model with \&quot;_class\&quot; property
**/ **/
@ -47,7 +48,7 @@ public class ClassModel implements Serializable {
return false; return false;
} }
ClassModel classModel = (ClassModel) o; ClassModel classModel = (ClassModel) o;
return Objects.equals(propertyClass, classModel.propertyClass); return Objects.equals(this.propertyClass, classModel.propertyClass);
} }
@Override @Override

View File

@ -45,7 +45,7 @@ public class Client implements Serializable {
return false; return false;
} }
Client client = (Client) o; Client client = (Client) o;
return Objects.equals(client, client.client); return Objects.equals(this.client, client.client);
} }
@Override @Override

View File

@ -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 org.openapitools.model.Animal; import org.openapitools.model.Animal;
import org.openapitools.model.DogAllOf;
import java.io.Serializable; import java.io.Serializable;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@ -46,12 +47,13 @@ public class Dog extends Animal implements Serializable {
return false; return false;
} }
Dog dog = (Dog) o; Dog dog = (Dog) o;
return Objects.equals(breed, dog.breed); return Objects.equals(this.breed, dog.breed) &&
super.equals(o);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(breed); return Objects.hash(breed, super.hashCode());
} }
@Override @Override

View File

@ -0,0 +1,77 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class DogAllOf implements Serializable {
private @Valid String breed;
/**
**/
public DogAllOf breed(String breed) {
this.breed = breed;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("breed")
public String getBreed() {
return breed;
}
public void setBreed(String breed) {
this.breed = breed;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DogAllOf dogAllOf = (DogAllOf) o;
return Objects.equals(this.breed, dogAllOf.breed);
}
@Override
public int hashCode() {
return Objects.hash(breed);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DogAllOf {\n");
sb.append(" breed: ").append(toIndentedString(breed)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -41,13 +41,13 @@ public enum JustSymbolEnum {
} }
@JsonCreator @JsonCreator
public static JustSymbolEnum fromValue(String v) { public static JustSymbolEnum fromValue(String value) {
for (JustSymbolEnum b : JustSymbolEnum.values()) { for (JustSymbolEnum b : JustSymbolEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
@ -75,13 +75,13 @@ public enum ArrayEnumEnum {
} }
@JsonCreator @JsonCreator
public static ArrayEnumEnum fromValue(String v) { public static ArrayEnumEnum fromValue(String value) {
for (ArrayEnumEnum b : ArrayEnumEnum.values()) { for (ArrayEnumEnum b : ArrayEnumEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
@ -131,8 +131,8 @@ public enum ArrayEnumEnum {
return false; return false;
} }
EnumArrays enumArrays = (EnumArrays) o; EnumArrays enumArrays = (EnumArrays) o;
return Objects.equals(justSymbol, enumArrays.justSymbol) && return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
Objects.equals(arrayEnum, enumArrays.arrayEnum); Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
} }
@Override @Override

View File

@ -31,13 +31,13 @@ public enum EnumClass {
} }
@JsonCreator @JsonCreator
public static EnumClass fromValue(String text) { public static EnumClass fromValue(String value) {
for (EnumClass b : EnumClass.values()) { for (EnumClass b : EnumClass.values()) {
if (String.valueOf(b.value).equals(text)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + text + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }

View File

@ -40,13 +40,13 @@ public enum EnumStringEnum {
} }
@JsonCreator @JsonCreator
public static EnumStringEnum fromValue(String v) { public static EnumStringEnum fromValue(String value) {
for (EnumStringEnum b : EnumStringEnum.values()) { for (EnumStringEnum b : EnumStringEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
@ -74,13 +74,13 @@ public enum EnumStringRequiredEnum {
} }
@JsonCreator @JsonCreator
public static EnumStringRequiredEnum fromValue(String v) { public static EnumStringRequiredEnum fromValue(String value) {
for (EnumStringRequiredEnum b : EnumStringRequiredEnum.values()) { for (EnumStringRequiredEnum b : EnumStringRequiredEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
@ -108,13 +108,13 @@ public enum EnumIntegerEnum {
} }
@JsonCreator @JsonCreator
public static EnumIntegerEnum fromValue(String v) { public static EnumIntegerEnum fromValue(Integer value) {
for (EnumIntegerEnum b : EnumIntegerEnum.values()) { for (EnumIntegerEnum b : EnumIntegerEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
@ -142,18 +142,18 @@ public enum EnumNumberEnum {
} }
@JsonCreator @JsonCreator
public static EnumNumberEnum fromValue(String v) { public static EnumNumberEnum fromValue(Double value) {
for (EnumNumberEnum b : EnumNumberEnum.values()) { for (EnumNumberEnum b : EnumNumberEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
private @Valid EnumNumberEnum enumNumber; private @Valid EnumNumberEnum enumNumber;
private @Valid OuterEnum outerEnum = null; private @Valid OuterEnum outerEnum;
/** /**
**/ **/
@ -251,11 +251,11 @@ public enum EnumNumberEnum {
return false; return false;
} }
EnumTest enumTest = (EnumTest) o; EnumTest enumTest = (EnumTest) o;
return Objects.equals(enumString, enumTest.enumString) && return Objects.equals(this.enumString, enumTest.enumString) &&
Objects.equals(enumStringRequired, enumTest.enumStringRequired) && Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
Objects.equals(enumInteger, enumTest.enumInteger) && Objects.equals(this.enumInteger, enumTest.enumInteger) &&
Objects.equals(enumNumber, enumTest.enumNumber) && Objects.equals(this.enumNumber, enumTest.enumNumber) &&
Objects.equals(outerEnum, enumTest.outerEnum); Objects.equals(this.outerEnum, enumTest.outerEnum);
} }
@Override @Override

View File

@ -18,7 +18,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
public class FileSchemaTestClass implements Serializable { public class FileSchemaTestClass implements Serializable {
private @Valid java.io.File file = null; private @Valid java.io.File file;
private @Valid List<java.io.File> files = new ArrayList<java.io.File>(); private @Valid List<java.io.File> files = new ArrayList<java.io.File>();
/** /**
@ -65,8 +65,8 @@ public class FileSchemaTestClass implements Serializable {
return false; return false;
} }
FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o; FileSchemaTestClass fileSchemaTestClass = (FileSchemaTestClass) o;
return Objects.equals(file, fileSchemaTestClass.file) && return Objects.equals(this.file, fileSchemaTestClass.file) &&
Objects.equals(files, fileSchemaTestClass.files); Objects.equals(this.files, fileSchemaTestClass.files);
} }
@Override @Override

View File

@ -34,6 +34,7 @@ public class FormatTest implements Serializable {
private @Valid Date dateTime; private @Valid Date dateTime;
private @Valid UUID uuid; private @Valid UUID uuid;
private @Valid String password; private @Valid String password;
private @Valid BigDecimal bigDecimal;
/** /**
* minimum: 10 * minimum: 10
@ -243,7 +244,7 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
@ -270,6 +271,23 @@ public class FormatTest implements Serializable {
this.password = password; this.password = password;
} }
/**
**/
public FormatTest bigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("BigDecimal")
public BigDecimal getBigDecimal() {
return bigDecimal;
}
public void setBigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal;
}
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
@ -280,24 +298,25 @@ public class FormatTest implements Serializable {
return false; return false;
} }
FormatTest formatTest = (FormatTest) o; FormatTest formatTest = (FormatTest) o;
return Objects.equals(integer, formatTest.integer) && return Objects.equals(this.integer, formatTest.integer) &&
Objects.equals(int32, formatTest.int32) && Objects.equals(this.int32, formatTest.int32) &&
Objects.equals(int64, formatTest.int64) && Objects.equals(this.int64, formatTest.int64) &&
Objects.equals(number, formatTest.number) && Objects.equals(this.number, formatTest.number) &&
Objects.equals(_float, formatTest._float) && Objects.equals(this._float, formatTest._float) &&
Objects.equals(_double, formatTest._double) && Objects.equals(this._double, formatTest._double) &&
Objects.equals(string, formatTest.string) && Objects.equals(this.string, formatTest.string) &&
Objects.equals(_byte, formatTest._byte) && Objects.equals(this._byte, formatTest._byte) &&
Objects.equals(binary, formatTest.binary) && Objects.equals(this.binary, formatTest.binary) &&
Objects.equals(date, formatTest.date) && Objects.equals(this.date, formatTest.date) &&
Objects.equals(dateTime, formatTest.dateTime) && Objects.equals(this.dateTime, formatTest.dateTime) &&
Objects.equals(uuid, formatTest.uuid) && Objects.equals(this.uuid, formatTest.uuid) &&
Objects.equals(password, formatTest.password); Objects.equals(this.password, formatTest.password) &&
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password); return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password, bigDecimal);
} }
@Override @Override
@ -318,6 +337,7 @@ public class FormatTest implements Serializable {
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(toIndentedString(password)).append("\n");
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }

View File

@ -63,8 +63,8 @@ public class HasOnlyReadOnly implements Serializable {
return false; return false;
} }
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o; HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
return Objects.equals(bar, hasOnlyReadOnly.bar) && return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
Objects.equals(foo, hasOnlyReadOnly.foo); Objects.equals(this.foo, hasOnlyReadOnly.foo);
} }
@Override @Override

View File

@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.openapitools.model.StringBooleanMap;
import java.io.Serializable; import java.io.Serializable;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import javax.validation.Valid; import javax.validation.Valid;
@ -44,19 +43,19 @@ public enum InnerEnum {
} }
@JsonCreator @JsonCreator
public static InnerEnum fromValue(String v) { public static InnerEnum fromValue(String value) {
for (InnerEnum b : InnerEnum.values()) { for (InnerEnum b : InnerEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>(); private @Valid Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
private @Valid Map<String, Boolean> directMap = new HashMap<String, Boolean>(); private @Valid Map<String, Boolean> directMap = new HashMap<String, Boolean>();
private @Valid StringBooleanMap indirectMap = null; private @Valid Map<String, Boolean> indirectMap = new HashMap<String, Boolean>();
/** /**
**/ **/
@ -111,7 +110,7 @@ public enum InnerEnum {
/** /**
**/ **/
public MapTest indirectMap(StringBooleanMap indirectMap) { public MapTest indirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
return this; return this;
} }
@ -119,10 +118,10 @@ public enum InnerEnum {
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("indirect_map") @JsonProperty("indirect_map")
public StringBooleanMap getIndirectMap() { public Map<String, Boolean> getIndirectMap() {
return indirectMap; return indirectMap;
} }
public void setIndirectMap(StringBooleanMap indirectMap) { public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
} }
@ -136,10 +135,10 @@ public enum InnerEnum {
return false; return false;
} }
MapTest mapTest = (MapTest) o; MapTest mapTest = (MapTest) o;
return Objects.equals(mapMapOfString, mapTest.mapMapOfString) && return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
Objects.equals(mapOfEnumString, mapTest.mapOfEnumString) && Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
Objects.equals(directMap, mapTest.directMap) && Objects.equals(this.directMap, mapTest.directMap) &&
Objects.equals(indirectMap, mapTest.indirectMap); Objects.equals(this.indirectMap, mapTest.indirectMap);
} }
@Override @Override

View File

@ -87,9 +87,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
return false; return false;
} }
MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o; MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
return Objects.equals(uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) && return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
Objects.equals(dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) && Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
Objects.equals(map, mixedPropertiesAndAdditionalPropertiesClass.map); Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
} }
@Override @Override

View File

@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing model name starting with number * Model for testing model name starting with number
**/ **/
@ -65,8 +66,8 @@ public class Model200Response implements Serializable {
return false; return false;
} }
Model200Response _200response = (Model200Response) o; Model200Response _200response = (Model200Response) o;
return Objects.equals(name, _200response.name) && return Objects.equals(this.name, _200response.name) &&
Objects.equals(propertyClass, _200response.propertyClass); Objects.equals(this.propertyClass, _200response.propertyClass);
} }
@Override @Override

View File

@ -81,9 +81,9 @@ public class ModelApiResponse implements Serializable {
return false; return false;
} }
ModelApiResponse _apiResponse = (ModelApiResponse) o; ModelApiResponse _apiResponse = (ModelApiResponse) o;
return Objects.equals(code, _apiResponse.code) && return Objects.equals(this.code, _apiResponse.code) &&
Objects.equals(type, _apiResponse.type) && Objects.equals(this.type, _apiResponse.type) &&
Objects.equals(message, _apiResponse.message); Objects.equals(this.message, _apiResponse.message);
} }
@Override @Override

View File

@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing reserved words * Model for testing reserved words
**/ **/
@ -47,7 +48,7 @@ public class ModelReturn implements Serializable {
return false; return false;
} }
ModelReturn _return = (ModelReturn) o; ModelReturn _return = (ModelReturn) o;
return Objects.equals(_return, _return._return); return Objects.equals(this._return, _return._return);
} }
@Override @Override

View File

@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing model name same as property name * Model for testing model name same as property name
**/ **/
@ -102,10 +103,10 @@ public class Name implements Serializable {
return false; return false;
} }
Name name = (Name) o; Name name = (Name) o;
return Objects.equals(name, name.name) && return Objects.equals(this.name, name.name) &&
Objects.equals(snakeCase, name.snakeCase) && Objects.equals(this.snakeCase, name.snakeCase) &&
Objects.equals(property, name.property) && Objects.equals(this.property, name.property) &&
Objects.equals(_123number, name._123number); Objects.equals(this._123number, name._123number);
} }
@Override @Override

View File

@ -46,7 +46,7 @@ public class NumberOnly implements Serializable {
return false; return false;
} }
NumberOnly numberOnly = (NumberOnly) o; NumberOnly numberOnly = (NumberOnly) o;
return Objects.equals(justNumber, numberOnly.justNumber); return Objects.equals(this.justNumber, numberOnly.justNumber);
} }
@Override @Override

View File

@ -44,13 +44,13 @@ public enum StatusEnum {
} }
@JsonCreator @JsonCreator
public static StatusEnum fromValue(String v) { public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) { for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
@ -170,12 +170,12 @@ public enum StatusEnum {
return false; return false;
} }
Order order = (Order) o; Order order = (Order) o;
return Objects.equals(id, order.id) && return Objects.equals(this.id, order.id) &&
Objects.equals(petId, order.petId) && Objects.equals(this.petId, order.petId) &&
Objects.equals(quantity, order.quantity) && Objects.equals(this.quantity, order.quantity) &&
Objects.equals(shipDate, order.shipDate) && Objects.equals(this.shipDate, order.shipDate) &&
Objects.equals(status, order.status) && Objects.equals(this.status, order.status) &&
Objects.equals(complete, order.complete); Objects.equals(this.complete, order.complete);
} }
@Override @Override

View File

@ -82,9 +82,9 @@ public class OuterComposite implements Serializable {
return false; return false;
} }
OuterComposite outerComposite = (OuterComposite) o; OuterComposite outerComposite = (OuterComposite) o;
return Objects.equals(myNumber, outerComposite.myNumber) && return Objects.equals(this.myNumber, outerComposite.myNumber) &&
Objects.equals(myString, outerComposite.myString) && Objects.equals(this.myString, outerComposite.myString) &&
Objects.equals(myBoolean, outerComposite.myBoolean); Objects.equals(this.myBoolean, outerComposite.myBoolean);
} }
@Override @Override

View File

@ -31,13 +31,13 @@ public enum OuterEnum {
} }
@JsonCreator @JsonCreator
public static OuterEnum fromValue(String text) { public static OuterEnum fromValue(String value) {
for (OuterEnum b : OuterEnum.values()) { for (OuterEnum b : OuterEnum.values()) {
if (String.valueOf(b.value).equals(text)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + text + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }

View File

@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
public class Pet implements Serializable { public class Pet implements Serializable {
private @Valid Long id; private @Valid Long id;
private @Valid Category category = null; private @Valid Category category;
private @Valid String name; private @Valid String name;
private @Valid List<String> photoUrls = new ArrayList<String>(); private @Valid List<String> photoUrls = new ArrayList<String>();
private @Valid List<Tag> tags = new ArrayList<Tag>(); private @Valid List<Tag> tags = new ArrayList<Tag>();
@ -48,13 +48,13 @@ public enum StatusEnum {
} }
@JsonCreator @JsonCreator
public static StatusEnum fromValue(String v) { public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) { for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(v)) { if (b.value.equals(value)) {
return b; return b;
} }
} }
throw new IllegalArgumentException("Unexpected value '" + v + "'"); throw new IllegalArgumentException("Unexpected value '" + value + "'");
} }
} }
@ -175,12 +175,12 @@ public enum StatusEnum {
return false; return false;
} }
Pet pet = (Pet) o; Pet pet = (Pet) o;
return Objects.equals(id, pet.id) && return Objects.equals(this.id, pet.id) &&
Objects.equals(category, pet.category) && Objects.equals(this.category, pet.category) &&
Objects.equals(name, pet.name) && Objects.equals(this.name, pet.name) &&
Objects.equals(photoUrls, pet.photoUrls) && Objects.equals(this.photoUrls, pet.photoUrls) &&
Objects.equals(tags, pet.tags) && Objects.equals(this.tags, pet.tags) &&
Objects.equals(status, pet.status); Objects.equals(this.status, pet.status);
} }
@Override @Override

View File

@ -63,8 +63,8 @@ public class ReadOnlyFirst implements Serializable {
return false; return false;
} }
ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o; ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
return Objects.equals(bar, readOnlyFirst.bar) && return Objects.equals(this.bar, readOnlyFirst.bar) &&
Objects.equals(baz, readOnlyFirst.baz); Objects.equals(this.baz, readOnlyFirst.baz);
} }
@Override @Override

View File

@ -45,7 +45,7 @@ public class SpecialModelName implements Serializable {
return false; return false;
} }
SpecialModelName $specialModelName = (SpecialModelName) o; SpecialModelName $specialModelName = (SpecialModelName) o;
return Objects.equals($specialPropertyName, $specialModelName.$specialPropertyName); return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName);
} }
@Override @Override

View File

@ -63,8 +63,8 @@ public class Tag implements Serializable {
return false; return false;
} }
Tag tag = (Tag) o; Tag tag = (Tag) o;
return Objects.equals(id, tag.id) && return Objects.equals(this.id, tag.id) &&
Objects.equals(name, tag.name); Objects.equals(this.name, tag.name);
} }
@Override @Override

View File

@ -0,0 +1,165 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class TypeHolderDefault implements Serializable {
private @Valid String stringItem = "what";
private @Valid BigDecimal numberItem;
private @Valid Integer integerItem;
private @Valid Boolean boolItem = true;
private @Valid List<Integer> arrayItem = new ArrayList<Integer>();
/**
**/
public TypeHolderDefault stringItem(String stringItem) {
this.stringItem = stringItem;
return this;
}
@ApiModelProperty(required = true, value = "")
@JsonProperty("string_item")
@NotNull
public String getStringItem() {
return stringItem;
}
public void setStringItem(String stringItem) {
this.stringItem = stringItem;
}
/**
**/
public TypeHolderDefault numberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
return this;
}
@ApiModelProperty(required = true, value = "")
@JsonProperty("number_item")
@NotNull
public BigDecimal getNumberItem() {
return numberItem;
}
public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
/**
**/
public TypeHolderDefault integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
}
@ApiModelProperty(required = true, value = "")
@JsonProperty("integer_item")
@NotNull
public Integer getIntegerItem() {
return integerItem;
}
public void setIntegerItem(Integer integerItem) {
this.integerItem = integerItem;
}
/**
**/
public TypeHolderDefault boolItem(Boolean boolItem) {
this.boolItem = boolItem;
return this;
}
@ApiModelProperty(required = true, value = "")
@JsonProperty("bool_item")
@NotNull
public Boolean getBoolItem() {
return boolItem;
}
public void setBoolItem(Boolean boolItem) {
this.boolItem = boolItem;
}
/**
**/
public TypeHolderDefault arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
return this;
}
@ApiModelProperty(required = true, value = "")
@JsonProperty("array_item")
@NotNull
public List<Integer> getArrayItem() {
return arrayItem;
}
public void setArrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
}
@Override
public int hashCode() {
return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TypeHolderDefault {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,186 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class TypeHolderExample implements Serializable {
private @Valid String stringItem;
private @Valid BigDecimal numberItem;
private @Valid Float floatItem;
private @Valid Integer integerItem;
private @Valid Boolean boolItem;
private @Valid List<Integer> arrayItem = new ArrayList<Integer>();
/**
**/
public TypeHolderExample stringItem(String stringItem) {
this.stringItem = stringItem;
return this;
}
@ApiModelProperty(example = "what", required = true, value = "")
@JsonProperty("string_item")
@NotNull
public String getStringItem() {
return stringItem;
}
public void setStringItem(String stringItem) {
this.stringItem = stringItem;
}
/**
**/
public TypeHolderExample numberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
return this;
}
@ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty("number_item")
@NotNull
public BigDecimal getNumberItem() {
return numberItem;
}
public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
/**
**/
public TypeHolderExample floatItem(Float floatItem) {
this.floatItem = floatItem;
return this;
}
@ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty("float_item")
@NotNull
public Float getFloatItem() {
return floatItem;
}
public void setFloatItem(Float floatItem) {
this.floatItem = floatItem;
}
/**
**/
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
}
@ApiModelProperty(example = "-2", required = true, value = "")
@JsonProperty("integer_item")
@NotNull
public Integer getIntegerItem() {
return integerItem;
}
public void setIntegerItem(Integer integerItem) {
this.integerItem = integerItem;
}
/**
**/
public TypeHolderExample boolItem(Boolean boolItem) {
this.boolItem = boolItem;
return this;
}
@ApiModelProperty(example = "true", required = true, value = "")
@JsonProperty("bool_item")
@NotNull
public Boolean getBoolItem() {
return boolItem;
}
public void setBoolItem(Boolean boolItem) {
this.boolItem = boolItem;
}
/**
**/
public TypeHolderExample arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
return this;
}
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
@JsonProperty("array_item")
@NotNull
public List<Integer> getArrayItem() {
return arrayItem;
}
public void setArrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
}
@Override
public int hashCode() {
return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
sb.append(" floatItem: ").append(toIndentedString(floatItem)).append("\n");
sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -172,14 +172,14 @@ public class User implements Serializable {
return false; return false;
} }
User user = (User) o; User user = (User) o;
return Objects.equals(id, user.id) && return Objects.equals(this.id, user.id) &&
Objects.equals(username, user.username) && Objects.equals(this.username, user.username) &&
Objects.equals(firstName, user.firstName) && Objects.equals(this.firstName, user.firstName) &&
Objects.equals(lastName, user.lastName) && Objects.equals(this.lastName, user.lastName) &&
Objects.equals(email, user.email) && Objects.equals(this.email, user.email) &&
Objects.equals(password, user.password) && Objects.equals(this.password, user.password) &&
Objects.equals(phone, user.phone) && Objects.equals(this.phone, user.phone) &&
Objects.equals(userStatus, user.userStatus); Objects.equals(this.userStatus, user.userStatus);
} }
@Override @Override

View File

@ -0,0 +1,640 @@
package org.openapitools.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class XmlItem implements Serializable {
private @Valid String attributeString;
private @Valid BigDecimal attributeNumber;
private @Valid Integer attributeInteger;
private @Valid Boolean attributeBoolean;
private @Valid List<Integer> wrappedArray = new ArrayList<Integer>();
private @Valid String nameString;
private @Valid BigDecimal nameNumber;
private @Valid Integer nameInteger;
private @Valid Boolean nameBoolean;
private @Valid List<Integer> nameArray = new ArrayList<Integer>();
private @Valid List<Integer> nameWrappedArray = new ArrayList<Integer>();
private @Valid String prefixString;
private @Valid BigDecimal prefixNumber;
private @Valid Integer prefixInteger;
private @Valid Boolean prefixBoolean;
private @Valid List<Integer> prefixArray = new ArrayList<Integer>();
private @Valid List<Integer> prefixWrappedArray = new ArrayList<Integer>();
private @Valid String namespaceString;
private @Valid BigDecimal namespaceNumber;
private @Valid Integer namespaceInteger;
private @Valid Boolean namespaceBoolean;
private @Valid List<Integer> namespaceArray = new ArrayList<Integer>();
private @Valid List<Integer> namespaceWrappedArray = new ArrayList<Integer>();
private @Valid String prefixNsString;
private @Valid BigDecimal prefixNsNumber;
private @Valid Integer prefixNsInteger;
private @Valid Boolean prefixNsBoolean;
private @Valid List<Integer> prefixNsArray = new ArrayList<Integer>();
private @Valid List<Integer> prefixNsWrappedArray = new ArrayList<Integer>();
/**
**/
public XmlItem attributeString(String attributeString) {
this.attributeString = attributeString;
return this;
}
@ApiModelProperty(example = "string", value = "")
@JsonProperty("attribute_string")
public String getAttributeString() {
return attributeString;
}
public void setAttributeString(String attributeString) {
this.attributeString = attributeString;
}
/**
**/
public XmlItem attributeNumber(BigDecimal attributeNumber) {
this.attributeNumber = attributeNumber;
return this;
}
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty("attribute_number")
public BigDecimal getAttributeNumber() {
return attributeNumber;
}
public void setAttributeNumber(BigDecimal attributeNumber) {
this.attributeNumber = attributeNumber;
}
/**
**/
public XmlItem attributeInteger(Integer attributeInteger) {
this.attributeInteger = attributeInteger;
return this;
}
@ApiModelProperty(example = "-2", value = "")
@JsonProperty("attribute_integer")
public Integer getAttributeInteger() {
return attributeInteger;
}
public void setAttributeInteger(Integer attributeInteger) {
this.attributeInteger = attributeInteger;
}
/**
**/
public XmlItem attributeBoolean(Boolean attributeBoolean) {
this.attributeBoolean = attributeBoolean;
return this;
}
@ApiModelProperty(example = "true", value = "")
@JsonProperty("attribute_boolean")
public Boolean getAttributeBoolean() {
return attributeBoolean;
}
public void setAttributeBoolean(Boolean attributeBoolean) {
this.attributeBoolean = attributeBoolean;
}
/**
**/
public XmlItem wrappedArray(List<Integer> wrappedArray) {
this.wrappedArray = wrappedArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("wrapped_array")
public List<Integer> getWrappedArray() {
return wrappedArray;
}
public void setWrappedArray(List<Integer> wrappedArray) {
this.wrappedArray = wrappedArray;
}
/**
**/
public XmlItem nameString(String nameString) {
this.nameString = nameString;
return this;
}
@ApiModelProperty(example = "string", value = "")
@JsonProperty("name_string")
public String getNameString() {
return nameString;
}
public void setNameString(String nameString) {
this.nameString = nameString;
}
/**
**/
public XmlItem nameNumber(BigDecimal nameNumber) {
this.nameNumber = nameNumber;
return this;
}
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty("name_number")
public BigDecimal getNameNumber() {
return nameNumber;
}
public void setNameNumber(BigDecimal nameNumber) {
this.nameNumber = nameNumber;
}
/**
**/
public XmlItem nameInteger(Integer nameInteger) {
this.nameInteger = nameInteger;
return this;
}
@ApiModelProperty(example = "-2", value = "")
@JsonProperty("name_integer")
public Integer getNameInteger() {
return nameInteger;
}
public void setNameInteger(Integer nameInteger) {
this.nameInteger = nameInteger;
}
/**
**/
public XmlItem nameBoolean(Boolean nameBoolean) {
this.nameBoolean = nameBoolean;
return this;
}
@ApiModelProperty(example = "true", value = "")
@JsonProperty("name_boolean")
public Boolean getNameBoolean() {
return nameBoolean;
}
public void setNameBoolean(Boolean nameBoolean) {
this.nameBoolean = nameBoolean;
}
/**
**/
public XmlItem nameArray(List<Integer> nameArray) {
this.nameArray = nameArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name_array")
public List<Integer> getNameArray() {
return nameArray;
}
public void setNameArray(List<Integer> nameArray) {
this.nameArray = nameArray;
}
/**
**/
public XmlItem nameWrappedArray(List<Integer> nameWrappedArray) {
this.nameWrappedArray = nameWrappedArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("name_wrapped_array")
public List<Integer> getNameWrappedArray() {
return nameWrappedArray;
}
public void setNameWrappedArray(List<Integer> nameWrappedArray) {
this.nameWrappedArray = nameWrappedArray;
}
/**
**/
public XmlItem prefixString(String prefixString) {
this.prefixString = prefixString;
return this;
}
@ApiModelProperty(example = "string", value = "")
@JsonProperty("prefix_string")
public String getPrefixString() {
return prefixString;
}
public void setPrefixString(String prefixString) {
this.prefixString = prefixString;
}
/**
**/
public XmlItem prefixNumber(BigDecimal prefixNumber) {
this.prefixNumber = prefixNumber;
return this;
}
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty("prefix_number")
public BigDecimal getPrefixNumber() {
return prefixNumber;
}
public void setPrefixNumber(BigDecimal prefixNumber) {
this.prefixNumber = prefixNumber;
}
/**
**/
public XmlItem prefixInteger(Integer prefixInteger) {
this.prefixInteger = prefixInteger;
return this;
}
@ApiModelProperty(example = "-2", value = "")
@JsonProperty("prefix_integer")
public Integer getPrefixInteger() {
return prefixInteger;
}
public void setPrefixInteger(Integer prefixInteger) {
this.prefixInteger = prefixInteger;
}
/**
**/
public XmlItem prefixBoolean(Boolean prefixBoolean) {
this.prefixBoolean = prefixBoolean;
return this;
}
@ApiModelProperty(example = "true", value = "")
@JsonProperty("prefix_boolean")
public Boolean getPrefixBoolean() {
return prefixBoolean;
}
public void setPrefixBoolean(Boolean prefixBoolean) {
this.prefixBoolean = prefixBoolean;
}
/**
**/
public XmlItem prefixArray(List<Integer> prefixArray) {
this.prefixArray = prefixArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("prefix_array")
public List<Integer> getPrefixArray() {
return prefixArray;
}
public void setPrefixArray(List<Integer> prefixArray) {
this.prefixArray = prefixArray;
}
/**
**/
public XmlItem prefixWrappedArray(List<Integer> prefixWrappedArray) {
this.prefixWrappedArray = prefixWrappedArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("prefix_wrapped_array")
public List<Integer> getPrefixWrappedArray() {
return prefixWrappedArray;
}
public void setPrefixWrappedArray(List<Integer> prefixWrappedArray) {
this.prefixWrappedArray = prefixWrappedArray;
}
/**
**/
public XmlItem namespaceString(String namespaceString) {
this.namespaceString = namespaceString;
return this;
}
@ApiModelProperty(example = "string", value = "")
@JsonProperty("namespace_string")
public String getNamespaceString() {
return namespaceString;
}
public void setNamespaceString(String namespaceString) {
this.namespaceString = namespaceString;
}
/**
**/
public XmlItem namespaceNumber(BigDecimal namespaceNumber) {
this.namespaceNumber = namespaceNumber;
return this;
}
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty("namespace_number")
public BigDecimal getNamespaceNumber() {
return namespaceNumber;
}
public void setNamespaceNumber(BigDecimal namespaceNumber) {
this.namespaceNumber = namespaceNumber;
}
/**
**/
public XmlItem namespaceInteger(Integer namespaceInteger) {
this.namespaceInteger = namespaceInteger;
return this;
}
@ApiModelProperty(example = "-2", value = "")
@JsonProperty("namespace_integer")
public Integer getNamespaceInteger() {
return namespaceInteger;
}
public void setNamespaceInteger(Integer namespaceInteger) {
this.namespaceInteger = namespaceInteger;
}
/**
**/
public XmlItem namespaceBoolean(Boolean namespaceBoolean) {
this.namespaceBoolean = namespaceBoolean;
return this;
}
@ApiModelProperty(example = "true", value = "")
@JsonProperty("namespace_boolean")
public Boolean getNamespaceBoolean() {
return namespaceBoolean;
}
public void setNamespaceBoolean(Boolean namespaceBoolean) {
this.namespaceBoolean = namespaceBoolean;
}
/**
**/
public XmlItem namespaceArray(List<Integer> namespaceArray) {
this.namespaceArray = namespaceArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("namespace_array")
public List<Integer> getNamespaceArray() {
return namespaceArray;
}
public void setNamespaceArray(List<Integer> namespaceArray) {
this.namespaceArray = namespaceArray;
}
/**
**/
public XmlItem namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
this.namespaceWrappedArray = namespaceWrappedArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("namespace_wrapped_array")
public List<Integer> getNamespaceWrappedArray() {
return namespaceWrappedArray;
}
public void setNamespaceWrappedArray(List<Integer> namespaceWrappedArray) {
this.namespaceWrappedArray = namespaceWrappedArray;
}
/**
**/
public XmlItem prefixNsString(String prefixNsString) {
this.prefixNsString = prefixNsString;
return this;
}
@ApiModelProperty(example = "string", value = "")
@JsonProperty("prefix_ns_string")
public String getPrefixNsString() {
return prefixNsString;
}
public void setPrefixNsString(String prefixNsString) {
this.prefixNsString = prefixNsString;
}
/**
**/
public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) {
this.prefixNsNumber = prefixNsNumber;
return this;
}
@ApiModelProperty(example = "1.234", value = "")
@JsonProperty("prefix_ns_number")
public BigDecimal getPrefixNsNumber() {
return prefixNsNumber;
}
public void setPrefixNsNumber(BigDecimal prefixNsNumber) {
this.prefixNsNumber = prefixNsNumber;
}
/**
**/
public XmlItem prefixNsInteger(Integer prefixNsInteger) {
this.prefixNsInteger = prefixNsInteger;
return this;
}
@ApiModelProperty(example = "-2", value = "")
@JsonProperty("prefix_ns_integer")
public Integer getPrefixNsInteger() {
return prefixNsInteger;
}
public void setPrefixNsInteger(Integer prefixNsInteger) {
this.prefixNsInteger = prefixNsInteger;
}
/**
**/
public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) {
this.prefixNsBoolean = prefixNsBoolean;
return this;
}
@ApiModelProperty(example = "true", value = "")
@JsonProperty("prefix_ns_boolean")
public Boolean getPrefixNsBoolean() {
return prefixNsBoolean;
}
public void setPrefixNsBoolean(Boolean prefixNsBoolean) {
this.prefixNsBoolean = prefixNsBoolean;
}
/**
**/
public XmlItem prefixNsArray(List<Integer> prefixNsArray) {
this.prefixNsArray = prefixNsArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("prefix_ns_array")
public List<Integer> getPrefixNsArray() {
return prefixNsArray;
}
public void setPrefixNsArray(List<Integer> prefixNsArray) {
this.prefixNsArray = prefixNsArray;
}
/**
**/
public XmlItem prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
this.prefixNsWrappedArray = prefixNsWrappedArray;
return this;
}
@ApiModelProperty(value = "")
@JsonProperty("prefix_ns_wrapped_array")
public List<Integer> getPrefixNsWrappedArray() {
return prefixNsWrappedArray;
}
public void setPrefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
this.prefixNsWrappedArray = prefixNsWrappedArray;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
XmlItem xmlItem = (XmlItem) o;
return Objects.equals(this.attributeString, xmlItem.attributeString) &&
Objects.equals(this.attributeNumber, xmlItem.attributeNumber) &&
Objects.equals(this.attributeInteger, xmlItem.attributeInteger) &&
Objects.equals(this.attributeBoolean, xmlItem.attributeBoolean) &&
Objects.equals(this.wrappedArray, xmlItem.wrappedArray) &&
Objects.equals(this.nameString, xmlItem.nameString) &&
Objects.equals(this.nameNumber, xmlItem.nameNumber) &&
Objects.equals(this.nameInteger, xmlItem.nameInteger) &&
Objects.equals(this.nameBoolean, xmlItem.nameBoolean) &&
Objects.equals(this.nameArray, xmlItem.nameArray) &&
Objects.equals(this.nameWrappedArray, xmlItem.nameWrappedArray) &&
Objects.equals(this.prefixString, xmlItem.prefixString) &&
Objects.equals(this.prefixNumber, xmlItem.prefixNumber) &&
Objects.equals(this.prefixInteger, xmlItem.prefixInteger) &&
Objects.equals(this.prefixBoolean, xmlItem.prefixBoolean) &&
Objects.equals(this.prefixArray, xmlItem.prefixArray) &&
Objects.equals(this.prefixWrappedArray, xmlItem.prefixWrappedArray) &&
Objects.equals(this.namespaceString, xmlItem.namespaceString) &&
Objects.equals(this.namespaceNumber, xmlItem.namespaceNumber) &&
Objects.equals(this.namespaceInteger, xmlItem.namespaceInteger) &&
Objects.equals(this.namespaceBoolean, xmlItem.namespaceBoolean) &&
Objects.equals(this.namespaceArray, xmlItem.namespaceArray) &&
Objects.equals(this.namespaceWrappedArray, xmlItem.namespaceWrappedArray) &&
Objects.equals(this.prefixNsString, xmlItem.prefixNsString) &&
Objects.equals(this.prefixNsNumber, xmlItem.prefixNsNumber) &&
Objects.equals(this.prefixNsInteger, xmlItem.prefixNsInteger) &&
Objects.equals(this.prefixNsBoolean, xmlItem.prefixNsBoolean) &&
Objects.equals(this.prefixNsArray, xmlItem.prefixNsArray) &&
Objects.equals(this.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
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class XmlItem {\n");
sb.append(" attributeString: ").append(toIndentedString(attributeString)).append("\n");
sb.append(" attributeNumber: ").append(toIndentedString(attributeNumber)).append("\n");
sb.append(" attributeInteger: ").append(toIndentedString(attributeInteger)).append("\n");
sb.append(" attributeBoolean: ").append(toIndentedString(attributeBoolean)).append("\n");
sb.append(" wrappedArray: ").append(toIndentedString(wrappedArray)).append("\n");
sb.append(" nameString: ").append(toIndentedString(nameString)).append("\n");
sb.append(" nameNumber: ").append(toIndentedString(nameNumber)).append("\n");
sb.append(" nameInteger: ").append(toIndentedString(nameInteger)).append("\n");
sb.append(" nameBoolean: ").append(toIndentedString(nameBoolean)).append("\n");
sb.append(" nameArray: ").append(toIndentedString(nameArray)).append("\n");
sb.append(" nameWrappedArray: ").append(toIndentedString(nameWrappedArray)).append("\n");
sb.append(" prefixString: ").append(toIndentedString(prefixString)).append("\n");
sb.append(" prefixNumber: ").append(toIndentedString(prefixNumber)).append("\n");
sb.append(" prefixInteger: ").append(toIndentedString(prefixInteger)).append("\n");
sb.append(" prefixBoolean: ").append(toIndentedString(prefixBoolean)).append("\n");
sb.append(" prefixArray: ").append(toIndentedString(prefixArray)).append("\n");
sb.append(" prefixWrappedArray: ").append(toIndentedString(prefixWrappedArray)).append("\n");
sb.append(" namespaceString: ").append(toIndentedString(namespaceString)).append("\n");
sb.append(" namespaceNumber: ").append(toIndentedString(namespaceNumber)).append("\n");
sb.append(" namespaceInteger: ").append(toIndentedString(namespaceInteger)).append("\n");
sb.append(" namespaceBoolean: ").append(toIndentedString(namespaceBoolean)).append("\n");
sb.append(" namespaceArray: ").append(toIndentedString(namespaceArray)).append("\n");
sb.append(" namespaceWrappedArray: ").append(toIndentedString(namespaceWrappedArray)).append("\n");
sb.append(" prefixNsString: ").append(toIndentedString(prefixNsString)).append("\n");
sb.append(" prefixNsNumber: ").append(toIndentedString(prefixNsNumber)).append("\n");
sb.append(" prefixNsInteger: ").append(toIndentedString(prefixNsInteger)).append("\n");
sb.append(" prefixNsBoolean: ").append(toIndentedString(prefixNsBoolean)).append("\n");
sb.append(" prefixNsArray: ").append(toIndentedString(prefixNsArray)).append("\n");
sb.append(" prefixNsWrappedArray: ").append(toIndentedString(prefixNsWrappedArray)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -0,0 +1,29 @@
package org.openapitools.api;
import org.openapitools.model.Client;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import io.swagger.annotations.*;
import java.io.InputStream;
import java.util.Map;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
@Path("/FakeClassnameTags123")
@Api(description = "the FakeClassnameTags123 API")
public interface FakeClassnameTags123Api {
@PATCH
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", authorizations = {
@Authorization(value = "api_key_query")
}, tags={ "fake_classname_tags 123#$%^" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
Client testClassname(@Valid Client body);
}

View File

@ -28,16 +28,18 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> impleme
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> impleme
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,16 +29,18 @@ public class AdditionalPropertiesArray extends HashMap<String, List> implements
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -77,5 +79,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> implements
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -28,16 +28,18 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implem
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implem
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -40,16 +40,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_string") @JsonProperty("map_string")
public Map<String, String> getMapString() { public Map<String, String> getMapString() {
return mapString; return mapString;
} }
public void setMapString(Map<String, String> mapString) { public void setMapString(Map<String, String> mapString) {
this.mapString = mapString; this.mapString = mapString;
} }/**
/**
**/ **/
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) { public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber; this.mapNumber = mapNumber;
@ -57,16 +58,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_number") @JsonProperty("map_number")
public Map<String, BigDecimal> getMapNumber() { public Map<String, BigDecimal> getMapNumber() {
return mapNumber; return mapNumber;
} }
public void setMapNumber(Map<String, BigDecimal> mapNumber) { public void setMapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber; this.mapNumber = mapNumber;
} }/**
/**
**/ **/
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) { public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger; this.mapInteger = mapInteger;
@ -74,16 +76,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_integer") @JsonProperty("map_integer")
public Map<String, Integer> getMapInteger() { public Map<String, Integer> getMapInteger() {
return mapInteger; return mapInteger;
} }
public void setMapInteger(Map<String, Integer> mapInteger) { public void setMapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger; this.mapInteger = mapInteger;
} }/**
/**
**/ **/
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) { public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean; this.mapBoolean = mapBoolean;
@ -91,16 +94,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_boolean") @JsonProperty("map_boolean")
public Map<String, Boolean> getMapBoolean() { public Map<String, Boolean> getMapBoolean() {
return mapBoolean; return mapBoolean;
} }
public void setMapBoolean(Map<String, Boolean> mapBoolean) { public void setMapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean; this.mapBoolean = mapBoolean;
} }/**
/**
**/ **/
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) { public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger; this.mapArrayInteger = mapArrayInteger;
@ -108,16 +112,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_array_integer") @JsonProperty("map_array_integer")
public Map<String, List<Integer>> getMapArrayInteger() { public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger; return mapArrayInteger;
} }
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) { public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger; this.mapArrayInteger = mapArrayInteger;
} }/**
/**
**/ **/
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) { public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype; this.mapArrayAnytype = mapArrayAnytype;
@ -125,16 +130,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_array_anytype") @JsonProperty("map_array_anytype")
public Map<String, List<Object>> getMapArrayAnytype() { public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype; return mapArrayAnytype;
} }
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) { public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype; this.mapArrayAnytype = mapArrayAnytype;
} }/**
/**
**/ **/
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) { public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString; this.mapMapString = mapMapString;
@ -142,16 +148,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_string") @JsonProperty("map_map_string")
public Map<String, Map<String, String>> getMapMapString() { public Map<String, Map<String, String>> getMapMapString() {
return mapMapString; return mapMapString;
} }
public void setMapMapString(Map<String, Map<String, String>> mapMapString) { public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString; this.mapMapString = mapMapString;
} }/**
/**
**/ **/
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) { public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype; this.mapMapAnytype = mapMapAnytype;
@ -159,16 +166,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_anytype") @JsonProperty("map_map_anytype")
public Map<String, Map<String, Object>> getMapMapAnytype() { public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype; return mapMapAnytype;
} }
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) { public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype; this.mapMapAnytype = mapMapAnytype;
} }/**
/**
**/ **/
public AdditionalPropertiesClass anytype1(Object anytype1) { public AdditionalPropertiesClass anytype1(Object anytype1) {
this.anytype1 = anytype1; this.anytype1 = anytype1;
@ -176,16 +184,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_1") @JsonProperty("anytype_1")
public Object getAnytype1() { public Object getAnytype1() {
return anytype1; return anytype1;
} }
public void setAnytype1(Object anytype1) { public void setAnytype1(Object anytype1) {
this.anytype1 = anytype1; this.anytype1 = anytype1;
} }/**
/**
**/ **/
public AdditionalPropertiesClass anytype2(Object anytype2) { public AdditionalPropertiesClass anytype2(Object anytype2) {
this.anytype2 = anytype2; this.anytype2 = anytype2;
@ -193,16 +202,17 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_2") @JsonProperty("anytype_2")
public Object getAnytype2() { public Object getAnytype2() {
return anytype2; return anytype2;
} }
public void setAnytype2(Object anytype2) { public void setAnytype2(Object anytype2) {
this.anytype2 = anytype2; this.anytype2 = anytype2;
} }/**
/**
**/ **/
public AdditionalPropertiesClass anytype3(Object anytype3) { public AdditionalPropertiesClass anytype3(Object anytype3) {
this.anytype3 = anytype3; this.anytype3 = anytype3;
@ -210,16 +220,18 @@ public class AdditionalPropertiesClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("anytype_3") @JsonProperty("anytype_3")
public Object getAnytype3() { public Object getAnytype3() {
return anytype3; return anytype3;
} }
public void setAnytype3(Object anytype3) { public void setAnytype3(Object anytype3) {
this.anytype3 = anytype3; this.anytype3 = anytype3;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -277,5 +289,7 @@ public class AdditionalPropertiesClass implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -28,16 +28,18 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> implem
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> implem
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,16 +29,18 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> impl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -77,5 +79,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> impl
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -28,16 +28,18 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> implements
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> implements
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -28,16 +28,18 @@ public class AdditionalPropertiesString extends HashMap<String, String> implemen
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> implemen
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -35,17 +35,18 @@ public class Animal implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("className") @JsonProperty("className")
@NotNull @NotNull
public String getClassName() { public String getClassName() {
return className; return className;
} }
public void setClassName(String className) { public void setClassName(String className) {
this.className = className; this.className = className;
} }/**
/**
**/ **/
public Animal color(String color) { public Animal color(String color) {
this.color = color; this.color = color;
@ -53,16 +54,18 @@ public class Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("color") @JsonProperty("color")
public String getColor() { public String getColor() {
return color; return color;
} }
public void setColor(String color) { public void setColor(String color) {
this.color = color; this.color = color;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -102,5 +105,7 @@ public class Animal implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,16 +29,18 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayArrayNumber") @JsonProperty("ArrayArrayNumber")
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber; return arrayArrayNumber;
} }
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber; this.arrayArrayNumber = arrayArrayNumber;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,16 +29,18 @@ public class ArrayOfNumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("ArrayNumber") @JsonProperty("ArrayNumber")
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
return arrayNumber; return arrayNumber;
} }
public void setArrayNumber(List<BigDecimal> arrayNumber) { public void setArrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber; this.arrayNumber = arrayNumber;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class ArrayOfNumberOnly implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,16 +31,17 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_of_string") @JsonProperty("array_of_string")
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
return arrayOfString; return arrayOfString;
} }
public void setArrayOfString(List<String> arrayOfString) { public void setArrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString; this.arrayOfString = arrayOfString;
} }/**
/**
**/ **/
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
@ -48,16 +49,17 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_integer") @JsonProperty("array_array_of_integer")
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger; return arrayArrayOfInteger;
} }
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
} }/**
/**
**/ **/
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
@ -65,16 +67,18 @@ public class ArrayTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_array_of_model") @JsonProperty("array_array_of_model")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel; return arrayArrayOfModel;
} }
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -116,5 +120,7 @@ public class ArrayTest implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -61,16 +61,18 @@ public enum KindEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("kind") @JsonProperty("kind")
public KindEnum getKind() { public KindEnum getKind() {
return kind; return kind;
} }
public void setKind(KindEnum kind) { public void setKind(KindEnum kind) {
this.kind = kind; this.kind = kind;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -109,5 +111,7 @@ public enum KindEnum {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -59,16 +59,18 @@ public enum KindEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("kind") @JsonProperty("kind")
public KindEnum getKind() { public KindEnum getKind() {
return kind; return kind;
} }
public void setKind(KindEnum kind) { public void setKind(KindEnum kind) {
this.kind = kind; this.kind = kind;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -106,5 +108,7 @@ public enum KindEnum {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,16 +31,17 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("smallCamel") @JsonProperty("smallCamel")
public String getSmallCamel() { public String getSmallCamel() {
return smallCamel; return smallCamel;
} }
public void setSmallCamel(String smallCamel) { public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel; this.smallCamel = smallCamel;
} }/**
/**
**/ **/
public Capitalization capitalCamel(String capitalCamel) { public Capitalization capitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
@ -48,16 +49,17 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("CapitalCamel") @JsonProperty("CapitalCamel")
public String getCapitalCamel() { public String getCapitalCamel() {
return capitalCamel; return capitalCamel;
} }
public void setCapitalCamel(String capitalCamel) { public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
} }/**
/**
**/ **/
public Capitalization smallSnake(String smallSnake) { public Capitalization smallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
@ -65,16 +67,17 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("small_Snake") @JsonProperty("small_Snake")
public String getSmallSnake() { public String getSmallSnake() {
return smallSnake; return smallSnake;
} }
public void setSmallSnake(String smallSnake) { public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
} }/**
/**
**/ **/
public Capitalization capitalSnake(String capitalSnake) { public Capitalization capitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
@ -82,16 +85,17 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("Capital_Snake") @JsonProperty("Capital_Snake")
public String getCapitalSnake() { public String getCapitalSnake() {
return capitalSnake; return capitalSnake;
} }
public void setCapitalSnake(String capitalSnake) { public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
} }/**
/**
**/ **/
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
@ -99,16 +103,17 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("SCA_ETH_Flow_Points") @JsonProperty("SCA_ETH_Flow_Points")
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
return scAETHFlowPoints; return scAETHFlowPoints;
} }
public void setScAETHFlowPoints(String scAETHFlowPoints) { public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
} }/**
/**
* Name of the pet * Name of the pet
**/ **/
public Capitalization ATT_NAME(String ATT_NAME) { public Capitalization ATT_NAME(String ATT_NAME) {
@ -117,16 +122,18 @@ public class Capitalization implements Serializable {
} }
@ApiModelProperty(value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
@JsonProperty("ATT_NAME") @JsonProperty("ATT_NAME")
public String getATTNAME() { public String getATTNAME() {
return ATT_NAME; return ATT_NAME;
} }
public void setATTNAME(String ATT_NAME) { public void setATTNAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME; this.ATT_NAME = ATT_NAME;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -174,5 +181,7 @@ public class Capitalization implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -28,16 +28,18 @@ public class Cat extends Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("declawed") @JsonProperty("declawed")
public Boolean getDeclawed() { public Boolean getDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class Cat extends Animal implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -26,16 +26,18 @@ public class CatAllOf implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("declawed") @JsonProperty("declawed")
public Boolean getDeclawed() { public Boolean getDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -73,5 +75,7 @@ public class CatAllOf implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -27,16 +27,17 @@ public class Category implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }/**
/**
**/ **/
public Category name(String name) { public Category name(String name) {
this.name = name; this.name = name;
@ -44,17 +45,19 @@ public class Category implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -94,5 +97,7 @@ public class Category implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -12,7 +12,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing model with \&quot;_class\&quot; property * Model for testing model with \&quot;_class\&quot; property
**/ **/
@ -29,16 +28,18 @@ public class ClassModel implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("_class") @JsonProperty("_class")
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }
public void setPropertyClass(String propertyClass) { public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +77,7 @@ public class ClassModel implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -26,16 +26,18 @@ public class Client implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("client") @JsonProperty("client")
public String getClient() { public String getClient() {
return client; return client;
} }
public void setClient(String client) { public void setClient(String client) {
this.client = client; this.client = client;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -73,5 +75,7 @@ public class Client implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -28,16 +28,18 @@ public class Dog extends Animal implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("breed") @JsonProperty("breed")
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +78,7 @@ public class Dog extends Animal implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -26,16 +26,18 @@ public class DogAllOf implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("breed") @JsonProperty("breed")
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -73,5 +75,7 @@ public class DogAllOf implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -95,16 +95,17 @@ public enum ArrayEnumEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("just_symbol") @JsonProperty("just_symbol")
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
return justSymbol; return justSymbol;
} }
public void setJustSymbol(JustSymbolEnum justSymbol) { public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol; this.justSymbol = justSymbol;
} }/**
/**
**/ **/
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) { public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
@ -112,16 +113,18 @@ public enum ArrayEnumEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("array_enum") @JsonProperty("array_enum")
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum; return arrayEnum;
} }
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) { public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -161,5 +164,7 @@ public enum ArrayEnumEnum {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -163,16 +163,17 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_string") @JsonProperty("enum_string")
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
return enumString; return enumString;
} }
public void setEnumString(EnumStringEnum enumString) { public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString; this.enumString = enumString;
} }/**
/**
**/ **/
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
@ -180,17 +181,18 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("enum_string_required") @JsonProperty("enum_string_required")
@NotNull @NotNull
public EnumStringRequiredEnum getEnumStringRequired() { public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired; return enumStringRequired;
} }
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
} }/**
/**
**/ **/
public EnumTest enumInteger(EnumIntegerEnum enumInteger) { public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
@ -198,16 +200,17 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_integer") @JsonProperty("enum_integer")
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
return enumInteger; return enumInteger;
} }
public void setEnumInteger(EnumIntegerEnum enumInteger) { public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
} }/**
/**
**/ **/
public EnumTest enumNumber(EnumNumberEnum enumNumber) { public EnumTest enumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
@ -215,16 +218,17 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("enum_number") @JsonProperty("enum_number")
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
return enumNumber; return enumNumber;
} }
public void setEnumNumber(EnumNumberEnum enumNumber) { public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
} }/**
/**
**/ **/
public EnumTest outerEnum(OuterEnum outerEnum) { public EnumTest outerEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum; this.outerEnum = outerEnum;
@ -232,16 +236,18 @@ public enum EnumNumberEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("outerEnum") @JsonProperty("outerEnum")
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {
return outerEnum; return outerEnum;
} }
public void setOuterEnum(OuterEnum outerEnum) { public void setOuterEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum; this.outerEnum = outerEnum;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -287,5 +293,7 @@ public enum EnumNumberEnum {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,16 +29,17 @@ public class FileSchemaTestClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("file") @JsonProperty("file")
public java.io.File getFile() { public java.io.File getFile() {
return file; return file;
} }
public void setFile(java.io.File file) { public void setFile(java.io.File file) {
this.file = file; this.file = file;
} }/**
/**
**/ **/
public FileSchemaTestClass files(List<java.io.File> files) { public FileSchemaTestClass files(List<java.io.File> files) {
this.files = files; this.files = files;
@ -46,16 +47,18 @@ public class FileSchemaTestClass implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("files") @JsonProperty("files")
public List<java.io.File> getFiles() { public List<java.io.File> getFiles() {
return files; return files;
} }
public void setFiles(List<java.io.File> files) { public void setFiles(List<java.io.File> files) {
this.files = files; this.files = files;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -95,5 +98,7 @@ public class FileSchemaTestClass implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -46,16 +46,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("integer") @JsonProperty("integer")
@Min(10) @Max(100) public Integer getInteger() { @Min(10) @Max(100) public Integer getInteger() {
return integer; return integer;
} }
public void setInteger(Integer integer) { public void setInteger(Integer integer) {
this.integer = integer; this.integer = integer;
} }/**
/**
* minimum: 20 * minimum: 20
* maximum: 200 * maximum: 200
**/ **/
@ -65,16 +66,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("int32") @JsonProperty("int32")
@Min(20) @Max(200) public Integer getInt32() { @Min(20) @Max(200) public Integer getInt32() {
return int32; return int32;
} }
public void setInt32(Integer int32) { public void setInt32(Integer int32) {
this.int32 = int32; this.int32 = int32;
} }/**
/**
**/ **/
public FormatTest int64(Long int64) { public FormatTest int64(Long int64) {
this.int64 = int64; this.int64 = int64;
@ -82,16 +84,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("int64") @JsonProperty("int64")
public Long getInt64() { public Long getInt64() {
return int64; return int64;
} }
public void setInt64(Long int64) { public void setInt64(Long int64) {
this.int64 = int64; this.int64 = int64;
} }/**
/**
* minimum: 32.1 * minimum: 32.1
* maximum: 543.2 * maximum: 543.2
**/ **/
@ -101,17 +104,18 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("number") @JsonProperty("number")
@NotNull @NotNull
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() { @DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
return number; return number;
} }
public void setNumber(BigDecimal number) { public void setNumber(BigDecimal number) {
this.number = number; this.number = number;
} }/**
/**
* minimum: 54.3 * minimum: 54.3
* maximum: 987.6 * maximum: 987.6
**/ **/
@ -121,16 +125,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("float") @JsonProperty("float")
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() { @DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
return _float; return _float;
} }
public void setFloat(Float _float) { public void setFloat(Float _float) {
this._float = _float; this._float = _float;
} }/**
/**
* minimum: 67.8 * minimum: 67.8
* maximum: 123.4 * maximum: 123.4
**/ **/
@ -140,16 +145,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("double") @JsonProperty("double")
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() { @DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
return _double; return _double;
} }
public void setDouble(Double _double) { public void setDouble(Double _double) {
this._double = _double; this._double = _double;
} }/**
/**
**/ **/
public FormatTest string(String string) { public FormatTest string(String string) {
this.string = string; this.string = string;
@ -157,16 +163,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("string") @JsonProperty("string")
@Pattern(regexp="/[a-z]/i") public String getString() { @Pattern(regexp="/[a-z]/i") public String getString() {
return string; return string;
} }
public void setString(String string) { public void setString(String string) {
this.string = string; this.string = string;
} }/**
/**
**/ **/
public FormatTest _byte(byte[] _byte) { public FormatTest _byte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
@ -174,17 +181,18 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("byte") @JsonProperty("byte")
@NotNull @NotNull
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() { @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
return _byte; return _byte;
} }
public void setByte(byte[] _byte) { public void setByte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
} }/**
/**
**/ **/
public FormatTest binary(File binary) { public FormatTest binary(File binary) {
this.binary = binary; this.binary = binary;
@ -192,16 +200,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("binary") @JsonProperty("binary")
public File getBinary() { public File getBinary() {
return binary; return binary;
} }
public void setBinary(File binary) { public void setBinary(File binary) {
this.binary = binary; this.binary = binary;
} }/**
/**
**/ **/
public FormatTest date(LocalDate date) { public FormatTest date(LocalDate date) {
this.date = date; this.date = date;
@ -209,17 +218,18 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("date") @JsonProperty("date")
@NotNull @NotNull
public LocalDate getDate() { public LocalDate getDate() {
return date; return date;
} }
public void setDate(LocalDate date) { public void setDate(LocalDate date) {
this.date = date; this.date = date;
} }/**
/**
**/ **/
public FormatTest dateTime(Date dateTime) { public FormatTest dateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
@ -227,16 +237,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(Date dateTime) { public void setDateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }/**
/**
**/ **/
public FormatTest uuid(UUID uuid) { public FormatTest uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
@ -244,16 +255,17 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }/**
/**
**/ **/
public FormatTest password(String password) { public FormatTest password(String password) {
this.password = password; this.password = password;
@ -261,17 +273,18 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("password") @JsonProperty("password")
@NotNull @NotNull
@Size(min=10,max=64) public String getPassword() { @Size(min=10,max=64) public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }/**
/**
**/ **/
public FormatTest bigDecimal(BigDecimal bigDecimal) { public FormatTest bigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal; this.bigDecimal = bigDecimal;
@ -279,16 +292,18 @@ public class FormatTest implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("BigDecimal") @JsonProperty("BigDecimal")
public BigDecimal getBigDecimal() { public BigDecimal getBigDecimal() {
return bigDecimal; return bigDecimal;
} }
public void setBigDecimal(BigDecimal bigDecimal) { public void setBigDecimal(BigDecimal bigDecimal) {
this.bigDecimal = bigDecimal; this.bigDecimal = bigDecimal;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -352,5 +367,7 @@ public class FormatTest implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -27,16 +27,17 @@ public class HasOnlyReadOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
return bar; return bar;
} }
public void setBar(String bar) { public void setBar(String bar) {
this.bar = bar; this.bar = bar;
} }/**
/**
**/ **/
public HasOnlyReadOnly foo(String foo) { public HasOnlyReadOnly foo(String foo) {
this.foo = foo; this.foo = foo;
@ -44,16 +45,18 @@ public class HasOnlyReadOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("foo") @JsonProperty("foo")
public String getFoo() { public String getFoo() {
return foo; return foo;
} }
public void setFoo(String foo) { public void setFoo(String foo) {
this.foo = foo; this.foo = foo;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -93,5 +96,7 @@ public class HasOnlyReadOnly implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -65,16 +65,17 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_map_of_string") @JsonProperty("map_map_of_string")
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString; return mapMapOfString;
} }
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString; this.mapMapOfString = mapMapOfString;
} }/**
/**
**/ **/
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
@ -82,16 +83,17 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map_of_enum_string") @JsonProperty("map_of_enum_string")
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString; return mapOfEnumString;
} }
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
} }/**
/**
**/ **/
public MapTest directMap(Map<String, Boolean> directMap) { public MapTest directMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
@ -99,16 +101,17 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("direct_map") @JsonProperty("direct_map")
public Map<String, Boolean> getDirectMap() { public Map<String, Boolean> getDirectMap() {
return directMap; return directMap;
} }
public void setDirectMap(Map<String, Boolean> directMap) { public void setDirectMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
} }/**
/**
**/ **/
public MapTest indirectMap(Map<String, Boolean> indirectMap) { public MapTest indirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
@ -116,16 +119,18 @@ public enum InnerEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("indirect_map") @JsonProperty("indirect_map")
public Map<String, Boolean> getIndirectMap() { public Map<String, Boolean> getIndirectMap() {
return indirectMap; return indirectMap;
} }
public void setIndirectMap(Map<String, Boolean> indirectMap) { public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -169,5 +174,7 @@ public enum InnerEnum {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -34,16 +34,17 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("uuid") @JsonProperty("uuid")
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }/**
/**
**/ **/
public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
@ -51,16 +52,17 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("dateTime") @JsonProperty("dateTime")
public Date getDateTime() { public Date getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(Date dateTime) { public void setDateTime(Date dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }/**
/**
**/ **/
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) { public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
this.map = map; this.map = map;
@ -68,16 +70,18 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("map") @JsonProperty("map")
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {
return map; return map;
} }
public void setMap(Map<String, Animal> map) { public void setMap(Map<String, Animal> map) {
this.map = map; this.map = map;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -119,5 +123,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -12,7 +12,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing model name starting with number * Model for testing model name starting with number
**/ **/
@ -30,16 +29,17 @@ public class Model200Response implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("name") @JsonProperty("name")
public Integer getName() { public Integer getName() {
return name; return name;
} }
public void setName(Integer name) { public void setName(Integer name) {
this.name = name; this.name = name;
} }/**
/**
**/ **/
public Model200Response propertyClass(String propertyClass) { public Model200Response propertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
@ -47,16 +47,18 @@ public class Model200Response implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("class") @JsonProperty("class")
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }
public void setPropertyClass(String propertyClass) { public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -96,5 +98,7 @@ public class Model200Response implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -28,16 +28,17 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("code") @JsonProperty("code")
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public void setCode(Integer code) { public void setCode(Integer code) {
this.code = code; this.code = code;
} }/**
/**
**/ **/
public ModelApiResponse type(String type) { public ModelApiResponse type(String type) {
this.type = type; this.type = type;
@ -45,16 +46,17 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("type") @JsonProperty("type")
public String getType() { public String getType() {
return type; return type;
} }
public void setType(String type) { public void setType(String type) {
this.type = type; this.type = type;
} }/**
/**
**/ **/
public ModelApiResponse message(String message) { public ModelApiResponse message(String message) {
this.message = message; this.message = message;
@ -62,16 +64,18 @@ public class ModelApiResponse implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("message") @JsonProperty("message")
public String getMessage() { public String getMessage() {
return message; return message;
} }
public void setMessage(String message) { public void setMessage(String message) {
this.message = message; this.message = message;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -113,5 +117,7 @@ public class ModelApiResponse implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -12,7 +12,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing reserved words * Model for testing reserved words
**/ **/
@ -29,16 +28,18 @@ public class ModelReturn implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("return") @JsonProperty("return")
public Integer getReturn() { public Integer getReturn() {
return _return; return _return;
} }
public void setReturn(Integer _return) { public void setReturn(Integer _return) {
this._return = _return; this._return = _return;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -76,5 +77,7 @@ public class ModelReturn implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -12,7 +12,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
/** /**
* Model for testing model name same as property name * Model for testing model name same as property name
**/ **/
@ -32,17 +31,18 @@ public class Name implements Serializable {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
public Integer getName() { public Integer getName() {
return name; return name;
} }
public void setName(Integer name) { public void setName(Integer name) {
this.name = name; this.name = name;
} }/**
/**
**/ **/
public Name snakeCase(Integer snakeCase) { public Name snakeCase(Integer snakeCase) {
this.snakeCase = snakeCase; this.snakeCase = snakeCase;
@ -50,16 +50,17 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("snake_case") @JsonProperty("snake_case")
public Integer getSnakeCase() { public Integer getSnakeCase() {
return snakeCase; return snakeCase;
} }
public void setSnakeCase(Integer snakeCase) { public void setSnakeCase(Integer snakeCase) {
this.snakeCase = snakeCase; this.snakeCase = snakeCase;
} }/**
/**
**/ **/
public Name property(String property) { public Name property(String property) {
this.property = property; this.property = property;
@ -67,16 +68,17 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("property") @JsonProperty("property")
public String getProperty() { public String getProperty() {
return property; return property;
} }
public void setProperty(String property) { public void setProperty(String property) {
this.property = property; this.property = property;
} }/**
/**
**/ **/
public Name _123number(Integer _123number) { public Name _123number(Integer _123number) {
this._123number = _123number; this._123number = _123number;
@ -84,16 +86,18 @@ public class Name implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("123Number") @JsonProperty("123Number")
public Integer get123number() { public Integer get123number() {
return _123number; return _123number;
} }
public void set123number(Integer _123number) { public void set123number(Integer _123number) {
this._123number = _123number; this._123number = _123number;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -137,5 +141,7 @@ public class Name implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -27,16 +27,18 @@ public class NumberOnly implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("JustNumber") @JsonProperty("JustNumber")
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {
return justNumber; return justNumber;
} }
public void setJustNumber(BigDecimal justNumber) { public void setJustNumber(BigDecimal justNumber) {
this.justNumber = justNumber; this.justNumber = justNumber;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -74,5 +76,7 @@ public class NumberOnly implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -65,16 +65,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }/**
/**
**/ **/
public Order petId(Long petId) { public Order petId(Long petId) {
this.petId = petId; this.petId = petId;
@ -82,16 +83,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("petId") @JsonProperty("petId")
public Long getPetId() { public Long getPetId() {
return petId; return petId;
} }
public void setPetId(Long petId) { public void setPetId(Long petId) {
this.petId = petId; this.petId = petId;
} }/**
/**
**/ **/
public Order quantity(Integer quantity) { public Order quantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
@ -99,16 +101,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("quantity") @JsonProperty("quantity")
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
} }
public void setQuantity(Integer quantity) { public void setQuantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
} }/**
/**
**/ **/
public Order shipDate(Date shipDate) { public Order shipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
@ -116,16 +119,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("shipDate") @JsonProperty("shipDate")
public Date getShipDate() { public Date getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(Date shipDate) { public void setShipDate(Date shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }/**
/**
* Order Status * Order Status
**/ **/
public Order status(StatusEnum status) { public Order status(StatusEnum status) {
@ -134,16 +138,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }/**
/**
**/ **/
public Order complete(Boolean complete) { public Order complete(Boolean complete) {
this.complete = complete; this.complete = complete;
@ -151,16 +156,18 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("complete") @JsonProperty("complete")
public Boolean getComplete() { public Boolean getComplete() {
return complete; return complete;
} }
public void setComplete(Boolean complete) { public void setComplete(Boolean complete) {
this.complete = complete; this.complete = complete;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -208,5 +215,7 @@ public enum StatusEnum {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,16 +29,17 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_number") @JsonProperty("my_number")
public BigDecimal getMyNumber() { public BigDecimal getMyNumber() {
return myNumber; return myNumber;
} }
public void setMyNumber(BigDecimal myNumber) { public void setMyNumber(BigDecimal myNumber) {
this.myNumber = myNumber; this.myNumber = myNumber;
} }/**
/**
**/ **/
public OuterComposite myString(String myString) { public OuterComposite myString(String myString) {
this.myString = myString; this.myString = myString;
@ -46,16 +47,17 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_string") @JsonProperty("my_string")
public String getMyString() { public String getMyString() {
return myString; return myString;
} }
public void setMyString(String myString) { public void setMyString(String myString) {
this.myString = myString; this.myString = myString;
} }/**
/**
**/ **/
public OuterComposite myBoolean(Boolean myBoolean) { public OuterComposite myBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean; this.myBoolean = myBoolean;
@ -63,16 +65,18 @@ public class OuterComposite implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("my_boolean") @JsonProperty("my_boolean")
public Boolean getMyBoolean() { public Boolean getMyBoolean() {
return myBoolean; return myBoolean;
} }
public void setMyBoolean(Boolean myBoolean) { public void setMyBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean; this.myBoolean = myBoolean;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -114,5 +118,7 @@ public class OuterComposite implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -68,16 +68,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("id") @JsonProperty("id")
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }/**
/**
**/ **/
public Pet category(Category category) { public Pet category(Category category) {
this.category = category; this.category = category;
@ -85,16 +86,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("category") @JsonProperty("category")
public Category getCategory() { public Category getCategory() {
return category; return category;
} }
public void setCategory(Category category) { public void setCategory(Category category) {
this.category = category; this.category = category;
} }/**
/**
**/ **/
public Pet name(String name) { public Pet name(String name) {
this.name = name; this.name = name;
@ -102,17 +104,18 @@ public enum StatusEnum {
} }
@ApiModelProperty(example = "doggie", required = true, value = "") @ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty("name") @JsonProperty("name")
@NotNull @NotNull
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }/**
/**
**/ **/
public Pet photoUrls(List<String> photoUrls) { public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
@ -120,17 +123,18 @@ public enum StatusEnum {
} }
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
@NotNull @NotNull
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }/**
/**
**/ **/
public Pet tags(List<Tag> tags) { public Pet tags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
@ -138,16 +142,17 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("tags") @JsonProperty("tags")
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }/**
/**
* pet status in the store * pet status in the store
**/ **/
public Pet status(StatusEnum status) { public Pet status(StatusEnum status) {
@ -156,16 +161,18 @@ public enum StatusEnum {
} }
@ApiModelProperty(value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
@JsonProperty("status") @JsonProperty("status")
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -213,5 +220,7 @@ public enum StatusEnum {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -27,16 +27,17 @@ public class ReadOnlyFirst implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("bar") @JsonProperty("bar")
public String getBar() { public String getBar() {
return bar; return bar;
} }
public void setBar(String bar) { public void setBar(String bar) {
this.bar = bar; this.bar = bar;
} }/**
/**
**/ **/
public ReadOnlyFirst baz(String baz) { public ReadOnlyFirst baz(String baz) {
this.baz = baz; this.baz = baz;
@ -44,16 +45,18 @@ public class ReadOnlyFirst implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("baz") @JsonProperty("baz")
public String getBaz() { public String getBaz() {
return baz; return baz;
} }
public void setBaz(String baz) { public void setBaz(String baz) {
this.baz = baz; this.baz = baz;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -93,5 +96,7 @@ public class ReadOnlyFirst implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -26,16 +26,18 @@ public class SpecialModelName implements Serializable {
} }
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty("$special[property.name]") @JsonProperty("$special[property.name]")
public Long get$SpecialPropertyName() { public Long get$SpecialPropertyName() {
return $specialPropertyName; return $specialPropertyName;
} }
public void set$SpecialPropertyName(Long $specialPropertyName) { public void set$SpecialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName; this.$specialPropertyName = $specialPropertyName;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@ -73,5 +75,7 @@ public class SpecialModelName implements Serializable {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

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