forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 6.0.x
This commit is contained in:
@@ -41,6 +41,7 @@ src/main/java/org/openapitools/model/DogAllOf.java
|
||||
src/main/java/org/openapitools/model/EnumArrays.java
|
||||
src/main/java/org/openapitools/model/EnumClass.java
|
||||
src/main/java/org/openapitools/model/EnumTest.java
|
||||
src/main/java/org/openapitools/model/File.java
|
||||
src/main/java/org/openapitools/model/FileSchemaTestClass.java
|
||||
src/main/java/org/openapitools/model/FormatTest.java
|
||||
src/main/java/org/openapitools/model/HasOnlyReadOnly.java
|
||||
@@ -48,6 +49,7 @@ src/main/java/org/openapitools/model/MapTest.java
|
||||
src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java
|
||||
src/main/java/org/openapitools/model/Model200Response.java
|
||||
src/main/java/org/openapitools/model/ModelApiResponse.java
|
||||
src/main/java/org/openapitools/model/ModelList.java
|
||||
src/main/java/org/openapitools/model/ModelReturn.java
|
||||
src/main/java/org/openapitools/model/Name.java
|
||||
src/main/java/org/openapitools/model/NumberOnly.java
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
<java.version>1.8</java.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
<swagger-core-version>2.1.11</swagger-core-version>
|
||||
<springdoc.version>1.6.4</springdoc.version>
|
||||
</properties>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.5.8</version>
|
||||
<version>2.6.2</version>
|
||||
</parent>
|
||||
<build>
|
||||
<sourceDirectory>src/main/java</sourceDirectory>
|
||||
@@ -34,10 +34,11 @@
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-commons</artifactId>
|
||||
</dependency>
|
||||
<!--SpringDoc dependencies -->
|
||||
<dependency>
|
||||
<groupId>io.swagger.core.v3</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>${swagger-core-version}</version>
|
||||
<groupId>org.springdoc</groupId>
|
||||
<artifactId>springdoc-openapi-ui</artifactId>
|
||||
<version>${springdoc.version}</version>
|
||||
</dependency>
|
||||
<!-- @Nullable annotation -->
|
||||
<dependency>
|
||||
|
||||
@@ -27,7 +27,9 @@ import javax.validation.constraints.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "another-fake", description = "the another-fake API")
|
||||
public interface AnotherFakeApi {
|
||||
@@ -44,6 +46,7 @@ public interface AnotherFakeApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "call123testSpecialTags",
|
||||
summary = "To test special tags",
|
||||
tags = { "$another-fake?" },
|
||||
responses = {
|
||||
|
||||
@@ -2,16 +2,19 @@ package org.openapitools.api;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.context.request.NativeWebRequest;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class AnotherFakeApiController implements AnotherFakeApi {
|
||||
|
||||
private final NativeWebRequest request;
|
||||
|
||||
@org.springframework.beans.factory.annotation.Autowired
|
||||
@Autowired
|
||||
public AnotherFakeApiController(NativeWebRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
@@ -7,12 +7,14 @@ package org.openapitools.api;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.openapitools.model.Client;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.openapitools.model.FileSchemaTestClass;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Map;
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import java.time.OffsetDateTime;
|
||||
import org.openapitools.model.OuterComposite;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.openapitools.model.User;
|
||||
import org.openapitools.model.XmlItem;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -36,7 +38,9 @@ import javax.validation.constraints.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "fake", description = "the fake API")
|
||||
public interface FakeApi {
|
||||
@@ -53,6 +57,7 @@ public interface FakeApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "createXmlItem",
|
||||
summary = "creates an XmlItem",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@@ -80,7 +85,7 @@ public interface FakeApi {
|
||||
* @return Output boolean (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
summary = "",
|
||||
operationId = "fakeOuterBooleanSerialize",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "Output boolean", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Boolean.class)))
|
||||
@@ -107,7 +112,7 @@ public interface FakeApi {
|
||||
* @return Output composite (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
summary = "",
|
||||
operationId = "fakeOuterCompositeSerialize",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "Output composite", content = @Content(mediaType = "application/json", schema = @Schema(implementation = OuterComposite.class)))
|
||||
@@ -143,7 +148,7 @@ public interface FakeApi {
|
||||
* @return Output number (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
summary = "",
|
||||
operationId = "fakeOuterNumberSerialize",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "Output number", content = @Content(mediaType = "application/json", schema = @Schema(implementation = BigDecimal.class)))
|
||||
@@ -170,7 +175,7 @@ public interface FakeApi {
|
||||
* @return Output string (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
summary = "",
|
||||
operationId = "fakeOuterStringSerialize",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "Output string", content = @Content(mediaType = "application/json", schema = @Schema(implementation = String.class)))
|
||||
@@ -197,7 +202,7 @@ public interface FakeApi {
|
||||
* @return Success (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
summary = "",
|
||||
operationId = "testBodyWithFileSchema",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "Success")
|
||||
@@ -224,7 +229,7 @@ public interface FakeApi {
|
||||
* @return Success (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
summary = "",
|
||||
operationId = "testBodyWithQueryParams",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "Success")
|
||||
@@ -252,6 +257,7 @@ public interface FakeApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "testClientModel",
|
||||
summary = "To test \"client\" model",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@@ -303,6 +309,7 @@ public interface FakeApi {
|
||||
* or User not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "testEndpointParameters",
|
||||
summary = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@@ -329,8 +336,8 @@ public interface FakeApi {
|
||||
@Parameter(name = "float", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "float", required = false) Float _float,
|
||||
@Parameter(name = "string", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "string", required = false) String string,
|
||||
@Parameter(name = "binary", description = "None", schema = @Schema(description = "")) @RequestPart(value = "binary", required = false) MultipartFile binary,
|
||||
@Parameter(name = "date", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "date", required = false) @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE) LocalDate date,
|
||||
@Parameter(name = "dateTime", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "dateTime", required = false) @org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME) OffsetDateTime dateTime,
|
||||
@Parameter(name = "date", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "date", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date,
|
||||
@Parameter(name = "dateTime", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "dateTime", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) OffsetDateTime dateTime,
|
||||
@Parameter(name = "password", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "password", required = false) String password,
|
||||
@Parameter(name = "callback", description = "None", schema = @Schema(description = "")) @Valid @RequestPart(value = "callback", required = false) String paramCallback
|
||||
) {
|
||||
@@ -355,6 +362,7 @@ public interface FakeApi {
|
||||
* or Not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "testEnumParameters",
|
||||
summary = "To test enum parameters",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@@ -395,6 +403,7 @@ public interface FakeApi {
|
||||
* @return Someting wrong (status code 400)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "testGroupParameters",
|
||||
summary = "Fake endpoint to test group parameters (optional)",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@@ -425,6 +434,7 @@ public interface FakeApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "testInlineAdditionalProperties",
|
||||
summary = "test inline additionalProperties",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@@ -452,6 +462,7 @@ public interface FakeApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "testJsonFormData",
|
||||
summary = "test json serialization of form data",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@@ -484,7 +495,7 @@ public interface FakeApi {
|
||||
* @return Success (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
summary = "",
|
||||
operationId = "testQueryParameterCollectionFormat",
|
||||
tags = { "fake" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "Success")
|
||||
@@ -515,6 +526,7 @@ public interface FakeApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "uploadFileWithRequiredFile",
|
||||
summary = "uploads an image (required)",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
|
||||
@@ -2,16 +2,19 @@ package org.openapitools.api;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.context.request.NativeWebRequest;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class FakeApiController implements FakeApi {
|
||||
|
||||
private final NativeWebRequest request;
|
||||
|
||||
@org.springframework.beans.factory.annotation.Autowired
|
||||
@Autowired
|
||||
public FakeApiController(NativeWebRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,9 @@ import javax.validation.constraints.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "fake_classname_test", description = "the fake_classname_test API")
|
||||
public interface FakeClassnameTestApi {
|
||||
@@ -44,6 +46,7 @@ public interface FakeClassnameTestApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "testClassname",
|
||||
summary = "To test class name in snake case",
|
||||
tags = { "fake_classname_tags 123#$%^" },
|
||||
responses = {
|
||||
|
||||
@@ -2,16 +2,19 @@ package org.openapitools.api;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.context.request.NativeWebRequest;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class FakeClassnameTestApiController implements FakeClassnameTestApi {
|
||||
|
||||
private final NativeWebRequest request;
|
||||
|
||||
@org.springframework.beans.factory.annotation.Autowired
|
||||
@Autowired
|
||||
public FakeClassnameTestApiController(NativeWebRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ package org.openapitools.api;
|
||||
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import org.openapitools.model.Pet;
|
||||
import org.springframework.core.io.Resource;
|
||||
import java.util.Set;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
@@ -29,7 +30,9 @@ import javax.validation.constraints.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "pet", description = "the pet API")
|
||||
public interface PetApi {
|
||||
@@ -46,6 +49,7 @@ public interface PetApi {
|
||||
* or Invalid input (status code 405)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "addPet",
|
||||
summary = "Add a new pet to the store",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@@ -78,6 +82,7 @@ public interface PetApi {
|
||||
* or Invalid pet value (status code 400)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "deletePet",
|
||||
summary = "Deletes a pet",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@@ -110,6 +115,7 @@ public interface PetApi {
|
||||
* or Invalid status value (status code 400)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "findPetsByStatus",
|
||||
summary = "Finds Pets by status",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@@ -157,6 +163,7 @@ public interface PetApi {
|
||||
* @deprecated
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "findPetsByTags",
|
||||
summary = "Finds Pets by tags",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@@ -204,6 +211,7 @@ public interface PetApi {
|
||||
* or Pet not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "getPetById",
|
||||
summary = "Find pet by ID",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@@ -252,6 +260,7 @@ public interface PetApi {
|
||||
* or Validation exception (status code 405)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "updatePet",
|
||||
summary = "Update an existing pet",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@@ -286,6 +295,7 @@ public interface PetApi {
|
||||
* @return Invalid input (status code 405)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "updatePetWithForm",
|
||||
summary = "Updates a pet in the store with form data",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@@ -319,6 +329,7 @@ public interface PetApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "uploadFile",
|
||||
summary = "uploads an image",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
|
||||
@@ -2,16 +2,19 @@ package org.openapitools.api;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.context.request.NativeWebRequest;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class PetApiController implements PetApi {
|
||||
|
||||
private final NativeWebRequest request;
|
||||
|
||||
@org.springframework.beans.factory.annotation.Autowired
|
||||
@Autowired
|
||||
public PetApiController(NativeWebRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,9 @@ import javax.validation.constraints.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "store", description = "the store API")
|
||||
public interface StoreApi {
|
||||
@@ -46,6 +48,7 @@ public interface StoreApi {
|
||||
* or Order not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "deleteOrder",
|
||||
summary = "Delete purchase order by ID",
|
||||
tags = { "store" },
|
||||
responses = {
|
||||
@@ -72,6 +75,7 @@ public interface StoreApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "getInventory",
|
||||
summary = "Returns pet inventories by status",
|
||||
tags = { "store" },
|
||||
responses = {
|
||||
@@ -104,6 +108,7 @@ public interface StoreApi {
|
||||
* or Order not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "getOrderById",
|
||||
summary = "Find purchase order by ID",
|
||||
tags = { "store" },
|
||||
responses = {
|
||||
@@ -147,6 +152,7 @@ public interface StoreApi {
|
||||
* or Invalid Order (status code 400)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "placeOrder",
|
||||
summary = "Place an order for a pet",
|
||||
tags = { "store" },
|
||||
responses = {
|
||||
|
||||
@@ -2,16 +2,19 @@ package org.openapitools.api;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.context.request.NativeWebRequest;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class StoreApiController implements StoreApi {
|
||||
|
||||
private final NativeWebRequest request;
|
||||
|
||||
@org.springframework.beans.factory.annotation.Autowired
|
||||
@Autowired
|
||||
public StoreApiController(NativeWebRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,9 @@ import javax.validation.constraints.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Validated
|
||||
@Tag(name = "user", description = "the user API")
|
||||
public interface UserApi {
|
||||
@@ -46,6 +48,7 @@ public interface UserApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "createUser",
|
||||
summary = "Create user",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
@@ -71,6 +74,7 @@ public interface UserApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "createUsersWithArrayInput",
|
||||
summary = "Creates list of users with given input array",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
@@ -96,6 +100,7 @@ public interface UserApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "createUsersWithListInput",
|
||||
summary = "Creates list of users with given input array",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
@@ -123,6 +128,7 @@ public interface UserApi {
|
||||
* or User not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "deleteUser",
|
||||
summary = "Delete user",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
@@ -151,6 +157,7 @@ public interface UserApi {
|
||||
* or User not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "getUserByName",
|
||||
summary = "Get user by user name",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
@@ -195,6 +202,7 @@ public interface UserApi {
|
||||
* or Invalid username/password supplied (status code 400)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "loginUser",
|
||||
summary = "Logs user into the system",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
@@ -222,6 +230,7 @@ public interface UserApi {
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "logoutUser",
|
||||
summary = "Logs out current logged in user session",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
@@ -250,6 +259,7 @@ public interface UserApi {
|
||||
* or User not found (status code 404)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "updateUser",
|
||||
summary = "Updated user",
|
||||
tags = { "user" },
|
||||
responses = {
|
||||
|
||||
@@ -2,16 +2,19 @@ package org.openapitools.api;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.context.request.NativeWebRequest;
|
||||
import java.util.Optional;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
import javax.annotation.Generated;
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@Controller
|
||||
@RequestMapping("${openapi.openAPIPetstore.base-path:/v2}")
|
||||
public class UserApiController implements UserApi {
|
||||
|
||||
private final NativeWebRequest request;
|
||||
|
||||
@org.springframework.beans.factory.annotation.Autowired
|
||||
@Autowired
|
||||
public UserApiController(NativeWebRequest request) {
|
||||
this.request = request;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package org.openapitools.configuration;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.util.StreamUtils;
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesAnyType
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -32,9 +35,8 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -43,7 +45,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesArray
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -33,9 +36,8 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -44,7 +46,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesBoolean
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -32,9 +35,8 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -43,7 +45,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -16,12 +16,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesClass
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty("map_string")
|
||||
@Valid
|
||||
private Map<String, String> mapString = null;
|
||||
@@ -80,9 +83,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapString
|
||||
* @return mapString
|
||||
*/
|
||||
@Schema(name = "mapString", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "map_string", required = false)
|
||||
public Map<String, String> getMapString() {
|
||||
return mapString;
|
||||
}
|
||||
@@ -108,10 +110,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapNumber
|
||||
* @return mapNumber
|
||||
*/
|
||||
@Schema(name = "mapNumber", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "map_number", required = false)
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
}
|
||||
@@ -137,9 +137,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapInteger
|
||||
* @return mapInteger
|
||||
*/
|
||||
@Schema(name = "mapInteger", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "map_integer", required = false)
|
||||
public Map<String, Integer> getMapInteger() {
|
||||
return mapInteger;
|
||||
}
|
||||
@@ -165,9 +164,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapBoolean
|
||||
* @return mapBoolean
|
||||
*/
|
||||
@Schema(name = "mapBoolean", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "map_boolean", required = false)
|
||||
public Map<String, Boolean> getMapBoolean() {
|
||||
return mapBoolean;
|
||||
}
|
||||
@@ -193,10 +191,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapArrayInteger
|
||||
* @return mapArrayInteger
|
||||
*/
|
||||
@Schema(name = "mapArrayInteger", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "map_array_integer", required = false)
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
}
|
||||
@@ -222,10 +218,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapArrayAnytype
|
||||
* @return mapArrayAnytype
|
||||
*/
|
||||
@Schema(name = "mapArrayAnytype", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "map_array_anytype", required = false)
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
}
|
||||
@@ -251,10 +245,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapMapString
|
||||
* @return mapMapString
|
||||
*/
|
||||
@Schema(name = "mapMapString", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "map_map_string", required = false)
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
}
|
||||
@@ -280,10 +272,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get mapMapAnytype
|
||||
* @return mapMapAnytype
|
||||
*/
|
||||
@Schema(name = "mapMapAnytype", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "map_map_anytype", required = false)
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
}
|
||||
@@ -301,9 +291,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get anytype1
|
||||
* @return anytype1
|
||||
*/
|
||||
@Schema(name = "anytype1", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "anytype_1", required = false)
|
||||
public Object getAnytype1() {
|
||||
return anytype1;
|
||||
}
|
||||
@@ -321,9 +310,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get anytype2
|
||||
* @return anytype2
|
||||
*/
|
||||
@Schema(name = "anytype2", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "anytype_2", required = false)
|
||||
public Object getAnytype2() {
|
||||
return anytype2;
|
||||
}
|
||||
@@ -341,9 +329,8 @@ public class AdditionalPropertiesClass {
|
||||
* Get anytype3
|
||||
* @return anytype3
|
||||
*/
|
||||
@Schema(name = "anytype3", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "anytype_3", required = false)
|
||||
public Object getAnytype3() {
|
||||
return anytype3;
|
||||
}
|
||||
@@ -352,7 +339,6 @@ public class AdditionalPropertiesClass {
|
||||
this.anytype3 = anytype3;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -384,7 +370,6 @@ public class AdditionalPropertiesClass {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AdditionalPropertiesClass {\n");
|
||||
|
||||
sb.append(" mapString: ").append(toIndentedString(mapString)).append("\n");
|
||||
sb.append(" mapNumber: ").append(toIndentedString(mapNumber)).append("\n");
|
||||
sb.append(" mapInteger: ").append(toIndentedString(mapInteger)).append("\n");
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesInteger
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -32,9 +35,8 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -43,7 +45,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesNumber
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -33,9 +36,8 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -44,7 +46,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesObject
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -32,9 +35,8 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -43,7 +45,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* AdditionalPropertiesString
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@@ -32,9 +35,8 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -43,7 +45,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -14,19 +14,21 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Animal
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
})
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Animal {
|
||||
|
||||
@JsonProperty("className")
|
||||
private String className;
|
||||
|
||||
@@ -42,10 +44,8 @@ public class Animal {
|
||||
* Get className
|
||||
* @return className
|
||||
*/
|
||||
@Schema(name = "className", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "className", required = true)
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
@@ -63,9 +63,8 @@ public class Animal {
|
||||
* Get color
|
||||
* @return color
|
||||
*/
|
||||
@Schema(name = "color", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "color", required = false)
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
@@ -74,7 +73,6 @@ public class Animal {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -97,7 +95,6 @@ public class Animal {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Animal {\n");
|
||||
|
||||
sb.append(" className: ").append(toIndentedString(className)).append("\n");
|
||||
sb.append(" color: ").append(toIndentedString(color)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ArrayOfArrayOfNumberOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
@Valid
|
||||
private List<List<BigDecimal>> arrayArrayNumber = null;
|
||||
@@ -42,10 +45,8 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
* Get arrayArrayNumber
|
||||
* @return arrayArrayNumber
|
||||
*/
|
||||
@Schema(name = "arrayArrayNumber", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "ArrayArrayNumber", required = false)
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
}
|
||||
@@ -54,7 +55,6 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
this.arrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -76,7 +76,6 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ArrayOfArrayOfNumberOnly {\n");
|
||||
|
||||
sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ArrayOfNumberOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty("ArrayNumber")
|
||||
@Valid
|
||||
private List<BigDecimal> arrayNumber = null;
|
||||
@@ -42,10 +45,8 @@ public class ArrayOfNumberOnly {
|
||||
* Get arrayNumber
|
||||
* @return arrayNumber
|
||||
*/
|
||||
@Schema(name = "arrayNumber", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "ArrayNumber", required = false)
|
||||
public List<BigDecimal> getArrayNumber() {
|
||||
return arrayNumber;
|
||||
}
|
||||
@@ -54,7 +55,6 @@ public class ArrayOfNumberOnly {
|
||||
this.arrayNumber = arrayNumber;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -76,7 +76,6 @@ public class ArrayOfNumberOnly {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ArrayOfNumberOnly {\n");
|
||||
|
||||
sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ArrayTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayTest {
|
||||
|
||||
@JsonProperty("array_of_string")
|
||||
@Valid
|
||||
private List<String> arrayOfString = null;
|
||||
@@ -50,9 +53,8 @@ public class ArrayTest {
|
||||
* Get arrayOfString
|
||||
* @return arrayOfString
|
||||
*/
|
||||
@Schema(name = "arrayOfString", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "array_of_string", required = false)
|
||||
public List<String> getArrayOfString() {
|
||||
return arrayOfString;
|
||||
}
|
||||
@@ -78,10 +80,8 @@ public class ArrayTest {
|
||||
* Get arrayArrayOfInteger
|
||||
* @return arrayArrayOfInteger
|
||||
*/
|
||||
@Schema(name = "arrayArrayOfInteger", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "array_array_of_integer", required = false)
|
||||
public List<List<Long>> getArrayArrayOfInteger() {
|
||||
return arrayArrayOfInteger;
|
||||
}
|
||||
@@ -107,10 +107,8 @@ public class ArrayTest {
|
||||
* Get arrayArrayOfModel
|
||||
* @return arrayArrayOfModel
|
||||
*/
|
||||
@Schema(name = "arrayArrayOfModel", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "array_array_of_model", required = false)
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
}
|
||||
@@ -119,7 +117,6 @@ public class ArrayTest {
|
||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -143,7 +140,6 @@ public class ArrayTest {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ArrayTest {\n");
|
||||
|
||||
sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
|
||||
sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
|
||||
sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n");
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* BigCat
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class BigCat extends Cat {
|
||||
|
||||
/**
|
||||
* Gets or Sets kind
|
||||
*/
|
||||
@@ -72,9 +75,8 @@ public class BigCat extends Cat {
|
||||
* Get kind
|
||||
* @return kind
|
||||
*/
|
||||
@Schema(name = "kind", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "kind", required = false)
|
||||
public KindEnum getKind() {
|
||||
return kind;
|
||||
}
|
||||
@@ -83,7 +85,6 @@ public class BigCat extends Cat {
|
||||
this.kind = kind;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -13,12 +13,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* BigCatAllOf
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class BigCatAllOf {
|
||||
|
||||
/**
|
||||
* Gets or Sets kind
|
||||
*/
|
||||
@@ -70,9 +73,8 @@ public class BigCatAllOf {
|
||||
* Get kind
|
||||
* @return kind
|
||||
*/
|
||||
@Schema(name = "kind", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "kind", required = false)
|
||||
public KindEnum getKind() {
|
||||
return kind;
|
||||
}
|
||||
@@ -81,7 +83,6 @@ public class BigCatAllOf {
|
||||
this.kind = kind;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -103,7 +104,6 @@ public class BigCatAllOf {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class BigCatAllOf {\n");
|
||||
|
||||
sb.append(" kind: ").append(toIndentedString(kind)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Capitalization
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Capitalization {
|
||||
|
||||
@JsonProperty("smallCamel")
|
||||
private String smallCamel;
|
||||
|
||||
@@ -45,9 +48,8 @@ public class Capitalization {
|
||||
* Get smallCamel
|
||||
* @return smallCamel
|
||||
*/
|
||||
@Schema(name = "smallCamel", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "smallCamel", required = false)
|
||||
public String getSmallCamel() {
|
||||
return smallCamel;
|
||||
}
|
||||
@@ -65,9 +67,8 @@ public class Capitalization {
|
||||
* Get capitalCamel
|
||||
* @return capitalCamel
|
||||
*/
|
||||
@Schema(name = "capitalCamel", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "CapitalCamel", required = false)
|
||||
public String getCapitalCamel() {
|
||||
return capitalCamel;
|
||||
}
|
||||
@@ -85,9 +86,8 @@ public class Capitalization {
|
||||
* Get smallSnake
|
||||
* @return smallSnake
|
||||
*/
|
||||
@Schema(name = "smallSnake", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "small_Snake", required = false)
|
||||
public String getSmallSnake() {
|
||||
return smallSnake;
|
||||
}
|
||||
@@ -105,9 +105,8 @@ public class Capitalization {
|
||||
* Get capitalSnake
|
||||
* @return capitalSnake
|
||||
*/
|
||||
@Schema(name = "capitalSnake", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "Capital_Snake", required = false)
|
||||
public String getCapitalSnake() {
|
||||
return capitalSnake;
|
||||
}
|
||||
@@ -125,9 +124,8 @@ public class Capitalization {
|
||||
* Get scAETHFlowPoints
|
||||
* @return scAETHFlowPoints
|
||||
*/
|
||||
@Schema(name = "scAETHFlowPoints", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "SCA_ETH_Flow_Points", required = false)
|
||||
public String getScAETHFlowPoints() {
|
||||
return scAETHFlowPoints;
|
||||
}
|
||||
@@ -145,9 +143,8 @@ public class Capitalization {
|
||||
* Name of the pet
|
||||
* @return ATT_NAME
|
||||
*/
|
||||
@Schema(name = "ATT_NAME", defaultValue = "Name of the pet ")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "ATT_NAME", description = "Name of the pet ", required = false)
|
||||
public String getATTNAME() {
|
||||
return ATT_NAME;
|
||||
}
|
||||
@@ -156,7 +153,6 @@ public class Capitalization {
|
||||
this.ATT_NAME = ATT_NAME;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -183,7 +179,6 @@ public class Capitalization {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Capitalization {\n");
|
||||
|
||||
sb.append(" smallCamel: ").append(toIndentedString(smallCamel)).append("\n");
|
||||
sb.append(" capitalCamel: ").append(toIndentedString(capitalCamel)).append("\n");
|
||||
sb.append(" smallSnake: ").append(toIndentedString(smallSnake)).append("\n");
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Cat
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Cat extends Animal {
|
||||
|
||||
@JsonProperty("declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
@@ -32,9 +35,8 @@ public class Cat extends Animal {
|
||||
* Get declawed
|
||||
* @return declawed
|
||||
*/
|
||||
@Schema(name = "declawed", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "declawed", required = false)
|
||||
public Boolean getDeclawed() {
|
||||
return declawed;
|
||||
}
|
||||
@@ -43,7 +45,6 @@ public class Cat extends Animal {
|
||||
this.declawed = declawed;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* CatAllOf
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class CatAllOf {
|
||||
|
||||
@JsonProperty("declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
@@ -30,9 +33,8 @@ public class CatAllOf {
|
||||
* Get declawed
|
||||
* @return declawed
|
||||
*/
|
||||
@Schema(name = "declawed", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "declawed", required = false)
|
||||
public Boolean getDeclawed() {
|
||||
return declawed;
|
||||
}
|
||||
@@ -41,7 +43,6 @@ public class CatAllOf {
|
||||
this.declawed = declawed;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -63,7 +64,6 @@ public class CatAllOf {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class CatAllOf {\n");
|
||||
|
||||
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Category
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Category {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@@ -33,9 +36,8 @@ public class Category {
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
@Schema(name = "id", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "id", required = false)
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -53,10 +55,8 @@ public class Category {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "name", required = true)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -65,7 +65,6 @@ public class Category {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -88,7 +87,6 @@ public class Category {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Category {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -12,13 +12,16 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Model for testing model with \"_class\" property
|
||||
*/
|
||||
@Schema(name = "ClassModel",description = "Model for testing model with \"_class\" property")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Schema(name = "ClassModel", description = "Model for testing model with \"_class\" property")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ClassModel {
|
||||
|
||||
@JsonProperty("_class")
|
||||
private String propertyClass;
|
||||
|
||||
@@ -31,9 +34,8 @@ public class ClassModel {
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
*/
|
||||
@Schema(name = "propertyClass", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "_class", required = false)
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
@@ -42,7 +44,6 @@ public class ClassModel {
|
||||
this.propertyClass = propertyClass;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -64,7 +65,6 @@ public class ClassModel {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ClassModel {\n");
|
||||
|
||||
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Client
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Client {
|
||||
|
||||
@JsonProperty("client")
|
||||
private String client;
|
||||
|
||||
@@ -30,9 +33,8 @@ public class Client {
|
||||
* Get client
|
||||
* @return client
|
||||
*/
|
||||
@Schema(name = "client", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "client", required = false)
|
||||
public String getClient() {
|
||||
return client;
|
||||
}
|
||||
@@ -41,7 +43,6 @@ public class Client {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -63,7 +64,6 @@ public class Client {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Client {\n");
|
||||
|
||||
sb.append(" client: ").append(toIndentedString(client)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Dog
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Dog extends Animal {
|
||||
|
||||
@JsonProperty("breed")
|
||||
private String breed;
|
||||
|
||||
@@ -32,9 +35,8 @@ public class Dog extends Animal {
|
||||
* Get breed
|
||||
* @return breed
|
||||
*/
|
||||
@Schema(name = "breed", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "breed", required = false)
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
}
|
||||
@@ -43,7 +45,6 @@ public class Dog extends Animal {
|
||||
this.breed = breed;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* DogAllOf
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class DogAllOf {
|
||||
|
||||
@JsonProperty("breed")
|
||||
private String breed;
|
||||
|
||||
@@ -30,9 +33,8 @@ public class DogAllOf {
|
||||
* Get breed
|
||||
* @return breed
|
||||
*/
|
||||
@Schema(name = "breed", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "breed", required = false)
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
}
|
||||
@@ -41,7 +43,6 @@ public class DogAllOf {
|
||||
this.breed = breed;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -63,7 +64,6 @@ public class DogAllOf {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DogAllOf {\n");
|
||||
|
||||
sb.append(" breed: ").append(toIndentedString(breed)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* EnumArrays
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class EnumArrays {
|
||||
|
||||
/**
|
||||
* Gets or Sets justSymbol
|
||||
*/
|
||||
@@ -107,9 +110,8 @@ public class EnumArrays {
|
||||
* Get justSymbol
|
||||
* @return justSymbol
|
||||
*/
|
||||
@Schema(name = "justSymbol", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "just_symbol", required = false)
|
||||
public JustSymbolEnum getJustSymbol() {
|
||||
return justSymbol;
|
||||
}
|
||||
@@ -135,9 +137,8 @@ public class EnumArrays {
|
||||
* Get arrayEnum
|
||||
* @return arrayEnum
|
||||
*/
|
||||
@Schema(name = "arrayEnum", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "array_enum", required = false)
|
||||
public List<ArrayEnumEnum> getArrayEnum() {
|
||||
return arrayEnum;
|
||||
}
|
||||
@@ -146,7 +147,6 @@ public class EnumArrays {
|
||||
this.arrayEnum = arrayEnum;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -169,7 +169,6 @@ public class EnumArrays {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class EnumArrays {\n");
|
||||
|
||||
sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n");
|
||||
sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -11,6 +11,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
@@ -18,6 +19,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
/**
|
||||
* Gets or Sets EnumClass
|
||||
*/
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public enum EnumClass {
|
||||
|
||||
_ABC("_abc"),
|
||||
|
||||
@@ -14,12 +14,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* EnumTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class EnumTest {
|
||||
|
||||
/**
|
||||
* Gets or Sets enumString
|
||||
*/
|
||||
@@ -188,9 +191,8 @@ public class EnumTest {
|
||||
* Get enumString
|
||||
* @return enumString
|
||||
*/
|
||||
@Schema(name = "enumString", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "enum_string", required = false)
|
||||
public EnumStringEnum getEnumString() {
|
||||
return enumString;
|
||||
}
|
||||
@@ -208,10 +210,8 @@ public class EnumTest {
|
||||
* Get enumStringRequired
|
||||
* @return enumStringRequired
|
||||
*/
|
||||
@Schema(name = "enumStringRequired", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "enum_string_required", required = true)
|
||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
return enumStringRequired;
|
||||
}
|
||||
@@ -229,9 +229,8 @@ public class EnumTest {
|
||||
* Get enumInteger
|
||||
* @return enumInteger
|
||||
*/
|
||||
@Schema(name = "enumInteger", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "enum_integer", required = false)
|
||||
public EnumIntegerEnum getEnumInteger() {
|
||||
return enumInteger;
|
||||
}
|
||||
@@ -249,9 +248,8 @@ public class EnumTest {
|
||||
* Get enumNumber
|
||||
* @return enumNumber
|
||||
*/
|
||||
@Schema(name = "enumNumber", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "enum_number", required = false)
|
||||
public EnumNumberEnum getEnumNumber() {
|
||||
return enumNumber;
|
||||
}
|
||||
@@ -269,10 +267,8 @@ public class EnumTest {
|
||||
* Get outerEnum
|
||||
* @return outerEnum
|
||||
*/
|
||||
@Schema(name = "outerEnum", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "outerEnum", required = false)
|
||||
public OuterEnum getOuterEnum() {
|
||||
return outerEnum;
|
||||
}
|
||||
@@ -281,7 +277,6 @@ public class EnumTest {
|
||||
this.outerEnum = outerEnum;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -307,7 +302,6 @@ public class EnumTest {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class EnumTest {\n");
|
||||
|
||||
sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
|
||||
sb.append(" enumStringRequired: ").append(toIndentedString(enumStringRequired)).append("\n");
|
||||
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
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 org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Must be named `File` for test.
|
||||
*/
|
||||
|
||||
@Schema(name = "File", description = "Must be named `File` for test.")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class File {
|
||||
|
||||
@JsonProperty("sourceURI")
|
||||
private String sourceURI;
|
||||
|
||||
public File sourceURI(String sourceURI) {
|
||||
this.sourceURI = sourceURI;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test capitalization
|
||||
* @return sourceURI
|
||||
*/
|
||||
|
||||
@Schema(name = "sourceURI", description = "Test capitalization", required = false)
|
||||
public String getSourceURI() {
|
||||
return sourceURI;
|
||||
}
|
||||
|
||||
public void setSourceURI(String sourceURI) {
|
||||
this.sourceURI = sourceURI;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
File file = (File) o;
|
||||
return Objects.equals(this.sourceURI, file.sourceURI);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(sourceURI);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class File {\n");
|
||||
sb.append(" sourceURI: ").append(toIndentedString(sourceURI)).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 ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import java.net.URI;
|
||||
import java.util.Objects;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
@@ -14,20 +15,23 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* FileSchemaTestClass
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("file")
|
||||
private java.io.File file;
|
||||
private File file;
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<java.io.File> files = null;
|
||||
private List<File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(java.io.File file) {
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
return this;
|
||||
}
|
||||
@@ -36,24 +40,22 @@ public class FileSchemaTestClass {
|
||||
* Get file
|
||||
* @return file
|
||||
*/
|
||||
@Schema(name = "file", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public java.io.File getFile() {
|
||||
@Valid
|
||||
@Schema(name = "file", required = false)
|
||||
public File getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(java.io.File file) {
|
||||
public void setFile(File file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<java.io.File> files) {
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass addFilesItem(java.io.File filesItem) {
|
||||
public FileSchemaTestClass addFilesItem(File filesItem) {
|
||||
if (this.files == null) {
|
||||
this.files = new ArrayList<>();
|
||||
}
|
||||
@@ -65,19 +67,16 @@ public class FileSchemaTestClass {
|
||||
* Get files
|
||||
* @return files
|
||||
*/
|
||||
@Schema(name = "files", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public List<java.io.File> getFiles() {
|
||||
@Valid
|
||||
@Schema(name = "files", required = false)
|
||||
public List<File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<java.io.File> files) {
|
||||
public void setFiles(List<File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -100,7 +99,6 @@ public class FileSchemaTestClass {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FileSchemaTestClass {\n");
|
||||
|
||||
sb.append(" file: ").append(toIndentedString(file)).append("\n");
|
||||
sb.append(" files: ").append(toIndentedString(files)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -9,6 +9,8 @@ import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.UUID;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
@@ -17,12 +19,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* FormatTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class FormatTest {
|
||||
|
||||
@JsonProperty("integer")
|
||||
private Integer integer;
|
||||
|
||||
@@ -48,14 +53,14 @@ public class FormatTest {
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
private org.springframework.core.io.Resource binary;
|
||||
private Resource binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE)
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||
private LocalDate date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME)
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
@@ -78,9 +83,8 @@ public class FormatTest {
|
||||
* maximum: 100
|
||||
* @return integer
|
||||
*/
|
||||
@Schema(name = "integer", defaultValue = "")
|
||||
|
||||
@Min(10) @Max(100)
|
||||
@Min(10) @Max(100)
|
||||
@Schema(name = "integer", required = false)
|
||||
public Integer getInteger() {
|
||||
return integer;
|
||||
}
|
||||
@@ -100,9 +104,8 @@ public class FormatTest {
|
||||
* maximum: 200
|
||||
* @return int32
|
||||
*/
|
||||
@Schema(name = "int32", defaultValue = "")
|
||||
|
||||
@Min(20) @Max(200)
|
||||
@Min(20) @Max(200)
|
||||
@Schema(name = "int32", required = false)
|
||||
public Integer getInt32() {
|
||||
return int32;
|
||||
}
|
||||
@@ -120,9 +123,8 @@ public class FormatTest {
|
||||
* Get int64
|
||||
* @return int64
|
||||
*/
|
||||
@Schema(name = "int64", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "int64", required = false)
|
||||
public Long getInt64() {
|
||||
return int64;
|
||||
}
|
||||
@@ -142,11 +144,8 @@ public class FormatTest {
|
||||
* maximum: 543.2
|
||||
* @return number
|
||||
*/
|
||||
@Schema(name = "number", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
@Valid
|
||||
@DecimalMin("32.1") @DecimalMax("543.2")
|
||||
@NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")
|
||||
@Schema(name = "number", required = true)
|
||||
public BigDecimal getNumber() {
|
||||
return number;
|
||||
}
|
||||
@@ -166,9 +165,8 @@ public class FormatTest {
|
||||
* maximum: 987.6
|
||||
* @return _float
|
||||
*/
|
||||
@Schema(name = "_float", defaultValue = "")
|
||||
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")
|
||||
@Schema(name = "float", required = false)
|
||||
public Float getFloat() {
|
||||
return _float;
|
||||
}
|
||||
@@ -188,9 +186,8 @@ public class FormatTest {
|
||||
* maximum: 123.4
|
||||
* @return _double
|
||||
*/
|
||||
@Schema(name = "_double", defaultValue = "")
|
||||
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")
|
||||
@Schema(name = "double", required = false)
|
||||
public Double getDouble() {
|
||||
return _double;
|
||||
}
|
||||
@@ -208,9 +205,8 @@ public class FormatTest {
|
||||
* Get string
|
||||
* @return string
|
||||
*/
|
||||
@Schema(name = "string", defaultValue = "")
|
||||
|
||||
@Pattern(regexp = "/[a-z]/i")
|
||||
@Pattern(regexp = "/[a-z]/i")
|
||||
@Schema(name = "string", required = false)
|
||||
public String getString() {
|
||||
return string;
|
||||
}
|
||||
@@ -228,10 +224,8 @@ public class FormatTest {
|
||||
* Get _byte
|
||||
* @return _byte
|
||||
*/
|
||||
@Schema(name = "_byte", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "byte", required = true)
|
||||
public byte[] getByte() {
|
||||
return _byte;
|
||||
}
|
||||
@@ -240,7 +234,7 @@ public class FormatTest {
|
||||
this._byte = _byte;
|
||||
}
|
||||
|
||||
public FormatTest binary(org.springframework.core.io.Resource binary) {
|
||||
public FormatTest binary(Resource binary) {
|
||||
this.binary = binary;
|
||||
return this;
|
||||
}
|
||||
@@ -249,15 +243,13 @@ public class FormatTest {
|
||||
* Get binary
|
||||
* @return binary
|
||||
*/
|
||||
@Schema(name = "binary", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public org.springframework.core.io.Resource getBinary() {
|
||||
@Valid
|
||||
@Schema(name = "binary", required = false)
|
||||
public Resource getBinary() {
|
||||
return binary;
|
||||
}
|
||||
|
||||
public void setBinary(org.springframework.core.io.Resource binary) {
|
||||
public void setBinary(Resource binary) {
|
||||
this.binary = binary;
|
||||
}
|
||||
|
||||
@@ -270,11 +262,8 @@ public class FormatTest {
|
||||
* Get date
|
||||
* @return date
|
||||
*/
|
||||
@Schema(name = "date", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
@Valid
|
||||
|
||||
@NotNull @Valid
|
||||
@Schema(name = "date", required = true)
|
||||
public LocalDate getDate() {
|
||||
return date;
|
||||
}
|
||||
@@ -292,10 +281,8 @@ public class FormatTest {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
*/
|
||||
@Schema(name = "dateTime", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "dateTime", required = false)
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@@ -313,10 +300,8 @@ public class FormatTest {
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
*/
|
||||
@Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", required = false)
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@@ -334,10 +319,8 @@ public class FormatTest {
|
||||
* Get password
|
||||
* @return password
|
||||
*/
|
||||
@Schema(name = "password", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
@Size(min = 10, max = 64)
|
||||
@NotNull @Size(min = 10, max = 64)
|
||||
@Schema(name = "password", required = true)
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@@ -355,10 +338,8 @@ public class FormatTest {
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
@Schema(name = "bigDecimal", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "BigDecimal", required = false)
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
@@ -367,7 +348,6 @@ public class FormatTest {
|
||||
this.bigDecimal = bigDecimal;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -402,7 +382,6 @@ public class FormatTest {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FormatTest {\n");
|
||||
|
||||
sb.append(" integer: ").append(toIndentedString(integer)).append("\n");
|
||||
sb.append(" int32: ").append(toIndentedString(int32)).append("\n");
|
||||
sb.append(" int64: ").append(toIndentedString(int64)).append("\n");
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* HasOnlyReadOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class HasOnlyReadOnly {
|
||||
|
||||
@JsonProperty("bar")
|
||||
private String bar;
|
||||
|
||||
@@ -33,9 +36,8 @@ public class HasOnlyReadOnly {
|
||||
* Get bar
|
||||
* @return bar
|
||||
*/
|
||||
@Schema(name = "bar", readOnly = true, defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, required = false)
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@@ -53,9 +55,8 @@ public class HasOnlyReadOnly {
|
||||
* Get foo
|
||||
* @return foo
|
||||
*/
|
||||
@Schema(name = "foo", readOnly = true, defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, required = false)
|
||||
public String getFoo() {
|
||||
return foo;
|
||||
}
|
||||
@@ -64,7 +65,6 @@ public class HasOnlyReadOnly {
|
||||
this.foo = foo;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -87,7 +87,6 @@ public class HasOnlyReadOnly {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class HasOnlyReadOnly {\n");
|
||||
|
||||
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
||||
sb.append(" foo: ").append(toIndentedString(foo)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -16,12 +16,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* MapTest
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class MapTest {
|
||||
|
||||
@JsonProperty("map_map_of_string")
|
||||
@Valid
|
||||
private Map<String, Map<String, String>> mapMapOfString = null;
|
||||
@@ -90,10 +93,8 @@ public class MapTest {
|
||||
* Get mapMapOfString
|
||||
* @return mapMapOfString
|
||||
*/
|
||||
@Schema(name = "mapMapOfString", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "map_map_of_string", required = false)
|
||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
return mapMapOfString;
|
||||
}
|
||||
@@ -119,9 +120,8 @@ public class MapTest {
|
||||
* Get mapOfEnumString
|
||||
* @return mapOfEnumString
|
||||
*/
|
||||
@Schema(name = "mapOfEnumString", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "map_of_enum_string", required = false)
|
||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||
return mapOfEnumString;
|
||||
}
|
||||
@@ -147,9 +147,8 @@ public class MapTest {
|
||||
* Get directMap
|
||||
* @return directMap
|
||||
*/
|
||||
@Schema(name = "directMap", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "direct_map", required = false)
|
||||
public Map<String, Boolean> getDirectMap() {
|
||||
return directMap;
|
||||
}
|
||||
@@ -175,9 +174,8 @@ public class MapTest {
|
||||
* Get indirectMap
|
||||
* @return indirectMap
|
||||
*/
|
||||
@Schema(name = "indirectMap", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "indirect_map", required = false)
|
||||
public Map<String, Boolean> getIndirectMap() {
|
||||
return indirectMap;
|
||||
}
|
||||
@@ -186,7 +184,6 @@ public class MapTest {
|
||||
this.indirectMap = indirectMap;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -211,7 +208,6 @@ public class MapTest {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class MapTest {\n");
|
||||
|
||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||
|
||||
@@ -10,6 +10,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import org.openapitools.model.Animal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
@@ -18,17 +19,20 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* MixedPropertiesAndAdditionalPropertiesClass
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty("uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME)
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
@@ -44,10 +48,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
*/
|
||||
@Schema(name = "uuid", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "uuid", required = false)
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@@ -65,10 +67,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
*/
|
||||
@Schema(name = "dateTime", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "dateTime", required = false)
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@@ -94,10 +94,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
* Get map
|
||||
* @return map
|
||||
*/
|
||||
@Schema(name = "map", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "map", required = false)
|
||||
public Map<String, Animal> getMap() {
|
||||
return map;
|
||||
}
|
||||
@@ -106,7 +104,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
this.map = map;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -130,7 +127,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
|
||||
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" map: ").append(toIndentedString(map)).append("\n");
|
||||
|
||||
@@ -12,13 +12,16 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Model for testing model name starting with number
|
||||
*/
|
||||
@Schema(name = "200_response",description = "Model for testing model name starting with number")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Schema(name = "200_response", description = "Model for testing model name starting with number")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Model200Response {
|
||||
|
||||
@JsonProperty("name")
|
||||
private Integer name;
|
||||
|
||||
@@ -34,9 +37,8 @@ public class Model200Response {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -54,9 +56,8 @@ public class Model200Response {
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
*/
|
||||
@Schema(name = "propertyClass", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "class", required = false)
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
@@ -65,7 +66,6 @@ public class Model200Response {
|
||||
this.propertyClass = propertyClass;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -88,7 +88,6 @@ public class Model200Response {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Model200Response {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ModelApiResponse
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelApiResponse {
|
||||
|
||||
@JsonProperty("code")
|
||||
private Integer code;
|
||||
|
||||
@@ -36,9 +39,8 @@ public class ModelApiResponse {
|
||||
* Get code
|
||||
* @return code
|
||||
*/
|
||||
@Schema(name = "code", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "code", required = false)
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@@ -56,9 +58,8 @@ public class ModelApiResponse {
|
||||
* Get type
|
||||
* @return type
|
||||
*/
|
||||
@Schema(name = "type", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "type", required = false)
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@@ -76,9 +77,8 @@ public class ModelApiResponse {
|
||||
* Get message
|
||||
* @return message
|
||||
*/
|
||||
@Schema(name = "message", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "message", required = false)
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
@@ -87,7 +87,6 @@ public class ModelApiResponse {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -111,7 +110,6 @@ public class ModelApiResponse {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ModelApiResponse {\n");
|
||||
|
||||
sb.append(" code: ").append(toIndentedString(code)).append("\n");
|
||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||
sb.append(" message: ").append(toIndentedString(message)).append("\n");
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
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 org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* Must be named `File` for test.
|
||||
*/
|
||||
@Schema(name = "File",description = "Must be named `File` for test.")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelFile {
|
||||
@JsonProperty("sourceURI")
|
||||
private String sourceURI;
|
||||
|
||||
public ModelFile sourceURI(String sourceURI) {
|
||||
this.sourceURI = sourceURI;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test capitalization
|
||||
* @return sourceURI
|
||||
*/
|
||||
@Schema(name = "sourceURI", defaultValue = "Test capitalization")
|
||||
|
||||
|
||||
public String getSourceURI() {
|
||||
return sourceURI;
|
||||
}
|
||||
|
||||
public void setSourceURI(String sourceURI) {
|
||||
this.sourceURI = sourceURI;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ModelFile _file = (ModelFile) o;
|
||||
return Objects.equals(this.sourceURI, _file.sourceURI);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(sourceURI);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ModelFile {\n");
|
||||
|
||||
sb.append(" sourceURI: ").append(toIndentedString(sourceURI)).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 ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
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 org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ModelList
|
||||
*/
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelList {
|
||||
|
||||
@JsonProperty("123-list")
|
||||
private String _123list;
|
||||
|
||||
public ModelList _123list(String _123list) {
|
||||
this._123list = _123list;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get _123list
|
||||
* @return _123list
|
||||
*/
|
||||
|
||||
@Schema(name = "123-list", required = false)
|
||||
public String get123list() {
|
||||
return _123list;
|
||||
}
|
||||
|
||||
public void set123list(String _123list) {
|
||||
this._123list = _123list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ModelList _list = (ModelList) o;
|
||||
return Objects.equals(this._123list, _list._123list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(_123list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ModelList {\n");
|
||||
sb.append(" _123list: ").append(toIndentedString(_123list)).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 ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,13 +12,16 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Model for testing reserved words
|
||||
*/
|
||||
@Schema(name = "Return",description = "Model for testing reserved words")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Schema(name = "Return", description = "Model for testing reserved words")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelReturn {
|
||||
|
||||
@JsonProperty("return")
|
||||
private Integer _return;
|
||||
|
||||
@@ -31,9 +34,8 @@ public class ModelReturn {
|
||||
* Get _return
|
||||
* @return _return
|
||||
*/
|
||||
@Schema(name = "_return", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "return", required = false)
|
||||
public Integer getReturn() {
|
||||
return _return;
|
||||
}
|
||||
@@ -42,7 +44,6 @@ public class ModelReturn {
|
||||
this._return = _return;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -64,7 +65,6 @@ public class ModelReturn {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ModelReturn {\n");
|
||||
|
||||
sb.append(" _return: ").append(toIndentedString(_return)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -12,13 +12,16 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Model for testing model name same as property name
|
||||
*/
|
||||
@Schema(name = "Name",description = "Model for testing model name same as property name")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Schema(name = "Name", description = "Model for testing model name same as property name")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Name {
|
||||
|
||||
@JsonProperty("name")
|
||||
private Integer name;
|
||||
|
||||
@@ -40,10 +43,8 @@ public class Name {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "name", required = true)
|
||||
public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -61,9 +62,8 @@ public class Name {
|
||||
* Get snakeCase
|
||||
* @return snakeCase
|
||||
*/
|
||||
@Schema(name = "snakeCase", readOnly = true, defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, required = false)
|
||||
public Integer getSnakeCase() {
|
||||
return snakeCase;
|
||||
}
|
||||
@@ -81,9 +81,8 @@ public class Name {
|
||||
* Get property
|
||||
* @return property
|
||||
*/
|
||||
@Schema(name = "property", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "property", required = false)
|
||||
public String getProperty() {
|
||||
return property;
|
||||
}
|
||||
@@ -101,9 +100,8 @@ public class Name {
|
||||
* Get _123number
|
||||
* @return _123number
|
||||
*/
|
||||
@Schema(name = "_123number", readOnly = true, defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, required = false)
|
||||
public Integer get123number() {
|
||||
return _123number;
|
||||
}
|
||||
@@ -112,7 +110,6 @@ public class Name {
|
||||
this._123number = _123number;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -137,7 +134,6 @@ public class Name {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Name {\n");
|
||||
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
||||
sb.append(" property: ").append(toIndentedString(property)).append("\n");
|
||||
|
||||
@@ -13,12 +13,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* NumberOnly
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class NumberOnly {
|
||||
|
||||
@JsonProperty("JustNumber")
|
||||
private BigDecimal justNumber;
|
||||
|
||||
@@ -31,10 +34,8 @@ public class NumberOnly {
|
||||
* Get justNumber
|
||||
* @return justNumber
|
||||
*/
|
||||
@Schema(name = "justNumber", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "JustNumber", required = false)
|
||||
public BigDecimal getJustNumber() {
|
||||
return justNumber;
|
||||
}
|
||||
@@ -43,7 +44,6 @@ public class NumberOnly {
|
||||
this.justNumber = justNumber;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -65,7 +65,6 @@ public class NumberOnly {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class NumberOnly {\n");
|
||||
|
||||
sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.time.OffsetDateTime;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.time.OffsetDateTime;
|
||||
import javax.validation.Valid;
|
||||
@@ -14,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Order
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Order {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@@ -30,7 +34,7 @@ public class Order {
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
@org.springframework.format.annotation.DateTimeFormat(iso = org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME)
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime shipDate;
|
||||
|
||||
/**
|
||||
@@ -85,9 +89,8 @@ public class Order {
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
@Schema(name = "id", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "id", required = false)
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -105,9 +108,8 @@ public class Order {
|
||||
* Get petId
|
||||
* @return petId
|
||||
*/
|
||||
@Schema(name = "petId", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "petId", required = false)
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
}
|
||||
@@ -125,9 +127,8 @@ public class Order {
|
||||
* Get quantity
|
||||
* @return quantity
|
||||
*/
|
||||
@Schema(name = "quantity", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "quantity", required = false)
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
@@ -145,10 +146,8 @@ public class Order {
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
*/
|
||||
@Schema(name = "shipDate", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "shipDate", required = false)
|
||||
public OffsetDateTime getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
@@ -166,9 +165,8 @@ public class Order {
|
||||
* Order Status
|
||||
* @return status
|
||||
*/
|
||||
@Schema(name = "status", defaultValue = "Order Status")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "status", description = "Order Status", required = false)
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@@ -186,9 +184,8 @@ public class Order {
|
||||
* Get complete
|
||||
* @return complete
|
||||
*/
|
||||
@Schema(name = "complete", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "complete", required = false)
|
||||
public Boolean getComplete() {
|
||||
return complete;
|
||||
}
|
||||
@@ -197,7 +194,6 @@ public class Order {
|
||||
this.complete = complete;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -224,7 +220,6 @@ public class Order {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Order {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" petId: ").append(toIndentedString(petId)).append("\n");
|
||||
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
|
||||
|
||||
@@ -13,12 +13,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* OuterComposite
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class OuterComposite {
|
||||
|
||||
@JsonProperty("my_number")
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@@ -37,10 +40,8 @@ public class OuterComposite {
|
||||
* Get myNumber
|
||||
* @return myNumber
|
||||
*/
|
||||
@Schema(name = "myNumber", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "my_number", required = false)
|
||||
public BigDecimal getMyNumber() {
|
||||
return myNumber;
|
||||
}
|
||||
@@ -58,9 +59,8 @@ public class OuterComposite {
|
||||
* Get myString
|
||||
* @return myString
|
||||
*/
|
||||
@Schema(name = "myString", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "my_string", required = false)
|
||||
public String getMyString() {
|
||||
return myString;
|
||||
}
|
||||
@@ -78,9 +78,8 @@ public class OuterComposite {
|
||||
* Get myBoolean
|
||||
* @return myBoolean
|
||||
*/
|
||||
@Schema(name = "myBoolean", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "my_boolean", required = false)
|
||||
public Boolean getMyBoolean() {
|
||||
return myBoolean;
|
||||
}
|
||||
@@ -89,7 +88,6 @@ public class OuterComposite {
|
||||
this.myBoolean = myBoolean;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -113,7 +111,6 @@ public class OuterComposite {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OuterComposite {\n");
|
||||
|
||||
sb.append(" myNumber: ").append(toIndentedString(myNumber)).append("\n");
|
||||
sb.append(" myString: ").append(toIndentedString(myString)).append("\n");
|
||||
sb.append(" myBoolean: ").append(toIndentedString(myBoolean)).append("\n");
|
||||
|
||||
@@ -11,6 +11,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
@@ -18,6 +19,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
/**
|
||||
* Gets or Sets OuterEnum
|
||||
*/
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public enum OuterEnum {
|
||||
|
||||
PLACED("placed"),
|
||||
|
||||
@@ -20,12 +20,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Pet
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Pet {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@@ -92,9 +95,8 @@ public class Pet {
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
@Schema(name = "id", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "id", required = false)
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -112,10 +114,8 @@ public class Pet {
|
||||
* Get category
|
||||
* @return category
|
||||
*/
|
||||
@Schema(name = "category", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "category", required = false)
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
@@ -133,10 +133,8 @@ public class Pet {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", example = "doggie", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "name", example = "doggie", required = true)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -159,10 +157,8 @@ public class Pet {
|
||||
* Get photoUrls
|
||||
* @return photoUrls
|
||||
*/
|
||||
@Schema(name = "photoUrls", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "photoUrls", required = true)
|
||||
public Set<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
}
|
||||
@@ -189,10 +185,8 @@ public class Pet {
|
||||
* Get tags
|
||||
* @return tags
|
||||
*/
|
||||
@Schema(name = "tags", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "tags", required = false)
|
||||
public List<Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
@@ -210,9 +204,8 @@ public class Pet {
|
||||
* pet status in the store
|
||||
* @return status
|
||||
*/
|
||||
@Schema(name = "status", defaultValue = "pet status in the store")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "status", description = "pet status in the store", required = false)
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@@ -221,7 +214,6 @@ public class Pet {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -248,7 +240,6 @@ public class Pet {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Pet {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" category: ").append(toIndentedString(category)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* ReadOnlyFirst
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ReadOnlyFirst {
|
||||
|
||||
@JsonProperty("bar")
|
||||
private String bar;
|
||||
|
||||
@@ -33,9 +36,8 @@ public class ReadOnlyFirst {
|
||||
* Get bar
|
||||
* @return bar
|
||||
*/
|
||||
@Schema(name = "bar", readOnly = true, defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, required = false)
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@@ -53,9 +55,8 @@ public class ReadOnlyFirst {
|
||||
* Get baz
|
||||
* @return baz
|
||||
*/
|
||||
@Schema(name = "baz", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "baz", required = false)
|
||||
public String getBaz() {
|
||||
return baz;
|
||||
}
|
||||
@@ -64,7 +65,6 @@ public class ReadOnlyFirst {
|
||||
this.baz = baz;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -87,7 +87,6 @@ public class ReadOnlyFirst {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ReadOnlyFirst {\n");
|
||||
|
||||
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
||||
sb.append(" baz: ").append(toIndentedString(baz)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* SpecialModelName
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class SpecialModelName {
|
||||
|
||||
@JsonProperty("$special[property.name]")
|
||||
private Long $specialPropertyName;
|
||||
|
||||
@@ -30,9 +33,8 @@ public class SpecialModelName {
|
||||
* Get $specialPropertyName
|
||||
* @return $specialPropertyName
|
||||
*/
|
||||
@Schema(name = "$specialPropertyName", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "$special[property.name]", required = false)
|
||||
public Long get$SpecialPropertyName() {
|
||||
return $specialPropertyName;
|
||||
}
|
||||
@@ -41,7 +43,6 @@ public class SpecialModelName {
|
||||
this.$specialPropertyName = $specialPropertyName;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -63,7 +64,6 @@ public class SpecialModelName {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class SpecialModelName {\n");
|
||||
|
||||
sb.append(" $specialPropertyName: ").append(toIndentedString($specialPropertyName)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* Tag
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Tag {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@@ -33,9 +36,8 @@ public class Tag {
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
@Schema(name = "id", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "id", required = false)
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -53,9 +55,8 @@ public class Tag {
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
@Schema(name = "name", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name", required = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -64,7 +65,6 @@ public class Tag {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -87,7 +87,6 @@ public class Tag {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Tag {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* TypeHolderDefault
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class TypeHolderDefault {
|
||||
|
||||
@JsonProperty("string_item")
|
||||
private String stringItem = "what";
|
||||
|
||||
@@ -46,10 +49,8 @@ public class TypeHolderDefault {
|
||||
* Get stringItem
|
||||
* @return stringItem
|
||||
*/
|
||||
@Schema(name = "stringItem", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "string_item", required = true)
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
@@ -67,11 +68,8 @@ public class TypeHolderDefault {
|
||||
* Get numberItem
|
||||
* @return numberItem
|
||||
*/
|
||||
@Schema(name = "numberItem", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
@Valid
|
||||
|
||||
@NotNull @Valid
|
||||
@Schema(name = "number_item", required = true)
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
@@ -89,10 +87,8 @@ public class TypeHolderDefault {
|
||||
* Get integerItem
|
||||
* @return integerItem
|
||||
*/
|
||||
@Schema(name = "integerItem", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "integer_item", required = true)
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
@@ -110,10 +106,8 @@ public class TypeHolderDefault {
|
||||
* Get boolItem
|
||||
* @return boolItem
|
||||
*/
|
||||
@Schema(name = "boolItem", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "bool_item", required = true)
|
||||
public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
@@ -136,10 +130,8 @@ public class TypeHolderDefault {
|
||||
* Get arrayItem
|
||||
* @return arrayItem
|
||||
*/
|
||||
@Schema(name = "arrayItem", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "array_item", required = true)
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
@@ -148,7 +140,6 @@ public class TypeHolderDefault {
|
||||
this.arrayItem = arrayItem;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -174,7 +165,6 @@ public class TypeHolderDefault {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class TypeHolderDefault {\n");
|
||||
|
||||
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
|
||||
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
|
||||
sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* TypeHolderExample
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class TypeHolderExample {
|
||||
|
||||
@JsonProperty("string_item")
|
||||
private String stringItem;
|
||||
|
||||
@@ -49,10 +52,8 @@ public class TypeHolderExample {
|
||||
* Get stringItem
|
||||
* @return stringItem
|
||||
*/
|
||||
@Schema(name = "stringItem", example = "what", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "string_item", example = "what", required = true)
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
@@ -70,11 +71,8 @@ public class TypeHolderExample {
|
||||
* Get numberItem
|
||||
* @return numberItem
|
||||
*/
|
||||
@Schema(name = "numberItem", example = "1.234", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
@Valid
|
||||
|
||||
@NotNull @Valid
|
||||
@Schema(name = "number_item", example = "1.234", required = true)
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
@@ -92,10 +90,8 @@ public class TypeHolderExample {
|
||||
* Get floatItem
|
||||
* @return floatItem
|
||||
*/
|
||||
@Schema(name = "floatItem", example = "1.234", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "float_item", example = "1.234", required = true)
|
||||
public Float getFloatItem() {
|
||||
return floatItem;
|
||||
}
|
||||
@@ -113,10 +109,8 @@ public class TypeHolderExample {
|
||||
* Get integerItem
|
||||
* @return integerItem
|
||||
*/
|
||||
@Schema(name = "integerItem", example = "-2", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "integer_item", example = "-2", required = true)
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
@@ -134,10 +128,8 @@ public class TypeHolderExample {
|
||||
* Get boolItem
|
||||
* @return boolItem
|
||||
*/
|
||||
@Schema(name = "boolItem", example = "true", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "bool_item", example = "true", required = true)
|
||||
public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
@@ -160,10 +152,8 @@ public class TypeHolderExample {
|
||||
* Get arrayItem
|
||||
* @return arrayItem
|
||||
*/
|
||||
@Schema(name = "arrayItem", example = "[0, 1, 2, 3]", required = true, defaultValue = "")
|
||||
@NotNull
|
||||
|
||||
|
||||
@NotNull
|
||||
@Schema(name = "array_item", example = "[0, 1, 2, 3]", required = true)
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
@@ -172,7 +162,6 @@ public class TypeHolderExample {
|
||||
this.arrayItem = arrayItem;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -199,7 +188,6 @@ public class TypeHolderExample {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class TypeHolderExample {\n");
|
||||
|
||||
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
|
||||
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
|
||||
sb.append(" floatItem: ").append(toIndentedString(floatItem)).append("\n");
|
||||
|
||||
@@ -12,12 +12,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* User
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class User {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@@ -51,9 +54,8 @@ public class User {
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
@Schema(name = "id", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "id", required = false)
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -71,9 +73,8 @@ public class User {
|
||||
* Get username
|
||||
* @return username
|
||||
*/
|
||||
@Schema(name = "username", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "username", required = false)
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@@ -91,9 +92,8 @@ public class User {
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
*/
|
||||
@Schema(name = "firstName", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "firstName", required = false)
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
@@ -111,9 +111,8 @@ public class User {
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
*/
|
||||
@Schema(name = "lastName", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "lastName", required = false)
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
@@ -131,9 +130,8 @@ public class User {
|
||||
* Get email
|
||||
* @return email
|
||||
*/
|
||||
@Schema(name = "email", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "email", required = false)
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@@ -151,9 +149,8 @@ public class User {
|
||||
* Get password
|
||||
* @return password
|
||||
*/
|
||||
@Schema(name = "password", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "password", required = false)
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@@ -171,9 +168,8 @@ public class User {
|
||||
* Get phone
|
||||
* @return phone
|
||||
*/
|
||||
@Schema(name = "phone", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "phone", required = false)
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
@@ -191,9 +187,8 @@ public class User {
|
||||
* User Status
|
||||
* @return userStatus
|
||||
*/
|
||||
@Schema(name = "userStatus", defaultValue = "User Status")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "userStatus", description = "User Status", required = false)
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
}
|
||||
@@ -202,7 +197,6 @@ public class User {
|
||||
this.userStatus = userStatus;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -231,7 +225,6 @@ public class User {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class User {\n");
|
||||
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
|
||||
|
||||
@@ -15,12 +15,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
/**
|
||||
* XmlItem
|
||||
*/
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class XmlItem {
|
||||
|
||||
@JsonProperty("attribute_string")
|
||||
private String attributeString;
|
||||
|
||||
@@ -126,9 +129,8 @@ public class XmlItem {
|
||||
* Get attributeString
|
||||
* @return attributeString
|
||||
*/
|
||||
@Schema(name = "attributeString", example = "string", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "attribute_string", example = "string", required = false)
|
||||
public String getAttributeString() {
|
||||
return attributeString;
|
||||
}
|
||||
@@ -146,10 +148,8 @@ public class XmlItem {
|
||||
* Get attributeNumber
|
||||
* @return attributeNumber
|
||||
*/
|
||||
@Schema(name = "attributeNumber", example = "1.234", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "attribute_number", example = "1.234", required = false)
|
||||
public BigDecimal getAttributeNumber() {
|
||||
return attributeNumber;
|
||||
}
|
||||
@@ -167,9 +167,8 @@ public class XmlItem {
|
||||
* Get attributeInteger
|
||||
* @return attributeInteger
|
||||
*/
|
||||
@Schema(name = "attributeInteger", example = "-2", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "attribute_integer", example = "-2", required = false)
|
||||
public Integer getAttributeInteger() {
|
||||
return attributeInteger;
|
||||
}
|
||||
@@ -187,9 +186,8 @@ public class XmlItem {
|
||||
* Get attributeBoolean
|
||||
* @return attributeBoolean
|
||||
*/
|
||||
@Schema(name = "attributeBoolean", example = "true", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "attribute_boolean", example = "true", required = false)
|
||||
public Boolean getAttributeBoolean() {
|
||||
return attributeBoolean;
|
||||
}
|
||||
@@ -215,9 +213,8 @@ public class XmlItem {
|
||||
* Get wrappedArray
|
||||
* @return wrappedArray
|
||||
*/
|
||||
@Schema(name = "wrappedArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "wrapped_array", required = false)
|
||||
public List<Integer> getWrappedArray() {
|
||||
return wrappedArray;
|
||||
}
|
||||
@@ -235,9 +232,8 @@ public class XmlItem {
|
||||
* Get nameString
|
||||
* @return nameString
|
||||
*/
|
||||
@Schema(name = "nameString", example = "string", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name_string", example = "string", required = false)
|
||||
public String getNameString() {
|
||||
return nameString;
|
||||
}
|
||||
@@ -255,10 +251,8 @@ public class XmlItem {
|
||||
* Get nameNumber
|
||||
* @return nameNumber
|
||||
*/
|
||||
@Schema(name = "nameNumber", example = "1.234", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "name_number", example = "1.234", required = false)
|
||||
public BigDecimal getNameNumber() {
|
||||
return nameNumber;
|
||||
}
|
||||
@@ -276,9 +270,8 @@ public class XmlItem {
|
||||
* Get nameInteger
|
||||
* @return nameInteger
|
||||
*/
|
||||
@Schema(name = "nameInteger", example = "-2", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name_integer", example = "-2", required = false)
|
||||
public Integer getNameInteger() {
|
||||
return nameInteger;
|
||||
}
|
||||
@@ -296,9 +289,8 @@ public class XmlItem {
|
||||
* Get nameBoolean
|
||||
* @return nameBoolean
|
||||
*/
|
||||
@Schema(name = "nameBoolean", example = "true", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name_boolean", example = "true", required = false)
|
||||
public Boolean getNameBoolean() {
|
||||
return nameBoolean;
|
||||
}
|
||||
@@ -324,9 +316,8 @@ public class XmlItem {
|
||||
* Get nameArray
|
||||
* @return nameArray
|
||||
*/
|
||||
@Schema(name = "nameArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name_array", required = false)
|
||||
public List<Integer> getNameArray() {
|
||||
return nameArray;
|
||||
}
|
||||
@@ -352,9 +343,8 @@ public class XmlItem {
|
||||
* Get nameWrappedArray
|
||||
* @return nameWrappedArray
|
||||
*/
|
||||
@Schema(name = "nameWrappedArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "name_wrapped_array", required = false)
|
||||
public List<Integer> getNameWrappedArray() {
|
||||
return nameWrappedArray;
|
||||
}
|
||||
@@ -372,9 +362,8 @@ public class XmlItem {
|
||||
* Get prefixString
|
||||
* @return prefixString
|
||||
*/
|
||||
@Schema(name = "prefixString", example = "string", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_string", example = "string", required = false)
|
||||
public String getPrefixString() {
|
||||
return prefixString;
|
||||
}
|
||||
@@ -392,10 +381,8 @@ public class XmlItem {
|
||||
* Get prefixNumber
|
||||
* @return prefixNumber
|
||||
*/
|
||||
@Schema(name = "prefixNumber", example = "1.234", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "prefix_number", example = "1.234", required = false)
|
||||
public BigDecimal getPrefixNumber() {
|
||||
return prefixNumber;
|
||||
}
|
||||
@@ -413,9 +400,8 @@ public class XmlItem {
|
||||
* Get prefixInteger
|
||||
* @return prefixInteger
|
||||
*/
|
||||
@Schema(name = "prefixInteger", example = "-2", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_integer", example = "-2", required = false)
|
||||
public Integer getPrefixInteger() {
|
||||
return prefixInteger;
|
||||
}
|
||||
@@ -433,9 +419,8 @@ public class XmlItem {
|
||||
* Get prefixBoolean
|
||||
* @return prefixBoolean
|
||||
*/
|
||||
@Schema(name = "prefixBoolean", example = "true", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_boolean", example = "true", required = false)
|
||||
public Boolean getPrefixBoolean() {
|
||||
return prefixBoolean;
|
||||
}
|
||||
@@ -461,9 +446,8 @@ public class XmlItem {
|
||||
* Get prefixArray
|
||||
* @return prefixArray
|
||||
*/
|
||||
@Schema(name = "prefixArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_array", required = false)
|
||||
public List<Integer> getPrefixArray() {
|
||||
return prefixArray;
|
||||
}
|
||||
@@ -489,9 +473,8 @@ public class XmlItem {
|
||||
* Get prefixWrappedArray
|
||||
* @return prefixWrappedArray
|
||||
*/
|
||||
@Schema(name = "prefixWrappedArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_wrapped_array", required = false)
|
||||
public List<Integer> getPrefixWrappedArray() {
|
||||
return prefixWrappedArray;
|
||||
}
|
||||
@@ -509,9 +492,8 @@ public class XmlItem {
|
||||
* Get namespaceString
|
||||
* @return namespaceString
|
||||
*/
|
||||
@Schema(name = "namespaceString", example = "string", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "namespace_string", example = "string", required = false)
|
||||
public String getNamespaceString() {
|
||||
return namespaceString;
|
||||
}
|
||||
@@ -529,10 +511,8 @@ public class XmlItem {
|
||||
* Get namespaceNumber
|
||||
* @return namespaceNumber
|
||||
*/
|
||||
@Schema(name = "namespaceNumber", example = "1.234", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "namespace_number", example = "1.234", required = false)
|
||||
public BigDecimal getNamespaceNumber() {
|
||||
return namespaceNumber;
|
||||
}
|
||||
@@ -550,9 +530,8 @@ public class XmlItem {
|
||||
* Get namespaceInteger
|
||||
* @return namespaceInteger
|
||||
*/
|
||||
@Schema(name = "namespaceInteger", example = "-2", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "namespace_integer", example = "-2", required = false)
|
||||
public Integer getNamespaceInteger() {
|
||||
return namespaceInteger;
|
||||
}
|
||||
@@ -570,9 +549,8 @@ public class XmlItem {
|
||||
* Get namespaceBoolean
|
||||
* @return namespaceBoolean
|
||||
*/
|
||||
@Schema(name = "namespaceBoolean", example = "true", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "namespace_boolean", example = "true", required = false)
|
||||
public Boolean getNamespaceBoolean() {
|
||||
return namespaceBoolean;
|
||||
}
|
||||
@@ -598,9 +576,8 @@ public class XmlItem {
|
||||
* Get namespaceArray
|
||||
* @return namespaceArray
|
||||
*/
|
||||
@Schema(name = "namespaceArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "namespace_array", required = false)
|
||||
public List<Integer> getNamespaceArray() {
|
||||
return namespaceArray;
|
||||
}
|
||||
@@ -626,9 +603,8 @@ public class XmlItem {
|
||||
* Get namespaceWrappedArray
|
||||
* @return namespaceWrappedArray
|
||||
*/
|
||||
@Schema(name = "namespaceWrappedArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "namespace_wrapped_array", required = false)
|
||||
public List<Integer> getNamespaceWrappedArray() {
|
||||
return namespaceWrappedArray;
|
||||
}
|
||||
@@ -646,9 +622,8 @@ public class XmlItem {
|
||||
* Get prefixNsString
|
||||
* @return prefixNsString
|
||||
*/
|
||||
@Schema(name = "prefixNsString", example = "string", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_ns_string", example = "string", required = false)
|
||||
public String getPrefixNsString() {
|
||||
return prefixNsString;
|
||||
}
|
||||
@@ -666,10 +641,8 @@ public class XmlItem {
|
||||
* Get prefixNsNumber
|
||||
* @return prefixNsNumber
|
||||
*/
|
||||
@Schema(name = "prefixNsNumber", example = "1.234", defaultValue = "")
|
||||
|
||||
@Valid
|
||||
|
||||
@Valid
|
||||
@Schema(name = "prefix_ns_number", example = "1.234", required = false)
|
||||
public BigDecimal getPrefixNsNumber() {
|
||||
return prefixNsNumber;
|
||||
}
|
||||
@@ -687,9 +660,8 @@ public class XmlItem {
|
||||
* Get prefixNsInteger
|
||||
* @return prefixNsInteger
|
||||
*/
|
||||
@Schema(name = "prefixNsInteger", example = "-2", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_ns_integer", example = "-2", required = false)
|
||||
public Integer getPrefixNsInteger() {
|
||||
return prefixNsInteger;
|
||||
}
|
||||
@@ -707,9 +679,8 @@ public class XmlItem {
|
||||
* Get prefixNsBoolean
|
||||
* @return prefixNsBoolean
|
||||
*/
|
||||
@Schema(name = "prefixNsBoolean", example = "true", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_ns_boolean", example = "true", required = false)
|
||||
public Boolean getPrefixNsBoolean() {
|
||||
return prefixNsBoolean;
|
||||
}
|
||||
@@ -735,9 +706,8 @@ public class XmlItem {
|
||||
* Get prefixNsArray
|
||||
* @return prefixNsArray
|
||||
*/
|
||||
@Schema(name = "prefixNsArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_ns_array", required = false)
|
||||
public List<Integer> getPrefixNsArray() {
|
||||
return prefixNsArray;
|
||||
}
|
||||
@@ -763,9 +733,8 @@ public class XmlItem {
|
||||
* Get prefixNsWrappedArray
|
||||
* @return prefixNsWrappedArray
|
||||
*/
|
||||
@Schema(name = "prefixNsWrappedArray", defaultValue = "")
|
||||
|
||||
|
||||
|
||||
@Schema(name = "prefix_ns_wrapped_array", required = false)
|
||||
public List<Integer> getPrefixNsWrappedArray() {
|
||||
return prefixNsWrappedArray;
|
||||
}
|
||||
@@ -774,7 +743,6 @@ public class XmlItem {
|
||||
this.prefixNsWrappedArray = prefixNsWrappedArray;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
@@ -824,7 +792,6 @@ public class XmlItem {
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class XmlItem {\n");
|
||||
|
||||
sb.append(" attributeString: ").append(toIndentedString(attributeString)).append("\n");
|
||||
sb.append(" attributeNumber: ").append(toIndentedString(attributeNumber)).append("\n");
|
||||
sb.append(" attributeInteger: ").append(toIndentedString(attributeInteger)).append("\n");
|
||||
|
||||
Reference in New Issue
Block a user