mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 10:56:10 +00:00
Merge remote-tracking branch 'origin/master' into 7.0.x
This commit is contained in:
@@ -38,6 +38,7 @@ src/main/java/org/openapitools/model/CatAllOf.java
|
||||
src/main/java/org/openapitools/model/Category.java
|
||||
src/main/java/org/openapitools/model/ClassModel.java
|
||||
src/main/java/org/openapitools/model/Client.java
|
||||
src/main/java/org/openapitools/model/ContainerDefaultValue.java
|
||||
src/main/java/org/openapitools/model/Dog.java
|
||||
src/main/java/org/openapitools/model/DogAllOf.java
|
||||
src/main/java/org/openapitools/model/EnumArrays.java
|
||||
@@ -60,6 +61,7 @@ src/main/java/org/openapitools/model/OuterComposite.java
|
||||
src/main/java/org/openapitools/model/OuterEnum.java
|
||||
src/main/java/org/openapitools/model/Pet.java
|
||||
src/main/java/org/openapitools/model/ReadOnlyFirst.java
|
||||
src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java
|
||||
src/main/java/org/openapitools/model/SpecialModelName.java
|
||||
src/main/java/org/openapitools/model/Tag.java
|
||||
src/main/java/org/openapitools/model/TypeHolderDefault.java
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.openapitools</groupId>
|
||||
<groupId>org.openapitools.openapi3</groupId>
|
||||
<artifactId>spring-boot-beanvalidation-no-nullable</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>spring-boot-beanvalidation-no-nullable</name>
|
||||
|
||||
@@ -35,7 +35,7 @@ public interface AnotherFakeApi {
|
||||
* PATCH /another-fake/dummy : To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
*
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -55,7 +55,7 @@ public interface AnotherFakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Client> call123testSpecialTags(
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Client client
|
||||
) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
|
||||
@@ -14,6 +14,7 @@ import java.util.Map;
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import java.time.OffsetDateTime;
|
||||
import org.openapitools.model.OuterComposite;
|
||||
import org.openapitools.model.ResponseObjectWithDifferentFieldNames;
|
||||
import org.openapitools.model.User;
|
||||
import org.openapitools.model.XmlItem;
|
||||
import io.swagger.annotations.*;
|
||||
@@ -90,7 +91,8 @@ public interface FakeApi {
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/fake/outer/boolean",
|
||||
produces = { "*/*" }
|
||||
produces = { "*/*" },
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(
|
||||
@ApiParam(value = "Input boolean as post body") @Valid @RequestBody(required = false) Boolean body
|
||||
@@ -104,7 +106,7 @@ public interface FakeApi {
|
||||
* POST /fake/outer/composite
|
||||
* Test serialization of object with outer number type
|
||||
*
|
||||
* @param body Input composite as post body (optional)
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @return Output composite (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -120,10 +122,11 @@ public interface FakeApi {
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/fake/outer/composite",
|
||||
produces = { "*/*" }
|
||||
produces = { "*/*" },
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<OuterComposite> fakeOuterCompositeSerialize(
|
||||
@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite body
|
||||
@ApiParam(value = "Input composite as post body") @Valid @RequestBody(required = false) OuterComposite outerComposite
|
||||
) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
@@ -159,7 +162,8 @@ public interface FakeApi {
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/fake/outer/number",
|
||||
produces = { "*/*" }
|
||||
produces = { "*/*" },
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(
|
||||
@ApiParam(value = "Input number as post body") @Valid @RequestBody(required = false) BigDecimal body
|
||||
@@ -189,7 +193,8 @@ public interface FakeApi {
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/fake/outer/string",
|
||||
produces = { "*/*" }
|
||||
produces = { "*/*" },
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<String> fakeOuterStringSerialize(
|
||||
@ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) String body
|
||||
@@ -199,11 +204,49 @@ public interface FakeApi {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* GET /fake/{petId}/response-object-different-names
|
||||
*
|
||||
* @param petId ID of pet to update (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
tags = { "pet" },
|
||||
value = "",
|
||||
nickname = "responseObjectDifferentNames",
|
||||
notes = "",
|
||||
response = ResponseObjectWithDifferentFieldNames.class
|
||||
)
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = 200, message = "successful operation", response = ResponseObjectWithDifferentFieldNames.class)
|
||||
})
|
||||
@RequestMapping(
|
||||
method = RequestMethod.GET,
|
||||
value = "/fake/{petId}/response-object-different-names",
|
||||
produces = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<ResponseObjectWithDifferentFieldNames> responseObjectDifferentNames(
|
||||
@ApiParam(value = "ID of pet to update", required = true) @PathVariable("petId") Long petId
|
||||
) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
String exampleString = "{ \"UPPER_CASE_PROPERTY_SNAKE\" : \"UPPER_CASE_PROPERTY_SNAKE\", \"lower-case-property-dashes\" : \"lower-case-property-dashes\", \"property name with spaces\" : \"property name with spaces\", \"normalPropertyName\" : \"normalPropertyName\" }";
|
||||
ApiUtil.setExampleResponse(request, "application/json", exampleString);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* PUT /fake/body-with-file-schema
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
*
|
||||
* @param body (required)
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @return Success (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -221,7 +264,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Void> testBodyWithFileSchema(
|
||||
@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass body
|
||||
@ApiParam(value = "", required = true) @Valid @RequestBody FileSchemaTestClass fileSchemaTestClass
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -232,7 +275,7 @@ public interface FakeApi {
|
||||
* PUT /fake/body-with-query-params
|
||||
*
|
||||
* @param query (required)
|
||||
* @param body (required)
|
||||
* @param user (required)
|
||||
* @return Success (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -251,7 +294,7 @@ public interface FakeApi {
|
||||
)
|
||||
default ResponseEntity<Void> testBodyWithQueryParams(
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "query", required = true) String query,
|
||||
@ApiParam(value = "", required = true) @Valid @RequestBody User body
|
||||
@ApiParam(value = "", required = true) @Valid @RequestBody User user
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -262,7 +305,7 @@ public interface FakeApi {
|
||||
* PATCH /fake : To test \"client\" model
|
||||
* To test \"client\" model
|
||||
*
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -282,7 +325,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Client> testClientModel(
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Client client
|
||||
) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
@@ -443,8 +486,9 @@ public interface FakeApi {
|
||||
|
||||
/**
|
||||
* POST /fake/inline-additionalProperties : test inline additionalProperties
|
||||
*
|
||||
*
|
||||
* @param param request body (required)
|
||||
* @param requestBody request body (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -462,7 +506,7 @@ public interface FakeApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Void> testInlineAdditionalProperties(
|
||||
@ApiParam(value = "request body", required = true) @Valid @RequestBody Map<String, String> param
|
||||
@ApiParam(value = "request body", required = true) @Valid @RequestBody Map<String, String> requestBody
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -471,6 +515,7 @@ public interface FakeApi {
|
||||
|
||||
/**
|
||||
* GET /fake/jsonFormData : test json serialization of form data
|
||||
*
|
||||
*
|
||||
* @param param field1 (required)
|
||||
* @param param2 field2 (required)
|
||||
@@ -504,7 +549,6 @@ public interface FakeApi {
|
||||
* To test the collection format in query parameters
|
||||
*
|
||||
* @param pipe (required)
|
||||
* @param ioutil (required)
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
@@ -525,7 +569,6 @@ public interface FakeApi {
|
||||
)
|
||||
default ResponseEntity<Void> testQueryParameterCollectionFormat(
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "pipe", required = true) List<String> pipe,
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "ioutil", required = true) List<String> ioutil,
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "http", required = true) List<String> http,
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "url", required = true) List<String> url,
|
||||
@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "context", required = true) List<String> context
|
||||
@@ -537,6 +580,7 @@ public interface FakeApi {
|
||||
|
||||
/**
|
||||
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
|
||||
*
|
||||
*
|
||||
* @param petId ID of pet to update (required)
|
||||
* @param requiredFile file to upload (required)
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.util.Map;
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import java.time.OffsetDateTime;
|
||||
import org.openapitools.model.OuterComposite;
|
||||
import org.openapitools.model.ResponseObjectWithDifferentFieldNames;
|
||||
import org.openapitools.model.User;
|
||||
import org.openapitools.model.XmlItem;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public interface FakeClassnameTestApi {
|
||||
* PATCH /fake_classname_test : To test class name in snake case
|
||||
* To test class name in snake case
|
||||
*
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -58,7 +58,7 @@ public interface FakeClassnameTestApi {
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Client> testClassname(
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Client body
|
||||
@ApiParam(value = "client model", required = true) @Valid @RequestBody Client client
|
||||
) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
|
||||
@@ -35,8 +35,9 @@ public interface PetApi {
|
||||
|
||||
/**
|
||||
* POST /pet : Add a new pet to the store
|
||||
*
|
||||
*
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or Invalid input (status code 405)
|
||||
*/
|
||||
@@ -62,7 +63,7 @@ public interface PetApi {
|
||||
consumes = { "application/json", "application/xml" }
|
||||
)
|
||||
default ResponseEntity<Void> addPet(
|
||||
@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body
|
||||
@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet pet
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -71,6 +72,7 @@ public interface PetApi {
|
||||
|
||||
/**
|
||||
* DELETE /pet/{petId} : Deletes a pet
|
||||
*
|
||||
*
|
||||
* @param petId Pet id to delete (required)
|
||||
* @param apiKey (optional)
|
||||
@@ -267,8 +269,9 @@ public interface PetApi {
|
||||
|
||||
/**
|
||||
* PUT /pet : Update an existing pet
|
||||
*
|
||||
*
|
||||
* @param body Pet object that needs to be added to the store (required)
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or Invalid ID supplied (status code 400)
|
||||
* or Pet not found (status code 404)
|
||||
@@ -298,7 +301,7 @@ public interface PetApi {
|
||||
consumes = { "application/json", "application/xml" }
|
||||
)
|
||||
default ResponseEntity<Void> updatePet(
|
||||
@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet body
|
||||
@ApiParam(value = "Pet object that needs to be added to the store", required = true) @Valid @RequestBody Pet pet
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -307,6 +310,7 @@ public interface PetApi {
|
||||
|
||||
/**
|
||||
* POST /pet/{petId} : Updates a pet in the store with form data
|
||||
*
|
||||
*
|
||||
* @param petId ID of pet that needs to be updated (required)
|
||||
* @param name Updated name of the pet (optional)
|
||||
@@ -345,6 +349,7 @@ public interface PetApi {
|
||||
|
||||
/**
|
||||
* POST /pet/{petId}/uploadImage : uploads an image
|
||||
*
|
||||
*
|
||||
* @param petId ID of pet to update (required)
|
||||
* @param additionalMetadata Additional data to pass to server (optional)
|
||||
|
||||
@@ -145,8 +145,9 @@ public interface StoreApi {
|
||||
|
||||
/**
|
||||
* POST /store/order : Place an order for a pet
|
||||
*
|
||||
*
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @return successful operation (status code 200)
|
||||
* or Invalid Order (status code 400)
|
||||
*/
|
||||
@@ -164,10 +165,11 @@ public interface StoreApi {
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/store/order",
|
||||
produces = { "application/xml", "application/json" }
|
||||
produces = { "application/xml", "application/json" },
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Order> placeOrder(
|
||||
@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order body
|
||||
@ApiParam(value = "order placed for purchasing the pet", required = true) @Valid @RequestBody Order order
|
||||
) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
|
||||
@@ -37,7 +37,7 @@ public interface UserApi {
|
||||
* POST /user : Create user
|
||||
* This can only be done by the logged in user.
|
||||
*
|
||||
* @param body Created user object (required)
|
||||
* @param user Created user object (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -51,10 +51,11 @@ public interface UserApi {
|
||||
})
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/user"
|
||||
value = "/user",
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Void> createUser(
|
||||
@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User body
|
||||
@ApiParam(value = "Created user object", required = true) @Valid @RequestBody User user
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -63,8 +64,9 @@ public interface UserApi {
|
||||
|
||||
/**
|
||||
* POST /user/createWithArray : Creates list of users with given input array
|
||||
*
|
||||
*
|
||||
* @param body List of user object (required)
|
||||
* @param user List of user object (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -78,10 +80,11 @@ public interface UserApi {
|
||||
})
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/user/createWithArray"
|
||||
value = "/user/createWithArray",
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Void> createUsersWithArrayInput(
|
||||
@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List<User> body
|
||||
@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List<User> user
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -90,8 +93,9 @@ public interface UserApi {
|
||||
|
||||
/**
|
||||
* POST /user/createWithList : Creates list of users with given input array
|
||||
*
|
||||
*
|
||||
* @param body List of user object (required)
|
||||
* @param user List of user object (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@ApiOperation(
|
||||
@@ -105,10 +109,11 @@ public interface UserApi {
|
||||
})
|
||||
@RequestMapping(
|
||||
method = RequestMethod.POST,
|
||||
value = "/user/createWithList"
|
||||
value = "/user/createWithList",
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Void> createUsersWithListInput(
|
||||
@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List<User> body
|
||||
@ApiParam(value = "List of user object", required = true) @Valid @RequestBody List<User> user
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
@@ -147,6 +152,7 @@ public interface UserApi {
|
||||
|
||||
/**
|
||||
* GET /user/{username} : Get user by user name
|
||||
*
|
||||
*
|
||||
* @param username The name that needs to be fetched. Use user1 for testing. (required)
|
||||
* @return successful operation (status code 200)
|
||||
@@ -194,6 +200,7 @@ public interface UserApi {
|
||||
|
||||
/**
|
||||
* GET /user/login : Logs user into the system
|
||||
*
|
||||
*
|
||||
* @param username The user name for login (required)
|
||||
* @param password The password for login in clear text (required)
|
||||
@@ -227,6 +234,7 @@ public interface UserApi {
|
||||
|
||||
/**
|
||||
* GET /user/logout : Logs out current logged in user session
|
||||
*
|
||||
*
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@@ -256,7 +264,7 @@ public interface UserApi {
|
||||
* This can only be done by the logged in user.
|
||||
*
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param body Updated user object (required)
|
||||
* @param user Updated user object (required)
|
||||
* @return Invalid user supplied (status code 400)
|
||||
* or User not found (status code 404)
|
||||
*/
|
||||
@@ -272,11 +280,12 @@ public interface UserApi {
|
||||
})
|
||||
@RequestMapping(
|
||||
method = RequestMethod.PUT,
|
||||
value = "/user/{username}"
|
||||
value = "/user/{username}",
|
||||
consumes = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<Void> updateUser(
|
||||
@ApiParam(value = "name that need to be deleted", required = true) @PathVariable("username") String username,
|
||||
@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User body
|
||||
@ApiParam(value = "Updated user object", required = true) @Valid @RequestBody User user
|
||||
) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
@@ -38,6 +37,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -25,45 +25,34 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty("map_string")
|
||||
@Valid
|
||||
private Map<String, String> mapString = null;
|
||||
private Map<String, String> mapString = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_number")
|
||||
@Valid
|
||||
private Map<String, BigDecimal> mapNumber = null;
|
||||
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_integer")
|
||||
@Valid
|
||||
private Map<String, Integer> mapInteger = null;
|
||||
private Map<String, Integer> mapInteger = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_boolean")
|
||||
@Valid
|
||||
private Map<String, Boolean> mapBoolean = null;
|
||||
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_array_integer")
|
||||
@Valid
|
||||
private Map<String, List<Integer>> mapArrayInteger = null;
|
||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_array_anytype")
|
||||
@Valid
|
||||
private Map<String, List<Object>> mapArrayAnytype = null;
|
||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_map_string")
|
||||
@Valid
|
||||
private Map<String, Map<String, String>> mapMapString = null;
|
||||
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_map_anytype")
|
||||
@Valid
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = null;
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
private Object anytype1;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
private Object anytype2;
|
||||
private Object anytype2 = null;
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
private Object anytype3;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
@@ -85,6 +74,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_string")
|
||||
public Map<String, String> getMapString() {
|
||||
return mapString;
|
||||
}
|
||||
@@ -112,6 +102,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_number")
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
}
|
||||
@@ -139,6 +130,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_integer")
|
||||
public Map<String, Integer> getMapInteger() {
|
||||
return mapInteger;
|
||||
}
|
||||
@@ -166,6 +158,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_boolean")
|
||||
public Map<String, Boolean> getMapBoolean() {
|
||||
return mapBoolean;
|
||||
}
|
||||
@@ -193,6 +186,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_integer")
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
}
|
||||
@@ -220,6 +214,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_anytype")
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
}
|
||||
@@ -247,6 +242,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_string")
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
}
|
||||
@@ -274,6 +270,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_anytype")
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
}
|
||||
@@ -293,6 +290,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("anytype_1")
|
||||
public Object getAnytype1() {
|
||||
return anytype1;
|
||||
}
|
||||
@@ -312,6 +310,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("anytype_2")
|
||||
public Object getAnytype2() {
|
||||
return anytype2;
|
||||
}
|
||||
@@ -331,6 +330,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("anytype_3")
|
||||
public Object getAnytype3() {
|
||||
return anytype3;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesInteger name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesNumber name(String name) {
|
||||
@@ -38,6 +37,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesObject name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesString name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -9,9 +9,6 @@ import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.openapitools.model.BigCat;
|
||||
import org.openapitools.model.Cat;
|
||||
import org.openapitools.model.Dog;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
@@ -38,10 +35,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Animal {
|
||||
|
||||
@JsonProperty("className")
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
private String color = "red";
|
||||
|
||||
/**
|
||||
@@ -71,6 +66,7 @@ public class Animal {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("className")
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
@@ -90,6 +86,7 @@ public class Animal {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("color")
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
@Valid
|
||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
||||
private List<List<BigDecimal>> arrayArrayNumber;
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
this.arrayArrayNumber = arrayArrayNumber;
|
||||
@@ -47,6 +46,7 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty("ArrayNumber")
|
||||
@Valid
|
||||
private List<BigDecimal> arrayNumber = null;
|
||||
private List<BigDecimal> arrayNumber;
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
this.arrayNumber = arrayNumber;
|
||||
@@ -47,6 +46,7 @@ public class ArrayOfNumberOnly {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("ArrayNumber")
|
||||
public List<BigDecimal> getArrayNumber() {
|
||||
return arrayNumber;
|
||||
}
|
||||
|
||||
@@ -24,17 +24,14 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayTest {
|
||||
|
||||
@JsonProperty("array_of_string")
|
||||
@Valid
|
||||
private List<String> arrayOfString = null;
|
||||
private List<String> arrayOfString;
|
||||
|
||||
@JsonProperty("array_array_of_integer")
|
||||
@Valid
|
||||
private List<List<Long>> arrayArrayOfInteger = null;
|
||||
private List<List<Long>> arrayArrayOfInteger;
|
||||
|
||||
@JsonProperty("array_array_of_model")
|
||||
@Valid
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel;
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
this.arrayOfString = arrayOfString;
|
||||
@@ -55,6 +52,7 @@ public class ArrayTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_of_string")
|
||||
public List<String> getArrayOfString() {
|
||||
return arrayOfString;
|
||||
}
|
||||
@@ -82,6 +80,7 @@ public class ArrayTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public List<List<Long>> getArrayArrayOfInteger() {
|
||||
return arrayArrayOfInteger;
|
||||
}
|
||||
@@ -109,6 +108,7 @@ public class ArrayTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_array_of_model")
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,6 @@ public class BigCat extends Cat {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("kind")
|
||||
private KindEnum kind;
|
||||
|
||||
/**
|
||||
@@ -96,6 +95,7 @@ public class BigCat extends Cat {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("kind")
|
||||
public KindEnum getKind() {
|
||||
return kind;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ public class BigCatAllOf {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("kind")
|
||||
private KindEnum kind;
|
||||
|
||||
public BigCatAllOf kind(KindEnum kind) {
|
||||
@@ -77,6 +76,7 @@ public class BigCatAllOf {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("kind")
|
||||
public KindEnum getKind() {
|
||||
return kind;
|
||||
}
|
||||
|
||||
@@ -21,22 +21,16 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Capitalization {
|
||||
|
||||
@JsonProperty("smallCamel")
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
@@ -50,6 +44,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("smallCamel")
|
||||
public String getSmallCamel() {
|
||||
return smallCamel;
|
||||
}
|
||||
@@ -69,6 +64,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("CapitalCamel")
|
||||
public String getCapitalCamel() {
|
||||
return capitalCamel;
|
||||
}
|
||||
@@ -88,6 +84,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("small_Snake")
|
||||
public String getSmallSnake() {
|
||||
return smallSnake;
|
||||
}
|
||||
@@ -107,6 +104,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("Capital_Snake")
|
||||
public String getCapitalSnake() {
|
||||
return capitalSnake;
|
||||
}
|
||||
@@ -126,6 +124,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public String getScAETHFlowPoints() {
|
||||
return scAETHFlowPoints;
|
||||
}
|
||||
@@ -145,6 +144,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "Name of the pet ")
|
||||
@JsonProperty("ATT_NAME")
|
||||
public String getATTNAME() {
|
||||
return ATT_NAME;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.openapitools.model.Animal;
|
||||
import org.openapitools.model.BigCat;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
@@ -35,7 +34,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Cat extends Animal {
|
||||
|
||||
@JsonProperty("declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
/**
|
||||
@@ -65,6 +63,7 @@ public class Cat extends Animal {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("declawed")
|
||||
public Boolean getDeclawed() {
|
||||
return declawed;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class CatAllOf {
|
||||
|
||||
@JsonProperty("declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
public CatAllOf declawed(Boolean declawed) {
|
||||
@@ -37,6 +36,7 @@ public class CatAllOf {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("declawed")
|
||||
public Boolean getDeclawed() {
|
||||
return declawed;
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Category {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = "default-name";
|
||||
|
||||
/**
|
||||
@@ -54,6 +52,7 @@ public class Category {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -73,6 +72,7 @@ public class Category {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ClassModel {
|
||||
|
||||
@JsonProperty("_class")
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
@@ -36,6 +35,7 @@ public class ClassModel {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("_class")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Client {
|
||||
|
||||
@JsonProperty("client")
|
||||
private String client;
|
||||
|
||||
public Client client(String client) {
|
||||
@@ -35,6 +34,7 @@ public class Client {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("client")
|
||||
public String getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,210 @@
|
||||
package org.openapitools.model;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.Objects;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ContainerDefaultValue
|
||||
*/
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ContainerDefaultValue {
|
||||
|
||||
@Valid
|
||||
private List<String> nullableArray;
|
||||
|
||||
@Valid
|
||||
private List<String> nullableRequiredArray;
|
||||
|
||||
@Valid
|
||||
private List<String> requiredArray = new ArrayList<>();
|
||||
|
||||
@Valid
|
||||
private List<String> nullableArrayWithDefault = new ArrayList<>(Arrays.asList("foo", "bar"));
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
* @deprecated Use {@link ContainerDefaultValue#ContainerDefaultValue(List<String>, List<String>)}
|
||||
*/
|
||||
@Deprecated
|
||||
public ContainerDefaultValue() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor with only required parameters
|
||||
*/
|
||||
public ContainerDefaultValue(List<String> nullableRequiredArray, List<String> requiredArray) {
|
||||
this.nullableRequiredArray = nullableRequiredArray;
|
||||
this.requiredArray = requiredArray;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue nullableArray(List<String> nullableArray) {
|
||||
this.nullableArray = nullableArray;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue addNullableArrayItem(String nullableArrayItem) {
|
||||
if (this.nullableArray == null) {
|
||||
this.nullableArray = new ArrayList<>();
|
||||
}
|
||||
this.nullableArray.add(nullableArrayItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nullableArray
|
||||
* @return nullableArray
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("nullable_array")
|
||||
public List<String> getNullableArray() {
|
||||
return nullableArray;
|
||||
}
|
||||
|
||||
public void setNullableArray(List<String> nullableArray) {
|
||||
this.nullableArray = nullableArray;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue nullableRequiredArray(List<String> nullableRequiredArray) {
|
||||
this.nullableRequiredArray = nullableRequiredArray;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue addNullableRequiredArrayItem(String nullableRequiredArrayItem) {
|
||||
if (this.nullableRequiredArray == null) {
|
||||
this.nullableRequiredArray = new ArrayList<>();
|
||||
}
|
||||
this.nullableRequiredArray.add(nullableRequiredArrayItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nullableRequiredArray
|
||||
* @return nullableRequiredArray
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("nullable_required_array")
|
||||
public List<String> getNullableRequiredArray() {
|
||||
return nullableRequiredArray;
|
||||
}
|
||||
|
||||
public void setNullableRequiredArray(List<String> nullableRequiredArray) {
|
||||
this.nullableRequiredArray = nullableRequiredArray;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue requiredArray(List<String> requiredArray) {
|
||||
this.requiredArray = requiredArray;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue addRequiredArrayItem(String requiredArrayItem) {
|
||||
if (this.requiredArray == null) {
|
||||
this.requiredArray = new ArrayList<>();
|
||||
}
|
||||
this.requiredArray.add(requiredArrayItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get requiredArray
|
||||
* @return requiredArray
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("required_array")
|
||||
public List<String> getRequiredArray() {
|
||||
return requiredArray;
|
||||
}
|
||||
|
||||
public void setRequiredArray(List<String> requiredArray) {
|
||||
this.requiredArray = requiredArray;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue nullableArrayWithDefault(List<String> nullableArrayWithDefault) {
|
||||
this.nullableArrayWithDefault = nullableArrayWithDefault;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue addNullableArrayWithDefaultItem(String nullableArrayWithDefaultItem) {
|
||||
if (this.nullableArrayWithDefault == null) {
|
||||
this.nullableArrayWithDefault = new ArrayList<>(Arrays.asList("foo", "bar"));
|
||||
}
|
||||
this.nullableArrayWithDefault.add(nullableArrayWithDefaultItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nullableArrayWithDefault
|
||||
* @return nullableArrayWithDefault
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("nullable_array_with_default")
|
||||
public List<String> getNullableArrayWithDefault() {
|
||||
return nullableArrayWithDefault;
|
||||
}
|
||||
|
||||
public void setNullableArrayWithDefault(List<String> nullableArrayWithDefault) {
|
||||
this.nullableArrayWithDefault = nullableArrayWithDefault;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ContainerDefaultValue containerDefaultValue = (ContainerDefaultValue) o;
|
||||
return Objects.equals(this.nullableArray, containerDefaultValue.nullableArray) &&
|
||||
Objects.equals(this.nullableRequiredArray, containerDefaultValue.nullableRequiredArray) &&
|
||||
Objects.equals(this.requiredArray, containerDefaultValue.requiredArray) &&
|
||||
Objects.equals(this.nullableArrayWithDefault, containerDefaultValue.nullableArrayWithDefault);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(nullableArray, nullableRequiredArray, requiredArray, nullableArrayWithDefault);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ContainerDefaultValue {\n");
|
||||
sb.append(" nullableArray: ").append(toIndentedString(nullableArray)).append("\n");
|
||||
sb.append(" nullableRequiredArray: ").append(toIndentedString(nullableRequiredArray)).append("\n");
|
||||
sb.append(" requiredArray: ").append(toIndentedString(requiredArray)).append("\n");
|
||||
sb.append(" nullableArrayWithDefault: ").append(toIndentedString(nullableArrayWithDefault)).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(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Dog extends Animal {
|
||||
|
||||
@JsonProperty("breed")
|
||||
private String breed;
|
||||
|
||||
/**
|
||||
@@ -56,6 +55,7 @@ public class Dog extends Animal {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("breed")
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class DogAllOf {
|
||||
|
||||
@JsonProperty("breed")
|
||||
private String breed;
|
||||
|
||||
public DogAllOf breed(String breed) {
|
||||
@@ -37,6 +36,7 @@ public class DogAllOf {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("breed")
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,6 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("just_symbol")
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
@@ -97,9 +96,8 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("array_enum")
|
||||
@Valid
|
||||
private List<ArrayEnumEnum> arrayEnum = null;
|
||||
private List<ArrayEnumEnum> arrayEnum;
|
||||
|
||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||
this.justSymbol = justSymbol;
|
||||
@@ -112,6 +110,7 @@ public class EnumArrays {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("just_symbol")
|
||||
public JustSymbolEnum getJustSymbol() {
|
||||
return justSymbol;
|
||||
}
|
||||
@@ -139,6 +138,7 @@ public class EnumArrays {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_enum")
|
||||
public List<ArrayEnumEnum> getArrayEnum() {
|
||||
return arrayEnum;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string")
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
@@ -102,7 +101,6 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string_required")
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
@@ -140,7 +138,6 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_integer")
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
@@ -178,10 +175,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_number")
|
||||
private EnumNumberEnum enumNumber;
|
||||
|
||||
@JsonProperty("outerEnum")
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
/**
|
||||
@@ -211,6 +206,7 @@ public class EnumTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("enum_string")
|
||||
public EnumStringEnum getEnumString() {
|
||||
return enumString;
|
||||
}
|
||||
@@ -230,6 +226,7 @@ public class EnumTest {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("enum_string_required")
|
||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
return enumStringRequired;
|
||||
}
|
||||
@@ -249,6 +246,7 @@ public class EnumTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("enum_integer")
|
||||
public EnumIntegerEnum getEnumInteger() {
|
||||
return enumInteger;
|
||||
}
|
||||
@@ -268,6 +266,7 @@ public class EnumTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("enum_number")
|
||||
public EnumNumberEnum getEnumNumber() {
|
||||
return enumNumber;
|
||||
}
|
||||
@@ -287,6 +286,7 @@ public class EnumTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("outerEnum")
|
||||
public OuterEnum getOuterEnum() {
|
||||
return outerEnum;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class File {
|
||||
|
||||
@JsonProperty("sourceURI")
|
||||
private String sourceURI;
|
||||
|
||||
public File sourceURI(String sourceURI) {
|
||||
@@ -36,6 +35,7 @@ public class File {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "Test capitalization")
|
||||
@JsonProperty("sourceURI")
|
||||
public String getSourceURI() {
|
||||
return sourceURI;
|
||||
}
|
||||
|
||||
@@ -24,12 +24,10 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("file")
|
||||
private File file;
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<@Valid File> files = null;
|
||||
private List<@Valid File> files;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -42,6 +40,7 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("file")
|
||||
public File getFile() {
|
||||
return file;
|
||||
}
|
||||
@@ -69,6 +68,7 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("files")
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
@@ -29,48 +29,34 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class FormatTest {
|
||||
|
||||
@JsonProperty("integer")
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
private String string;
|
||||
|
||||
@JsonProperty("byte")
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
private org.springframework.core.io.Resource binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||
private LocalDate date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
/**
|
||||
@@ -105,6 +91,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Min(10) @Max(100)
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("integer")
|
||||
public Integer getInteger() {
|
||||
return integer;
|
||||
}
|
||||
@@ -126,6 +113,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Min(20) @Max(200)
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("int32")
|
||||
public Integer getInt32() {
|
||||
return int32;
|
||||
}
|
||||
@@ -145,6 +133,7 @@ public class FormatTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("int64")
|
||||
public Long getInt64() {
|
||||
return int64;
|
||||
}
|
||||
@@ -166,6 +155,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("number")
|
||||
public BigDecimal getNumber() {
|
||||
return number;
|
||||
}
|
||||
@@ -187,6 +177,7 @@ public class FormatTest {
|
||||
*/
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("float")
|
||||
public Float getFloat() {
|
||||
return _float;
|
||||
}
|
||||
@@ -208,6 +199,7 @@ public class FormatTest {
|
||||
*/
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("double")
|
||||
public Double getDouble() {
|
||||
return _double;
|
||||
}
|
||||
@@ -227,6 +219,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Pattern(regexp = "/[a-z]/i")
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("string")
|
||||
public String getString() {
|
||||
return string;
|
||||
}
|
||||
@@ -246,6 +239,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("byte")
|
||||
public byte[] getByte() {
|
||||
return _byte;
|
||||
}
|
||||
@@ -265,6 +259,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("binary")
|
||||
public org.springframework.core.io.Resource getBinary() {
|
||||
return binary;
|
||||
}
|
||||
@@ -284,6 +279,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("date")
|
||||
public LocalDate getDate() {
|
||||
return date;
|
||||
}
|
||||
@@ -303,6 +299,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("dateTime")
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@@ -322,6 +319,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@@ -341,6 +339,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull @Size(min = 10, max = 64)
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@@ -360,6 +359,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("BigDecimal")
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
@@ -23,10 +23,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class HasOnlyReadOnly {
|
||||
|
||||
@JsonProperty("bar")
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("foo")
|
||||
private String foo;
|
||||
|
||||
public HasOnlyReadOnly bar(String bar) {
|
||||
@@ -40,6 +38,7 @@ public class HasOnlyReadOnly {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
@JsonProperty("bar")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@@ -59,6 +58,7 @@ public class HasOnlyReadOnly {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
@JsonProperty("foo")
|
||||
public String getFoo() {
|
||||
return foo;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class MapTest {
|
||||
|
||||
@JsonProperty("map_map_of_string")
|
||||
@Valid
|
||||
private Map<String, Map<String, String>> mapMapOfString = null;
|
||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Gets or Sets inner
|
||||
@@ -63,17 +62,14 @@ public class MapTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("map_of_enum_string")
|
||||
@Valid
|
||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
|
||||
|
||||
@JsonProperty("direct_map")
|
||||
@Valid
|
||||
private Map<String, Boolean> directMap = null;
|
||||
private Map<String, Boolean> directMap = new HashMap<>();
|
||||
|
||||
@JsonProperty("indirect_map")
|
||||
@Valid
|
||||
private Map<String, Boolean> indirectMap = null;
|
||||
private Map<String, Boolean> indirectMap = new HashMap<>();
|
||||
|
||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
this.mapMapOfString = mapMapOfString;
|
||||
@@ -94,6 +90,7 @@ public class MapTest {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_of_string")
|
||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
return mapMapOfString;
|
||||
}
|
||||
@@ -121,6 +118,7 @@ public class MapTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_of_enum_string")
|
||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||
return mapOfEnumString;
|
||||
}
|
||||
@@ -148,6 +146,7 @@ public class MapTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("direct_map")
|
||||
public Map<String, Boolean> getDirectMap() {
|
||||
return directMap;
|
||||
}
|
||||
@@ -175,6 +174,7 @@ public class MapTest {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("indirect_map")
|
||||
public Map<String, Boolean> getIndirectMap() {
|
||||
return indirectMap;
|
||||
}
|
||||
|
||||
@@ -27,16 +27,13 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty("uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
@Valid
|
||||
private Map<String, Animal> map = null;
|
||||
private Map<String, Animal> map = new HashMap<>();
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
this.uuid = uuid;
|
||||
@@ -49,6 +46,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@@ -68,6 +66,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("dateTime")
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@@ -95,6 +94,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map")
|
||||
public Map<String, Animal> getMap() {
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -24,10 +24,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Model200Response {
|
||||
|
||||
@JsonProperty("name")
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("class")
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
@@ -41,6 +39,7 @@ public class Model200Response {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -60,6 +59,7 @@ public class Model200Response {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("class")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
|
||||
@@ -23,13 +23,10 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelApiResponse {
|
||||
|
||||
@JsonProperty("code")
|
||||
private Integer code;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
@@ -43,6 +40,7 @@ public class ModelApiResponse {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@@ -62,6 +60,7 @@ public class ModelApiResponse {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@@ -81,6 +80,7 @@ public class ModelApiResponse {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelList {
|
||||
|
||||
@JsonProperty("123-list")
|
||||
private String _123list;
|
||||
|
||||
public ModelList _123list(String _123list) {
|
||||
@@ -37,6 +36,7 @@ public class ModelList {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("123-list")
|
||||
public String get123list() {
|
||||
return _123list;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelReturn {
|
||||
|
||||
@JsonProperty("return")
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
@@ -38,6 +37,7 @@ public class ModelReturn {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("return")
|
||||
public Integer getReturn() {
|
||||
return _return;
|
||||
}
|
||||
|
||||
@@ -22,16 +22,12 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Name {
|
||||
|
||||
@JsonProperty("name")
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("snake_case")
|
||||
private Integer snakeCase;
|
||||
|
||||
@JsonProperty("property")
|
||||
private String property;
|
||||
|
||||
@JsonProperty("123Number")
|
||||
private Integer _123number;
|
||||
|
||||
/**
|
||||
@@ -61,6 +57,7 @@ public class Name {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -80,6 +77,7 @@ public class Name {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
@JsonProperty("snake_case")
|
||||
public Integer getSnakeCase() {
|
||||
return snakeCase;
|
||||
}
|
||||
@@ -99,6 +97,7 @@ public class Name {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("property")
|
||||
public String getProperty() {
|
||||
return property;
|
||||
}
|
||||
@@ -118,6 +117,7 @@ public class Name {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
@JsonProperty("123Number")
|
||||
public Integer get123number() {
|
||||
return _123number;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class NumberOnly {
|
||||
|
||||
@JsonProperty("JustNumber")
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
@@ -36,6 +35,7 @@ public class NumberOnly {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("JustNumber")
|
||||
public BigDecimal getJustNumber() {
|
||||
return justNumber;
|
||||
}
|
||||
|
||||
@@ -24,16 +24,12 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Order {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("petId")
|
||||
private Long petId;
|
||||
|
||||
@JsonProperty("quantity")
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime shipDate;
|
||||
|
||||
@@ -74,10 +70,8 @@ public class Order {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
private StatusEnum status;
|
||||
|
||||
@JsonProperty("complete")
|
||||
private Boolean complete = false;
|
||||
|
||||
public Order id(Long id) {
|
||||
@@ -91,6 +85,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -110,6 +105,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
}
|
||||
@@ -129,6 +125,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
@@ -148,6 +145,7 @@ public class Order {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("shipDate")
|
||||
public OffsetDateTime getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
@@ -167,6 +165,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "Order Status")
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@@ -186,6 +185,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("complete")
|
||||
public Boolean getComplete() {
|
||||
return complete;
|
||||
}
|
||||
|
||||
@@ -22,13 +22,10 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class OuterComposite {
|
||||
|
||||
@JsonProperty("my_number")
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@JsonProperty("my_string")
|
||||
private String myString;
|
||||
|
||||
@JsonProperty("my_boolean")
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
@@ -42,6 +39,7 @@ public class OuterComposite {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("my_number")
|
||||
public BigDecimal getMyNumber() {
|
||||
return myNumber;
|
||||
}
|
||||
@@ -61,6 +59,7 @@ public class OuterComposite {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("my_string")
|
||||
public String getMyString() {
|
||||
return myString;
|
||||
}
|
||||
@@ -80,6 +79,7 @@ public class OuterComposite {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("my_boolean")
|
||||
public Boolean getMyBoolean() {
|
||||
return myBoolean;
|
||||
}
|
||||
|
||||
@@ -29,22 +29,17 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Pet {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
private Category category;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("photoUrls")
|
||||
@Valid
|
||||
private Set<String> photoUrls = new LinkedHashSet<>();
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<@Valid Tag> tags = null;
|
||||
private List<@Valid Tag> tags;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -83,7 +78,6 @@ public class Pet {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
private StatusEnum status;
|
||||
|
||||
/**
|
||||
@@ -114,6 +108,7 @@ public class Pet {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -133,6 +128,7 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
@@ -152,6 +148,7 @@ public class Pet {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -179,6 +176,7 @@ public class Pet {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("photoUrls")
|
||||
public Set<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
}
|
||||
@@ -207,6 +205,7 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("tags")
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
@@ -226,6 +225,7 @@ public class Pet {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "pet status in the store")
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ReadOnlyFirst {
|
||||
|
||||
@JsonProperty("bar")
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("baz")
|
||||
private String baz;
|
||||
|
||||
public ReadOnlyFirst bar(String bar) {
|
||||
@@ -38,6 +36,7 @@ public class ReadOnlyFirst {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
@JsonProperty("bar")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@@ -57,6 +56,7 @@ public class ReadOnlyFirst {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("baz")
|
||||
public String getBaz() {
|
||||
return baz;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
package org.openapitools.model;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.Objects;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ResponseObjectWithDifferentFieldNames
|
||||
*/
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ResponseObjectWithDifferentFieldNames {
|
||||
|
||||
private String normalPropertyName;
|
||||
|
||||
private String UPPER_CASE_PROPERTY_SNAKE;
|
||||
|
||||
private String lowerCasePropertyDashes;
|
||||
|
||||
private String propertyNameWithSpaces;
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) {
|
||||
this.normalPropertyName = normalPropertyName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get normalPropertyName
|
||||
* @return normalPropertyName
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("normalPropertyName")
|
||||
public String getNormalPropertyName() {
|
||||
return normalPropertyName;
|
||||
}
|
||||
|
||||
public void setNormalPropertyName(String normalPropertyName) {
|
||||
this.normalPropertyName = normalPropertyName;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
||||
this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get UPPER_CASE_PROPERTY_SNAKE
|
||||
* @return UPPER_CASE_PROPERTY_SNAKE
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("UPPER_CASE_PROPERTY_SNAKE")
|
||||
public String getUPPERCASEPROPERTYSNAKE() {
|
||||
return UPPER_CASE_PROPERTY_SNAKE;
|
||||
}
|
||||
|
||||
public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
||||
this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
||||
this.lowerCasePropertyDashes = lowerCasePropertyDashes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lowerCasePropertyDashes
|
||||
* @return lowerCasePropertyDashes
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("lower-case-property-dashes")
|
||||
public String getLowerCasePropertyDashes() {
|
||||
return lowerCasePropertyDashes;
|
||||
}
|
||||
|
||||
public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
||||
this.lowerCasePropertyDashes = lowerCasePropertyDashes;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) {
|
||||
this.propertyNameWithSpaces = propertyNameWithSpaces;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get propertyNameWithSpaces
|
||||
* @return propertyNameWithSpaces
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("property name with spaces")
|
||||
public String getPropertyNameWithSpaces() {
|
||||
return propertyNameWithSpaces;
|
||||
}
|
||||
|
||||
public void setPropertyNameWithSpaces(String propertyNameWithSpaces) {
|
||||
this.propertyNameWithSpaces = propertyNameWithSpaces;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ResponseObjectWithDifferentFieldNames responseObjectWithDifferentFieldNames = (ResponseObjectWithDifferentFieldNames) o;
|
||||
return Objects.equals(this.normalPropertyName, responseObjectWithDifferentFieldNames.normalPropertyName) &&
|
||||
Objects.equals(this.UPPER_CASE_PROPERTY_SNAKE, responseObjectWithDifferentFieldNames.UPPER_CASE_PROPERTY_SNAKE) &&
|
||||
Objects.equals(this.lowerCasePropertyDashes, responseObjectWithDifferentFieldNames.lowerCasePropertyDashes) &&
|
||||
Objects.equals(this.propertyNameWithSpaces, responseObjectWithDifferentFieldNames.propertyNameWithSpaces);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(normalPropertyName, UPPER_CASE_PROPERTY_SNAKE, lowerCasePropertyDashes, propertyNameWithSpaces);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ResponseObjectWithDifferentFieldNames {\n");
|
||||
sb.append(" normalPropertyName: ").append(toIndentedString(normalPropertyName)).append("\n");
|
||||
sb.append(" UPPER_CASE_PROPERTY_SNAKE: ").append(toIndentedString(UPPER_CASE_PROPERTY_SNAKE)).append("\n");
|
||||
sb.append(" lowerCasePropertyDashes: ").append(toIndentedString(lowerCasePropertyDashes)).append("\n");
|
||||
sb.append(" propertyNameWithSpaces: ").append(toIndentedString(propertyNameWithSpaces)).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(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,11 +19,10 @@ import javax.annotation.Generated;
|
||||
* SpecialModelName
|
||||
*/
|
||||
|
||||
@JsonTypeName("$special[model.name]")
|
||||
@JsonTypeName("_special_model.name_")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class SpecialModelName {
|
||||
|
||||
@JsonProperty("$special[property.name]")
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
@@ -37,6 +36,7 @@ public class SpecialModelName {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("$special[property.name]")
|
||||
public Long get$SpecialPropertyName() {
|
||||
return $specialPropertyName;
|
||||
}
|
||||
@@ -53,8 +53,8 @@ public class SpecialModelName {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
SpecialModelName $specialModelName = (SpecialModelName) o;
|
||||
return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName);
|
||||
SpecialModelName specialModelName = (SpecialModelName) o;
|
||||
return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -21,10 +21,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Tag {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public Tag id(Long id) {
|
||||
@@ -38,6 +36,7 @@ public class Tag {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -57,6 +56,7 @@ public class Tag {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -24,21 +24,16 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class TypeHolderDefault {
|
||||
|
||||
@JsonProperty("string_item")
|
||||
private String stringItem = "what";
|
||||
|
||||
@JsonProperty("number_item")
|
||||
private BigDecimal numberItem;
|
||||
private BigDecimal numberItem = new BigDecimal("1.234");
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
private Integer integerItem;
|
||||
private Integer integerItem = -2;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
private Boolean boolItem = true;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
@Valid
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
private List<Integer> arrayItem = new ArrayList<>(Arrays.asList(0, 1, 2, 3));
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
@@ -71,6 +66,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("string_item")
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
@@ -90,6 +86,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("number_item")
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
@@ -109,6 +106,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("integer_item")
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
@@ -128,6 +126,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("bool_item")
|
||||
public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
@@ -143,7 +142,7 @@ public class TypeHolderDefault {
|
||||
|
||||
public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
|
||||
if (this.arrayItem == null) {
|
||||
this.arrayItem = new ArrayList<>();
|
||||
this.arrayItem = new ArrayList<>(Arrays.asList(0, 1, 2, 3));
|
||||
}
|
||||
this.arrayItem.add(arrayItemItem);
|
||||
return this;
|
||||
@@ -155,6 +154,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("array_item")
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
@@ -24,22 +24,16 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class TypeHolderExample {
|
||||
|
||||
@JsonProperty("string_item")
|
||||
private String stringItem;
|
||||
|
||||
@JsonProperty("number_item")
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("float_item")
|
||||
private Float floatItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
private Boolean boolItem;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
@Valid
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
@@ -75,6 +69,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "what", required = true, value = "")
|
||||
@JsonProperty("string_item")
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
@@ -94,6 +89,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||
@JsonProperty("number_item")
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
@@ -113,6 +109,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||
@JsonProperty("float_item")
|
||||
public Float getFloatItem() {
|
||||
return floatItem;
|
||||
}
|
||||
@@ -132,6 +129,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "-2", required = true, value = "")
|
||||
@JsonProperty("integer_item")
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
@@ -151,6 +149,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "true", required = true, value = "")
|
||||
@JsonProperty("bool_item")
|
||||
public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
@@ -177,7 +176,8 @@ public class TypeHolderExample {
|
||||
* @return arrayItem
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
|
||||
@ApiModelProperty(example = "[0,1,2,3]", required = true, value = "")
|
||||
@JsonProperty("array_item")
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
@@ -21,28 +21,20 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class User {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("username")
|
||||
private String username;
|
||||
|
||||
@JsonProperty("firstName")
|
||||
private String firstName;
|
||||
|
||||
@JsonProperty("lastName")
|
||||
private String lastName;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("phone")
|
||||
private String phone;
|
||||
|
||||
@JsonProperty("userStatus")
|
||||
private Integer userStatus;
|
||||
|
||||
public User id(Long id) {
|
||||
@@ -56,6 +48,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -75,6 +68,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@@ -94,6 +88,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
@@ -113,6 +108,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
@@ -132,6 +128,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@@ -151,6 +148,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@@ -170,6 +168,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
@@ -189,6 +188,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "User Status")
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
}
|
||||
|
||||
@@ -24,101 +24,72 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class XmlItem {
|
||||
|
||||
@JsonProperty("attribute_string")
|
||||
private String attributeString;
|
||||
|
||||
@JsonProperty("attribute_number")
|
||||
private BigDecimal attributeNumber;
|
||||
|
||||
@JsonProperty("attribute_integer")
|
||||
private Integer attributeInteger;
|
||||
|
||||
@JsonProperty("attribute_boolean")
|
||||
private Boolean attributeBoolean;
|
||||
|
||||
@JsonProperty("wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> wrappedArray = null;
|
||||
private List<Integer> wrappedArray;
|
||||
|
||||
@JsonProperty("name_string")
|
||||
private String nameString;
|
||||
|
||||
@JsonProperty("name_number")
|
||||
private BigDecimal nameNumber;
|
||||
|
||||
@JsonProperty("name_integer")
|
||||
private Integer nameInteger;
|
||||
|
||||
@JsonProperty("name_boolean")
|
||||
private Boolean nameBoolean;
|
||||
|
||||
@JsonProperty("name_array")
|
||||
@Valid
|
||||
private List<Integer> nameArray = null;
|
||||
private List<Integer> nameArray;
|
||||
|
||||
@JsonProperty("name_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> nameWrappedArray = null;
|
||||
private List<Integer> nameWrappedArray;
|
||||
|
||||
@JsonProperty("prefix_string")
|
||||
private String prefixString;
|
||||
|
||||
@JsonProperty("prefix_number")
|
||||
private BigDecimal prefixNumber;
|
||||
|
||||
@JsonProperty("prefix_integer")
|
||||
private Integer prefixInteger;
|
||||
|
||||
@JsonProperty("prefix_boolean")
|
||||
private Boolean prefixBoolean;
|
||||
|
||||
@JsonProperty("prefix_array")
|
||||
@Valid
|
||||
private List<Integer> prefixArray = null;
|
||||
private List<Integer> prefixArray;
|
||||
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> prefixWrappedArray = null;
|
||||
private List<Integer> prefixWrappedArray;
|
||||
|
||||
@JsonProperty("namespace_string")
|
||||
private String namespaceString;
|
||||
|
||||
@JsonProperty("namespace_number")
|
||||
private BigDecimal namespaceNumber;
|
||||
|
||||
@JsonProperty("namespace_integer")
|
||||
private Integer namespaceInteger;
|
||||
|
||||
@JsonProperty("namespace_boolean")
|
||||
private Boolean namespaceBoolean;
|
||||
|
||||
@JsonProperty("namespace_array")
|
||||
@Valid
|
||||
private List<Integer> namespaceArray = null;
|
||||
private List<Integer> namespaceArray;
|
||||
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> namespaceWrappedArray = null;
|
||||
private List<Integer> namespaceWrappedArray;
|
||||
|
||||
@JsonProperty("prefix_ns_string")
|
||||
private String prefixNsString;
|
||||
|
||||
@JsonProperty("prefix_ns_number")
|
||||
private BigDecimal prefixNsNumber;
|
||||
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
private Integer prefixNsInteger;
|
||||
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
private Boolean prefixNsBoolean;
|
||||
|
||||
@JsonProperty("prefix_ns_array")
|
||||
@Valid
|
||||
private List<Integer> prefixNsArray = null;
|
||||
private List<Integer> prefixNsArray;
|
||||
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> prefixNsWrappedArray = null;
|
||||
private List<Integer> prefixNsWrappedArray;
|
||||
|
||||
public XmlItem attributeString(String attributeString) {
|
||||
this.attributeString = attributeString;
|
||||
@@ -131,6 +102,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
@JsonProperty("attribute_string")
|
||||
public String getAttributeString() {
|
||||
return attributeString;
|
||||
}
|
||||
@@ -150,6 +122,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("attribute_number")
|
||||
public BigDecimal getAttributeNumber() {
|
||||
return attributeNumber;
|
||||
}
|
||||
@@ -169,6 +142,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
@JsonProperty("attribute_integer")
|
||||
public Integer getAttributeInteger() {
|
||||
return attributeInteger;
|
||||
}
|
||||
@@ -188,6 +162,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
@JsonProperty("attribute_boolean")
|
||||
public Boolean getAttributeBoolean() {
|
||||
return attributeBoolean;
|
||||
}
|
||||
@@ -215,6 +190,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("wrapped_array")
|
||||
public List<Integer> getWrappedArray() {
|
||||
return wrappedArray;
|
||||
}
|
||||
@@ -234,6 +210,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
@JsonProperty("name_string")
|
||||
public String getNameString() {
|
||||
return nameString;
|
||||
}
|
||||
@@ -253,6 +230,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("name_number")
|
||||
public BigDecimal getNameNumber() {
|
||||
return nameNumber;
|
||||
}
|
||||
@@ -272,6 +250,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
@JsonProperty("name_integer")
|
||||
public Integer getNameInteger() {
|
||||
return nameInteger;
|
||||
}
|
||||
@@ -291,6 +270,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
@JsonProperty("name_boolean")
|
||||
public Boolean getNameBoolean() {
|
||||
return nameBoolean;
|
||||
}
|
||||
@@ -318,6 +298,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name_array")
|
||||
public List<Integer> getNameArray() {
|
||||
return nameArray;
|
||||
}
|
||||
@@ -345,6 +326,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("name_wrapped_array")
|
||||
public List<Integer> getNameWrappedArray() {
|
||||
return nameWrappedArray;
|
||||
}
|
||||
@@ -364,6 +346,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
@JsonProperty("prefix_string")
|
||||
public String getPrefixString() {
|
||||
return prefixString;
|
||||
}
|
||||
@@ -383,6 +366,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("prefix_number")
|
||||
public BigDecimal getPrefixNumber() {
|
||||
return prefixNumber;
|
||||
}
|
||||
@@ -402,6 +386,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
@JsonProperty("prefix_integer")
|
||||
public Integer getPrefixInteger() {
|
||||
return prefixInteger;
|
||||
}
|
||||
@@ -421,6 +406,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
@JsonProperty("prefix_boolean")
|
||||
public Boolean getPrefixBoolean() {
|
||||
return prefixBoolean;
|
||||
}
|
||||
@@ -448,6 +434,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("prefix_array")
|
||||
public List<Integer> getPrefixArray() {
|
||||
return prefixArray;
|
||||
}
|
||||
@@ -475,6 +462,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
public List<Integer> getPrefixWrappedArray() {
|
||||
return prefixWrappedArray;
|
||||
}
|
||||
@@ -494,6 +482,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
@JsonProperty("namespace_string")
|
||||
public String getNamespaceString() {
|
||||
return namespaceString;
|
||||
}
|
||||
@@ -513,6 +502,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("namespace_number")
|
||||
public BigDecimal getNamespaceNumber() {
|
||||
return namespaceNumber;
|
||||
}
|
||||
@@ -532,6 +522,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
@JsonProperty("namespace_integer")
|
||||
public Integer getNamespaceInteger() {
|
||||
return namespaceInteger;
|
||||
}
|
||||
@@ -551,6 +542,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
@JsonProperty("namespace_boolean")
|
||||
public Boolean getNamespaceBoolean() {
|
||||
return namespaceBoolean;
|
||||
}
|
||||
@@ -578,6 +570,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("namespace_array")
|
||||
public List<Integer> getNamespaceArray() {
|
||||
return namespaceArray;
|
||||
}
|
||||
@@ -605,6 +598,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
public List<Integer> getNamespaceWrappedArray() {
|
||||
return namespaceWrappedArray;
|
||||
}
|
||||
@@ -624,6 +618,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "string", value = "")
|
||||
@JsonProperty("prefix_ns_string")
|
||||
public String getPrefixNsString() {
|
||||
return prefixNsString;
|
||||
}
|
||||
@@ -643,6 +638,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("prefix_ns_number")
|
||||
public BigDecimal getPrefixNsNumber() {
|
||||
return prefixNsNumber;
|
||||
}
|
||||
@@ -662,6 +658,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "-2", value = "")
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
public Integer getPrefixNsInteger() {
|
||||
return prefixNsInteger;
|
||||
}
|
||||
@@ -681,6 +678,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(example = "true", value = "")
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
public Boolean getPrefixNsBoolean() {
|
||||
return prefixNsBoolean;
|
||||
}
|
||||
@@ -708,6 +706,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("prefix_ns_array")
|
||||
public List<Integer> getPrefixNsArray() {
|
||||
return prefixNsArray;
|
||||
}
|
||||
@@ -735,6 +734,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
public List<Integer> getPrefixNsWrappedArray() {
|
||||
return prefixNsWrappedArray;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user