forked from loafle/openapi-generator-original
* 5705: Move JsonProperty annotation to the getters * Regenerate samples * Add jackson check * Add test * Minor fix * Fix test * Fix version * [Java][Spring] update test & samples; add serialization/deserialization test --------- Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
This commit is contained in:
@@ -14,6 +14,7 @@ import java.util.Map;
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import java.time.OffsetDateTime;
|
||||
import org.openapitools.model.OuterComposite;
|
||||
import org.openapitools.model.ResponseObjectWithDifferentFieldNames;
|
||||
import org.openapitools.model.User;
|
||||
import org.openapitools.model.XmlItem;
|
||||
import io.swagger.v3.oas.annotations.ExternalDocumentation;
|
||||
@@ -213,6 +214,43 @@ public interface FakeApi {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* GET /fake/{petId}/response-object-different-names
|
||||
*
|
||||
* @param petId ID of pet to update (required)
|
||||
* @return successful operation (status code 200)
|
||||
*/
|
||||
@Operation(
|
||||
operationId = "responseObjectDifferentNames",
|
||||
tags = { "pet" },
|
||||
responses = {
|
||||
@ApiResponse(responseCode = "200", description = "successful operation", content = {
|
||||
@Content(mediaType = "application/json", schema = @Schema(implementation = ResponseObjectWithDifferentFieldNames.class))
|
||||
})
|
||||
}
|
||||
)
|
||||
@RequestMapping(
|
||||
method = RequestMethod.GET,
|
||||
value = "/fake/{petId}/response-object-different-names",
|
||||
produces = { "application/json" }
|
||||
)
|
||||
default ResponseEntity<ResponseObjectWithDifferentFieldNames> responseObjectDifferentNames(
|
||||
@Parameter(name = "petId", description = "ID of pet to update", required = true, in = ParameterIn.PATH) @PathVariable("petId") Long petId
|
||||
) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
String exampleString = "{ \"UPPER_CASE_PROPERTY_SNAKE\" : \"UPPER_CASE_PROPERTY_SNAKE\", \"lower-case-property-dashes\" : \"lower-case-property-dashes\", \"property name with spaces\" : \"property name with spaces\", \"normalPropertyName\" : \"normalPropertyName\" }";
|
||||
ApiUtil.setExampleResponse(request, "application/json", exampleString);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* PUT /fake/body-with-file-schema
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.util.Map;
|
||||
import org.openapitools.model.ModelApiResponse;
|
||||
import java.time.OffsetDateTime;
|
||||
import org.openapitools.model.OuterComposite;
|
||||
import org.openapitools.model.ResponseObjectWithDifferentFieldNames;
|
||||
import org.openapitools.model.User;
|
||||
import org.openapitools.model.XmlItem;
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
@@ -38,6 +37,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -28,45 +28,34 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty("map_string")
|
||||
@Valid
|
||||
private Map<String, String> mapString = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_number")
|
||||
@Valid
|
||||
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_integer")
|
||||
@Valid
|
||||
private Map<String, Integer> mapInteger = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_boolean")
|
||||
@Valid
|
||||
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_array_integer")
|
||||
@Valid
|
||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_array_anytype")
|
||||
@Valid
|
||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_map_string")
|
||||
@Valid
|
||||
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||
|
||||
@JsonProperty("map_map_anytype")
|
||||
@Valid
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
private Object anytype1;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
private Object anytype3;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
@@ -88,6 +77,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@Schema(name = "map_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_string")
|
||||
public Map<String, String> getMapString() {
|
||||
return mapString;
|
||||
}
|
||||
@@ -115,6 +105,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_number")
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
}
|
||||
@@ -142,6 +133,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@Schema(name = "map_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_integer")
|
||||
public Map<String, Integer> getMapInteger() {
|
||||
return mapInteger;
|
||||
}
|
||||
@@ -169,6 +161,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@Schema(name = "map_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_boolean")
|
||||
public Map<String, Boolean> getMapBoolean() {
|
||||
return mapBoolean;
|
||||
}
|
||||
@@ -196,6 +189,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_array_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_array_integer")
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
}
|
||||
@@ -223,6 +217,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_array_anytype", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_array_anytype")
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
}
|
||||
@@ -250,6 +245,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_map_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_map_string")
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
}
|
||||
@@ -277,6 +273,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_map_anytype", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_map_anytype")
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
}
|
||||
@@ -296,6 +293,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@Schema(name = "anytype_1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("anytype_1")
|
||||
public Object getAnytype1() {
|
||||
return anytype1;
|
||||
}
|
||||
@@ -315,6 +313,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@Schema(name = "anytype_2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("anytype_2")
|
||||
public JsonNullable<Object> getAnytype2() {
|
||||
return anytype2;
|
||||
}
|
||||
@@ -334,6 +333,7 @@ public class AdditionalPropertiesClass {
|
||||
*/
|
||||
|
||||
@Schema(name = "anytype_3", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("anytype_3")
|
||||
public Object getAnytype3() {
|
||||
return anytype3;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesInteger name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesNumber name(String name) {
|
||||
@@ -38,6 +37,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesObject name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesString name(String name) {
|
||||
@@ -37,6 +36,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -38,10 +38,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Animal {
|
||||
|
||||
@JsonProperty("className")
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
private String color = "red";
|
||||
|
||||
/**
|
||||
@@ -71,6 +69,7 @@ public class Animal {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "className", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("className")
|
||||
public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
@@ -90,6 +89,7 @@ public class Animal {
|
||||
*/
|
||||
|
||||
@Schema(name = "color", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("color")
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
@Valid
|
||||
private List<List<BigDecimal>> arrayArrayNumber;
|
||||
|
||||
@@ -47,6 +46,7 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "ArrayArrayNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty("ArrayNumber")
|
||||
@Valid
|
||||
private List<BigDecimal> arrayNumber;
|
||||
|
||||
@@ -47,6 +46,7 @@ public class ArrayOfNumberOnly {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "ArrayNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("ArrayNumber")
|
||||
public List<BigDecimal> getArrayNumber() {
|
||||
return arrayNumber;
|
||||
}
|
||||
|
||||
@@ -24,15 +24,12 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ArrayTest {
|
||||
|
||||
@JsonProperty("array_of_string")
|
||||
@Valid
|
||||
private List<String> arrayOfString;
|
||||
|
||||
@JsonProperty("array_array_of_integer")
|
||||
@Valid
|
||||
private List<List<Long>> arrayArrayOfInteger;
|
||||
|
||||
@JsonProperty("array_array_of_model")
|
||||
@Valid
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel;
|
||||
|
||||
@@ -55,6 +52,7 @@ public class ArrayTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "array_of_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_of_string")
|
||||
public List<String> getArrayOfString() {
|
||||
return arrayOfString;
|
||||
}
|
||||
@@ -82,6 +80,7 @@ public class ArrayTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "array_array_of_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public List<List<Long>> getArrayArrayOfInteger() {
|
||||
return arrayArrayOfInteger;
|
||||
}
|
||||
@@ -109,6 +108,7 @@ public class ArrayTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "array_array_of_model", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_array_of_model")
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,6 @@ public class BigCat extends Cat {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("kind")
|
||||
private KindEnum kind;
|
||||
|
||||
/**
|
||||
@@ -96,6 +95,7 @@ public class BigCat extends Cat {
|
||||
*/
|
||||
|
||||
@Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("kind")
|
||||
public KindEnum getKind() {
|
||||
return kind;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ public class BigCatAllOf {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("kind")
|
||||
private KindEnum kind;
|
||||
|
||||
public BigCatAllOf kind(KindEnum kind) {
|
||||
@@ -77,6 +76,7 @@ public class BigCatAllOf {
|
||||
*/
|
||||
|
||||
@Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("kind")
|
||||
public KindEnum getKind() {
|
||||
return kind;
|
||||
}
|
||||
|
||||
@@ -21,22 +21,16 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Capitalization {
|
||||
|
||||
@JsonProperty("smallCamel")
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
@@ -50,6 +44,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@Schema(name = "smallCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("smallCamel")
|
||||
public String getSmallCamel() {
|
||||
return smallCamel;
|
||||
}
|
||||
@@ -69,6 +64,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@Schema(name = "CapitalCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("CapitalCamel")
|
||||
public String getCapitalCamel() {
|
||||
return capitalCamel;
|
||||
}
|
||||
@@ -88,6 +84,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@Schema(name = "small_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("small_Snake")
|
||||
public String getSmallSnake() {
|
||||
return smallSnake;
|
||||
}
|
||||
@@ -107,6 +104,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@Schema(name = "Capital_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("Capital_Snake")
|
||||
public String getCapitalSnake() {
|
||||
return capitalSnake;
|
||||
}
|
||||
@@ -126,6 +124,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@Schema(name = "SCA_ETH_Flow_Points", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public String getScAETHFlowPoints() {
|
||||
return scAETHFlowPoints;
|
||||
}
|
||||
@@ -145,6 +144,7 @@ public class Capitalization {
|
||||
*/
|
||||
|
||||
@Schema(name = "ATT_NAME", description = "Name of the pet ", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("ATT_NAME")
|
||||
public String getATTNAME() {
|
||||
return ATT_NAME;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Cat extends Animal {
|
||||
|
||||
@JsonProperty("declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
/**
|
||||
@@ -65,6 +64,7 @@ public class Cat extends Animal {
|
||||
*/
|
||||
|
||||
@Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("declawed")
|
||||
public Boolean getDeclawed() {
|
||||
return declawed;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class CatAllOf {
|
||||
|
||||
@JsonProperty("declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
public CatAllOf declawed(Boolean declawed) {
|
||||
@@ -37,6 +36,7 @@ public class CatAllOf {
|
||||
*/
|
||||
|
||||
@Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("declawed")
|
||||
public Boolean getDeclawed() {
|
||||
return declawed;
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Category {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = "default-name";
|
||||
|
||||
/**
|
||||
@@ -54,6 +52,7 @@ public class Category {
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -73,6 +72,7 @@ public class Category {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ClassModel {
|
||||
|
||||
@JsonProperty("_class")
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
@@ -36,6 +35,7 @@ public class ClassModel {
|
||||
*/
|
||||
|
||||
@Schema(name = "_class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("_class")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Client {
|
||||
|
||||
@JsonProperty("client")
|
||||
private String client;
|
||||
|
||||
public Client client(String client) {
|
||||
@@ -35,6 +34,7 @@ public class Client {
|
||||
*/
|
||||
|
||||
@Schema(name = "client", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("client")
|
||||
public String getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
@@ -26,19 +26,15 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ContainerDefaultValue {
|
||||
|
||||
@JsonProperty("nullable_array")
|
||||
@Valid
|
||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
||||
|
||||
@JsonProperty("nullable_required_array")
|
||||
@Valid
|
||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
||||
|
||||
@JsonProperty("required_array")
|
||||
@Valid
|
||||
private List<String> requiredArray = new ArrayList<>();
|
||||
|
||||
@JsonProperty("nullable_array_with_default")
|
||||
@Valid
|
||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
||||
|
||||
@@ -78,6 +74,7 @@ public class ContainerDefaultValue {
|
||||
*/
|
||||
|
||||
@Schema(name = "nullable_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("nullable_array")
|
||||
public JsonNullable<List<String>> getNullableArray() {
|
||||
return nullableArray;
|
||||
}
|
||||
@@ -105,6 +102,7 @@ public class ContainerDefaultValue {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "nullable_required_array", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("nullable_required_array")
|
||||
public JsonNullable<List<String>> getNullableRequiredArray() {
|
||||
return nullableRequiredArray;
|
||||
}
|
||||
@@ -132,6 +130,7 @@ public class ContainerDefaultValue {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "required_array", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("required_array")
|
||||
public List<String> getRequiredArray() {
|
||||
return requiredArray;
|
||||
}
|
||||
@@ -159,6 +158,7 @@ public class ContainerDefaultValue {
|
||||
*/
|
||||
|
||||
@Schema(name = "nullable_array_with_default", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("nullable_array_with_default")
|
||||
public JsonNullable<List<String>> getNullableArrayWithDefault() {
|
||||
return nullableArrayWithDefault;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Dog extends Animal {
|
||||
|
||||
@JsonProperty("breed")
|
||||
private String breed;
|
||||
|
||||
/**
|
||||
@@ -56,6 +55,7 @@ public class Dog extends Animal {
|
||||
*/
|
||||
|
||||
@Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("breed")
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class DogAllOf {
|
||||
|
||||
@JsonProperty("breed")
|
||||
private String breed;
|
||||
|
||||
public DogAllOf breed(String breed) {
|
||||
@@ -37,6 +36,7 @@ public class DogAllOf {
|
||||
*/
|
||||
|
||||
@Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("breed")
|
||||
public String getBreed() {
|
||||
return breed;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,6 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("just_symbol")
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
@@ -97,7 +96,6 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("array_enum")
|
||||
@Valid
|
||||
private List<ArrayEnumEnum> arrayEnum;
|
||||
|
||||
@@ -112,6 +110,7 @@ public class EnumArrays {
|
||||
*/
|
||||
|
||||
@Schema(name = "just_symbol", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("just_symbol")
|
||||
public JustSymbolEnum getJustSymbol() {
|
||||
return justSymbol;
|
||||
}
|
||||
@@ -139,6 +138,7 @@ public class EnumArrays {
|
||||
*/
|
||||
|
||||
@Schema(name = "array_enum", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_enum")
|
||||
public List<ArrayEnumEnum> getArrayEnum() {
|
||||
return arrayEnum;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string")
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
@@ -102,7 +101,6 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string_required")
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
@@ -140,7 +138,6 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_integer")
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
@@ -178,10 +175,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_number")
|
||||
private EnumNumberEnum enumNumber;
|
||||
|
||||
@JsonProperty("outerEnum")
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
/**
|
||||
@@ -211,6 +206,7 @@ public class EnumTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("enum_string")
|
||||
public EnumStringEnum getEnumString() {
|
||||
return enumString;
|
||||
}
|
||||
@@ -230,6 +226,7 @@ public class EnumTest {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "enum_string_required", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("enum_string_required")
|
||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
return enumStringRequired;
|
||||
}
|
||||
@@ -249,6 +246,7 @@ public class EnumTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "enum_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("enum_integer")
|
||||
public EnumIntegerEnum getEnumInteger() {
|
||||
return enumInteger;
|
||||
}
|
||||
@@ -268,6 +266,7 @@ public class EnumTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "enum_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("enum_number")
|
||||
public EnumNumberEnum getEnumNumber() {
|
||||
return enumNumber;
|
||||
}
|
||||
@@ -287,6 +286,7 @@ public class EnumTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "outerEnum", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("outerEnum")
|
||||
public OuterEnum getOuterEnum() {
|
||||
return outerEnum;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class File {
|
||||
|
||||
@JsonProperty("sourceURI")
|
||||
private String sourceURI;
|
||||
|
||||
public File sourceURI(String sourceURI) {
|
||||
@@ -36,6 +35,7 @@ public class File {
|
||||
*/
|
||||
|
||||
@Schema(name = "sourceURI", description = "Test capitalization", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("sourceURI")
|
||||
public String getSourceURI() {
|
||||
return sourceURI;
|
||||
}
|
||||
|
||||
@@ -24,10 +24,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("file")
|
||||
private File file;
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<@Valid File> files;
|
||||
|
||||
@@ -42,6 +40,7 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "file", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("file")
|
||||
public File getFile() {
|
||||
return file;
|
||||
}
|
||||
@@ -69,6 +68,7 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("files")
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
@@ -29,48 +29,34 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class FormatTest {
|
||||
|
||||
@JsonProperty("integer")
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
private String string;
|
||||
|
||||
@JsonProperty("byte")
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
private org.springframework.core.io.Resource binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||
private LocalDate date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
/**
|
||||
@@ -105,6 +91,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Min(10) @Max(100)
|
||||
@Schema(name = "integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("integer")
|
||||
public Integer getInteger() {
|
||||
return integer;
|
||||
}
|
||||
@@ -126,6 +113,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Min(20) @Max(200)
|
||||
@Schema(name = "int32", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("int32")
|
||||
public Integer getInt32() {
|
||||
return int32;
|
||||
}
|
||||
@@ -145,6 +133,7 @@ public class FormatTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "int64", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("int64")
|
||||
public Long getInt64() {
|
||||
return int64;
|
||||
}
|
||||
@@ -166,6 +155,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")
|
||||
@Schema(name = "number", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("number")
|
||||
public BigDecimal getNumber() {
|
||||
return number;
|
||||
}
|
||||
@@ -187,6 +177,7 @@ public class FormatTest {
|
||||
*/
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")
|
||||
@Schema(name = "float", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("float")
|
||||
public Float getFloat() {
|
||||
return _float;
|
||||
}
|
||||
@@ -208,6 +199,7 @@ public class FormatTest {
|
||||
*/
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")
|
||||
@Schema(name = "double", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("double")
|
||||
public Double getDouble() {
|
||||
return _double;
|
||||
}
|
||||
@@ -227,6 +219,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Pattern(regexp = "/[a-z]/i")
|
||||
@Schema(name = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("string")
|
||||
public String getString() {
|
||||
return string;
|
||||
}
|
||||
@@ -246,6 +239,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "byte", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("byte")
|
||||
public byte[] getByte() {
|
||||
return _byte;
|
||||
}
|
||||
@@ -265,6 +259,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "binary", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("binary")
|
||||
public org.springframework.core.io.Resource getBinary() {
|
||||
return binary;
|
||||
}
|
||||
@@ -284,6 +279,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@Schema(name = "date", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("date")
|
||||
public LocalDate getDate() {
|
||||
return date;
|
||||
}
|
||||
@@ -303,6 +299,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("dateTime")
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@@ -322,6 +319,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@@ -341,6 +339,7 @@ public class FormatTest {
|
||||
*/
|
||||
@NotNull @Size(min = 10, max = 64)
|
||||
@Schema(name = "password", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@@ -360,6 +359,7 @@ public class FormatTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "BigDecimal", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("BigDecimal")
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
@@ -23,10 +23,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class HasOnlyReadOnly {
|
||||
|
||||
@JsonProperty("bar")
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("foo")
|
||||
private String foo;
|
||||
|
||||
public HasOnlyReadOnly bar(String bar) {
|
||||
@@ -40,6 +38,7 @@ public class HasOnlyReadOnly {
|
||||
*/
|
||||
|
||||
@Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("bar")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@@ -59,6 +58,7 @@ public class HasOnlyReadOnly {
|
||||
*/
|
||||
|
||||
@Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("foo")
|
||||
public String getFoo() {
|
||||
return foo;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class MapTest {
|
||||
|
||||
@JsonProperty("map_map_of_string")
|
||||
@Valid
|
||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
|
||||
|
||||
@@ -63,15 +62,12 @@ public class MapTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("map_of_enum_string")
|
||||
@Valid
|
||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
|
||||
|
||||
@JsonProperty("direct_map")
|
||||
@Valid
|
||||
private Map<String, Boolean> directMap = new HashMap<>();
|
||||
|
||||
@JsonProperty("indirect_map")
|
||||
@Valid
|
||||
private Map<String, Boolean> indirectMap = new HashMap<>();
|
||||
|
||||
@@ -94,6 +90,7 @@ public class MapTest {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_map_of_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_map_of_string")
|
||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
return mapMapOfString;
|
||||
}
|
||||
@@ -121,6 +118,7 @@ public class MapTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "map_of_enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_of_enum_string")
|
||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||
return mapOfEnumString;
|
||||
}
|
||||
@@ -148,6 +146,7 @@ public class MapTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "direct_map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("direct_map")
|
||||
public Map<String, Boolean> getDirectMap() {
|
||||
return directMap;
|
||||
}
|
||||
@@ -175,6 +174,7 @@ public class MapTest {
|
||||
*/
|
||||
|
||||
@Schema(name = "indirect_map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("indirect_map")
|
||||
public Map<String, Boolean> getIndirectMap() {
|
||||
return indirectMap;
|
||||
}
|
||||
|
||||
@@ -27,14 +27,11 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty("uuid")
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
@Valid
|
||||
private Map<String, Animal> map = new HashMap<>();
|
||||
|
||||
@@ -49,6 +46,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "uuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
@@ -68,6 +66,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("dateTime")
|
||||
public OffsetDateTime getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
@@ -95,6 +94,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map")
|
||||
public Map<String, Animal> getMap() {
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -24,10 +24,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Model200Response {
|
||||
|
||||
@JsonProperty("name")
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("class")
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
@@ -41,6 +39,7 @@ public class Model200Response {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -60,6 +59,7 @@ public class Model200Response {
|
||||
*/
|
||||
|
||||
@Schema(name = "class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("class")
|
||||
public String getPropertyClass() {
|
||||
return propertyClass;
|
||||
}
|
||||
|
||||
@@ -23,13 +23,10 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelApiResponse {
|
||||
|
||||
@JsonProperty("code")
|
||||
private Integer code;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
@@ -43,6 +40,7 @@ public class ModelApiResponse {
|
||||
*/
|
||||
|
||||
@Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("code")
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
@@ -62,6 +60,7 @@ public class ModelApiResponse {
|
||||
*/
|
||||
|
||||
@Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@@ -81,6 +80,7 @@ public class ModelApiResponse {
|
||||
*/
|
||||
|
||||
@Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("message")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelList {
|
||||
|
||||
@JsonProperty("123-list")
|
||||
private String _123list;
|
||||
|
||||
public ModelList _123list(String _123list) {
|
||||
@@ -37,6 +36,7 @@ public class ModelList {
|
||||
*/
|
||||
|
||||
@Schema(name = "123-list", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("123-list")
|
||||
public String get123list() {
|
||||
return _123list;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ModelReturn {
|
||||
|
||||
@JsonProperty("return")
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
@@ -38,6 +37,7 @@ public class ModelReturn {
|
||||
*/
|
||||
|
||||
@Schema(name = "return", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("return")
|
||||
public Integer getReturn() {
|
||||
return _return;
|
||||
}
|
||||
|
||||
@@ -22,16 +22,12 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Name {
|
||||
|
||||
@JsonProperty("name")
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("snake_case")
|
||||
private Integer snakeCase;
|
||||
|
||||
@JsonProperty("property")
|
||||
private String property;
|
||||
|
||||
@JsonProperty("123Number")
|
||||
private Integer _123number;
|
||||
|
||||
/**
|
||||
@@ -61,6 +57,7 @@ public class Name {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -80,6 +77,7 @@ public class Name {
|
||||
*/
|
||||
|
||||
@Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("snake_case")
|
||||
public Integer getSnakeCase() {
|
||||
return snakeCase;
|
||||
}
|
||||
@@ -99,6 +97,7 @@ public class Name {
|
||||
*/
|
||||
|
||||
@Schema(name = "property", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("property")
|
||||
public String getProperty() {
|
||||
return property;
|
||||
}
|
||||
@@ -118,6 +117,7 @@ public class Name {
|
||||
*/
|
||||
|
||||
@Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("123Number")
|
||||
public Integer get123number() {
|
||||
return _123number;
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class NumberOnly {
|
||||
|
||||
@JsonProperty("JustNumber")
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
@@ -36,6 +35,7 @@ public class NumberOnly {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "JustNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("JustNumber")
|
||||
public BigDecimal getJustNumber() {
|
||||
return justNumber;
|
||||
}
|
||||
|
||||
@@ -24,16 +24,12 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Order {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("petId")
|
||||
private Long petId;
|
||||
|
||||
@JsonProperty("quantity")
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||
private OffsetDateTime shipDate;
|
||||
|
||||
@@ -74,10 +70,8 @@ public class Order {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
private StatusEnum status;
|
||||
|
||||
@JsonProperty("complete")
|
||||
private Boolean complete = false;
|
||||
|
||||
public Order id(Long id) {
|
||||
@@ -91,6 +85,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -110,6 +105,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("petId")
|
||||
public Long getPetId() {
|
||||
return petId;
|
||||
}
|
||||
@@ -129,6 +125,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("quantity")
|
||||
public Integer getQuantity() {
|
||||
return quantity;
|
||||
}
|
||||
@@ -148,6 +145,7 @@ public class Order {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("shipDate")
|
||||
public OffsetDateTime getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
@@ -167,6 +165,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
@@ -186,6 +185,7 @@ public class Order {
|
||||
*/
|
||||
|
||||
@Schema(name = "complete", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("complete")
|
||||
public Boolean getComplete() {
|
||||
return complete;
|
||||
}
|
||||
|
||||
@@ -22,13 +22,10 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class OuterComposite {
|
||||
|
||||
@JsonProperty("my_number")
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@JsonProperty("my_string")
|
||||
private String myString;
|
||||
|
||||
@JsonProperty("my_boolean")
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
@@ -42,6 +39,7 @@ public class OuterComposite {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "my_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("my_number")
|
||||
public BigDecimal getMyNumber() {
|
||||
return myNumber;
|
||||
}
|
||||
@@ -61,6 +59,7 @@ public class OuterComposite {
|
||||
*/
|
||||
|
||||
@Schema(name = "my_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("my_string")
|
||||
public String getMyString() {
|
||||
return myString;
|
||||
}
|
||||
@@ -80,6 +79,7 @@ public class OuterComposite {
|
||||
*/
|
||||
|
||||
@Schema(name = "my_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("my_boolean")
|
||||
public Boolean getMyBoolean() {
|
||||
return myBoolean;
|
||||
}
|
||||
|
||||
@@ -29,20 +29,15 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Pet {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
private Category category;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
@JsonProperty("photoUrls")
|
||||
@Valid
|
||||
private Set<String> photoUrls = new LinkedHashSet<>();
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<@Valid Tag> tags;
|
||||
|
||||
@@ -83,7 +78,6 @@ public class Pet {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
private StatusEnum status;
|
||||
|
||||
/**
|
||||
@@ -114,6 +108,7 @@ public class Pet {
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -133,6 +128,7 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
@@ -152,6 +148,7 @@ public class Pet {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "name", example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -179,6 +176,7 @@ public class Pet {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "photoUrls", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("photoUrls")
|
||||
public Set<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
}
|
||||
@@ -207,6 +205,7 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("tags")
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
@@ -226,6 +225,7 @@ public class Pet {
|
||||
*/
|
||||
|
||||
@Schema(name = "status", description = "pet status in the store", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("status")
|
||||
public StatusEnum getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ReadOnlyFirst {
|
||||
|
||||
@JsonProperty("bar")
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("baz")
|
||||
private String baz;
|
||||
|
||||
public ReadOnlyFirst bar(String bar) {
|
||||
@@ -38,6 +36,7 @@ public class ReadOnlyFirst {
|
||||
*/
|
||||
|
||||
@Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("bar")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@@ -57,6 +56,7 @@ public class ReadOnlyFirst {
|
||||
*/
|
||||
|
||||
@Schema(name = "baz", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("baz")
|
||||
public String getBaz() {
|
||||
return baz;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
package org.openapitools.model;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.Objects;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import 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;
|
||||
|
||||
/**
|
||||
* ResponseObjectWithDifferentFieldNames
|
||||
*/
|
||||
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class ResponseObjectWithDifferentFieldNames {
|
||||
|
||||
private String normalPropertyName;
|
||||
|
||||
private String UPPER_CASE_PROPERTY_SNAKE;
|
||||
|
||||
private String lowerCasePropertyDashes;
|
||||
|
||||
private String propertyNameWithSpaces;
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) {
|
||||
this.normalPropertyName = normalPropertyName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get normalPropertyName
|
||||
* @return normalPropertyName
|
||||
*/
|
||||
|
||||
@Schema(name = "normalPropertyName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("normalPropertyName")
|
||||
public String getNormalPropertyName() {
|
||||
return normalPropertyName;
|
||||
}
|
||||
|
||||
public void setNormalPropertyName(String normalPropertyName) {
|
||||
this.normalPropertyName = normalPropertyName;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
||||
this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get UPPER_CASE_PROPERTY_SNAKE
|
||||
* @return UPPER_CASE_PROPERTY_SNAKE
|
||||
*/
|
||||
|
||||
@Schema(name = "UPPER_CASE_PROPERTY_SNAKE", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("UPPER_CASE_PROPERTY_SNAKE")
|
||||
public String getUPPERCASEPROPERTYSNAKE() {
|
||||
return UPPER_CASE_PROPERTY_SNAKE;
|
||||
}
|
||||
|
||||
public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
||||
this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
||||
this.lowerCasePropertyDashes = lowerCasePropertyDashes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lowerCasePropertyDashes
|
||||
* @return lowerCasePropertyDashes
|
||||
*/
|
||||
|
||||
@Schema(name = "lower-case-property-dashes", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("lower-case-property-dashes")
|
||||
public String getLowerCasePropertyDashes() {
|
||||
return lowerCasePropertyDashes;
|
||||
}
|
||||
|
||||
public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
||||
this.lowerCasePropertyDashes = lowerCasePropertyDashes;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) {
|
||||
this.propertyNameWithSpaces = propertyNameWithSpaces;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get propertyNameWithSpaces
|
||||
* @return propertyNameWithSpaces
|
||||
*/
|
||||
|
||||
@Schema(name = "property name with spaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("property name with spaces")
|
||||
public String getPropertyNameWithSpaces() {
|
||||
return propertyNameWithSpaces;
|
||||
}
|
||||
|
||||
public void setPropertyNameWithSpaces(String propertyNameWithSpaces) {
|
||||
this.propertyNameWithSpaces = propertyNameWithSpaces;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ResponseObjectWithDifferentFieldNames responseObjectWithDifferentFieldNames = (ResponseObjectWithDifferentFieldNames) o;
|
||||
return Objects.equals(this.normalPropertyName, responseObjectWithDifferentFieldNames.normalPropertyName) &&
|
||||
Objects.equals(this.UPPER_CASE_PROPERTY_SNAKE, responseObjectWithDifferentFieldNames.UPPER_CASE_PROPERTY_SNAKE) &&
|
||||
Objects.equals(this.lowerCasePropertyDashes, responseObjectWithDifferentFieldNames.lowerCasePropertyDashes) &&
|
||||
Objects.equals(this.propertyNameWithSpaces, responseObjectWithDifferentFieldNames.propertyNameWithSpaces);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(normalPropertyName, UPPER_CASE_PROPERTY_SNAKE, lowerCasePropertyDashes, propertyNameWithSpaces);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ResponseObjectWithDifferentFieldNames {\n");
|
||||
sb.append(" normalPropertyName: ").append(toIndentedString(normalPropertyName)).append("\n");
|
||||
sb.append(" UPPER_CASE_PROPERTY_SNAKE: ").append(toIndentedString(UPPER_CASE_PROPERTY_SNAKE)).append("\n");
|
||||
sb.append(" lowerCasePropertyDashes: ").append(toIndentedString(lowerCasePropertyDashes)).append("\n");
|
||||
sb.append(" propertyNameWithSpaces: ").append(toIndentedString(propertyNameWithSpaces)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class SpecialModelName {
|
||||
|
||||
@JsonProperty("$special[property.name]")
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
@@ -37,6 +36,7 @@ public class SpecialModelName {
|
||||
*/
|
||||
|
||||
@Schema(name = "$special[property.name]", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("$special[property.name]")
|
||||
public Long get$SpecialPropertyName() {
|
||||
return $specialPropertyName;
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class Tag {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
public Tag id(Long id) {
|
||||
@@ -38,6 +36,7 @@ public class Tag {
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -57,6 +56,7 @@ public class Tag {
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -24,19 +24,14 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class TypeHolderDefault {
|
||||
|
||||
@JsonProperty("string_item")
|
||||
private String stringItem = "what";
|
||||
|
||||
@JsonProperty("number_item")
|
||||
private BigDecimal numberItem = new BigDecimal("1.234");
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
private Integer integerItem = -2;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
private Boolean boolItem = true;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
@Valid
|
||||
private List<Integer> arrayItem = new ArrayList<>(Arrays.asList(0, 1, 2, 3));
|
||||
|
||||
@@ -71,6 +66,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "string_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("string_item")
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
@@ -90,6 +86,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@Schema(name = "number_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("number_item")
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
@@ -109,6 +106,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "integer_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("integer_item")
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
@@ -128,6 +126,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "bool_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("bool_item")
|
||||
public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
@@ -155,6 +154,7 @@ public class TypeHolderDefault {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "array_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("array_item")
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
@@ -24,22 +24,16 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class TypeHolderExample {
|
||||
|
||||
@JsonProperty("string_item")
|
||||
private String stringItem;
|
||||
|
||||
@JsonProperty("number_item")
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("float_item")
|
||||
private Float floatItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
private Boolean boolItem;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
@Valid
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
@@ -75,6 +69,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "string_item", example = "what", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("string_item")
|
||||
public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
@@ -94,6 +89,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@Schema(name = "number_item", example = "1.234", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("number_item")
|
||||
public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
@@ -113,6 +109,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "float_item", example = "1.234", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("float_item")
|
||||
public Float getFloatItem() {
|
||||
return floatItem;
|
||||
}
|
||||
@@ -132,6 +129,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "integer_item", example = "-2", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("integer_item")
|
||||
public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
@@ -151,6 +149,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "bool_item", example = "true", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("bool_item")
|
||||
public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
@@ -178,6 +177,7 @@ public class TypeHolderExample {
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "array_item", example = "[0,1,2,3]", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("array_item")
|
||||
public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
@@ -21,28 +21,20 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class User {
|
||||
|
||||
@JsonProperty("id")
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("username")
|
||||
private String username;
|
||||
|
||||
@JsonProperty("firstName")
|
||||
private String firstName;
|
||||
|
||||
@JsonProperty("lastName")
|
||||
private String lastName;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password;
|
||||
|
||||
@JsonProperty("phone")
|
||||
private String phone;
|
||||
|
||||
@JsonProperty("userStatus")
|
||||
private Integer userStatus;
|
||||
|
||||
public User id(Long id) {
|
||||
@@ -56,6 +48,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -75,6 +68,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
@@ -94,6 +88,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("firstName")
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
@@ -113,6 +108,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("lastName")
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
@@ -132,6 +128,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
@@ -151,6 +148,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
@@ -170,6 +168,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("phone")
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
@@ -189,6 +188,7 @@ public class User {
|
||||
*/
|
||||
|
||||
@Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("userStatus")
|
||||
public Integer getUserStatus() {
|
||||
return userStatus;
|
||||
}
|
||||
|
||||
@@ -24,99 +24,70 @@ import javax.annotation.Generated;
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class XmlItem {
|
||||
|
||||
@JsonProperty("attribute_string")
|
||||
private String attributeString;
|
||||
|
||||
@JsonProperty("attribute_number")
|
||||
private BigDecimal attributeNumber;
|
||||
|
||||
@JsonProperty("attribute_integer")
|
||||
private Integer attributeInteger;
|
||||
|
||||
@JsonProperty("attribute_boolean")
|
||||
private Boolean attributeBoolean;
|
||||
|
||||
@JsonProperty("wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> wrappedArray;
|
||||
|
||||
@JsonProperty("name_string")
|
||||
private String nameString;
|
||||
|
||||
@JsonProperty("name_number")
|
||||
private BigDecimal nameNumber;
|
||||
|
||||
@JsonProperty("name_integer")
|
||||
private Integer nameInteger;
|
||||
|
||||
@JsonProperty("name_boolean")
|
||||
private Boolean nameBoolean;
|
||||
|
||||
@JsonProperty("name_array")
|
||||
@Valid
|
||||
private List<Integer> nameArray;
|
||||
|
||||
@JsonProperty("name_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> nameWrappedArray;
|
||||
|
||||
@JsonProperty("prefix_string")
|
||||
private String prefixString;
|
||||
|
||||
@JsonProperty("prefix_number")
|
||||
private BigDecimal prefixNumber;
|
||||
|
||||
@JsonProperty("prefix_integer")
|
||||
private Integer prefixInteger;
|
||||
|
||||
@JsonProperty("prefix_boolean")
|
||||
private Boolean prefixBoolean;
|
||||
|
||||
@JsonProperty("prefix_array")
|
||||
@Valid
|
||||
private List<Integer> prefixArray;
|
||||
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> prefixWrappedArray;
|
||||
|
||||
@JsonProperty("namespace_string")
|
||||
private String namespaceString;
|
||||
|
||||
@JsonProperty("namespace_number")
|
||||
private BigDecimal namespaceNumber;
|
||||
|
||||
@JsonProperty("namespace_integer")
|
||||
private Integer namespaceInteger;
|
||||
|
||||
@JsonProperty("namespace_boolean")
|
||||
private Boolean namespaceBoolean;
|
||||
|
||||
@JsonProperty("namespace_array")
|
||||
@Valid
|
||||
private List<Integer> namespaceArray;
|
||||
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> namespaceWrappedArray;
|
||||
|
||||
@JsonProperty("prefix_ns_string")
|
||||
private String prefixNsString;
|
||||
|
||||
@JsonProperty("prefix_ns_number")
|
||||
private BigDecimal prefixNsNumber;
|
||||
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
private Integer prefixNsInteger;
|
||||
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
private Boolean prefixNsBoolean;
|
||||
|
||||
@JsonProperty("prefix_ns_array")
|
||||
@Valid
|
||||
private List<Integer> prefixNsArray;
|
||||
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
@Valid
|
||||
private List<Integer> prefixNsWrappedArray;
|
||||
|
||||
@@ -131,6 +102,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "attribute_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_string")
|
||||
public String getAttributeString() {
|
||||
return attributeString;
|
||||
}
|
||||
@@ -150,6 +122,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "attribute_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_number")
|
||||
public BigDecimal getAttributeNumber() {
|
||||
return attributeNumber;
|
||||
}
|
||||
@@ -169,6 +142,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_integer")
|
||||
public Integer getAttributeInteger() {
|
||||
return attributeInteger;
|
||||
}
|
||||
@@ -188,6 +162,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "attribute_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_boolean")
|
||||
public Boolean getAttributeBoolean() {
|
||||
return attributeBoolean;
|
||||
}
|
||||
@@ -215,6 +190,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("wrapped_array")
|
||||
public List<Integer> getWrappedArray() {
|
||||
return wrappedArray;
|
||||
}
|
||||
@@ -234,6 +210,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "name_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_string")
|
||||
public String getNameString() {
|
||||
return nameString;
|
||||
}
|
||||
@@ -253,6 +230,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "name_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_number")
|
||||
public BigDecimal getNameNumber() {
|
||||
return nameNumber;
|
||||
}
|
||||
@@ -272,6 +250,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_integer")
|
||||
public Integer getNameInteger() {
|
||||
return nameInteger;
|
||||
}
|
||||
@@ -291,6 +270,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "name_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_boolean")
|
||||
public Boolean getNameBoolean() {
|
||||
return nameBoolean;
|
||||
}
|
||||
@@ -318,6 +298,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "name_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_array")
|
||||
public List<Integer> getNameArray() {
|
||||
return nameArray;
|
||||
}
|
||||
@@ -345,6 +326,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "name_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_wrapped_array")
|
||||
public List<Integer> getNameWrappedArray() {
|
||||
return nameWrappedArray;
|
||||
}
|
||||
@@ -364,6 +346,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_string")
|
||||
public String getPrefixString() {
|
||||
return prefixString;
|
||||
}
|
||||
@@ -383,6 +366,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "prefix_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_number")
|
||||
public BigDecimal getPrefixNumber() {
|
||||
return prefixNumber;
|
||||
}
|
||||
@@ -402,6 +386,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_integer")
|
||||
public Integer getPrefixInteger() {
|
||||
return prefixInteger;
|
||||
}
|
||||
@@ -421,6 +406,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_boolean")
|
||||
public Boolean getPrefixBoolean() {
|
||||
return prefixBoolean;
|
||||
}
|
||||
@@ -448,6 +434,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_array")
|
||||
public List<Integer> getPrefixArray() {
|
||||
return prefixArray;
|
||||
}
|
||||
@@ -475,6 +462,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
public List<Integer> getPrefixWrappedArray() {
|
||||
return prefixWrappedArray;
|
||||
}
|
||||
@@ -494,6 +482,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_string")
|
||||
public String getNamespaceString() {
|
||||
return namespaceString;
|
||||
}
|
||||
@@ -513,6 +502,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "namespace_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_number")
|
||||
public BigDecimal getNamespaceNumber() {
|
||||
return namespaceNumber;
|
||||
}
|
||||
@@ -532,6 +522,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_integer")
|
||||
public Integer getNamespaceInteger() {
|
||||
return namespaceInteger;
|
||||
}
|
||||
@@ -551,6 +542,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_boolean")
|
||||
public Boolean getNamespaceBoolean() {
|
||||
return namespaceBoolean;
|
||||
}
|
||||
@@ -578,6 +570,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_array")
|
||||
public List<Integer> getNamespaceArray() {
|
||||
return namespaceArray;
|
||||
}
|
||||
@@ -605,6 +598,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
public List<Integer> getNamespaceWrappedArray() {
|
||||
return namespaceWrappedArray;
|
||||
}
|
||||
@@ -624,6 +618,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_string")
|
||||
public String getPrefixNsString() {
|
||||
return prefixNsString;
|
||||
}
|
||||
@@ -643,6 +638,7 @@ public class XmlItem {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "prefix_ns_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_number")
|
||||
public BigDecimal getPrefixNsNumber() {
|
||||
return prefixNsNumber;
|
||||
}
|
||||
@@ -662,6 +658,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
public Integer getPrefixNsInteger() {
|
||||
return prefixNsInteger;
|
||||
}
|
||||
@@ -681,6 +678,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
public Boolean getPrefixNsBoolean() {
|
||||
return prefixNsBoolean;
|
||||
}
|
||||
@@ -708,6 +706,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_array")
|
||||
public List<Integer> getPrefixNsArray() {
|
||||
return prefixNsArray;
|
||||
}
|
||||
@@ -735,6 +734,7 @@ public class XmlItem {
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
public List<Integer> getPrefixNsWrappedArray() {
|
||||
return prefixNsWrappedArray;
|
||||
}
|
||||
|
||||
@@ -1174,6 +1174,31 @@ paths:
|
||||
x-accepts: application/json
|
||||
x-tags:
|
||||
- tag: pet
|
||||
/fake/{petId}/response-object-different-names:
|
||||
get:
|
||||
operationId: responseObjectDifferentNames
|
||||
parameters:
|
||||
- description: ID of pet to update
|
||||
explode: false
|
||||
in: path
|
||||
name: petId
|
||||
required: true
|
||||
schema:
|
||||
format: int64
|
||||
type: integer
|
||||
style: simple
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ResponseObjectWithDifferentFieldNames'
|
||||
description: successful operation
|
||||
tags:
|
||||
- pet
|
||||
x-accepts: application/json
|
||||
x-tags:
|
||||
- tag: pet
|
||||
components:
|
||||
requestBodies:
|
||||
UserArray:
|
||||
@@ -2114,6 +2139,22 @@ components:
|
||||
- nullable_required_array
|
||||
- required_array
|
||||
type: object
|
||||
ResponseObjectWithDifferentFieldNames:
|
||||
example:
|
||||
UPPER_CASE_PROPERTY_SNAKE: UPPER_CASE_PROPERTY_SNAKE
|
||||
lower-case-property-dashes: lower-case-property-dashes
|
||||
property name with spaces: property name with spaces
|
||||
normalPropertyName: normalPropertyName
|
||||
properties:
|
||||
normalPropertyName:
|
||||
type: string
|
||||
UPPER_CASE_PROPERTY_SNAKE:
|
||||
type: string
|
||||
lower-case-property-dashes:
|
||||
type: string
|
||||
property name with spaces:
|
||||
type: string
|
||||
type: object
|
||||
updatePetWithForm_request:
|
||||
properties:
|
||||
name:
|
||||
|
||||
Reference in New Issue
Block a user