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:
parent
162623e49b
commit
6e649af9a7
@ -45,7 +45,6 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{/isContainer}}
|
{{/isContainer}}
|
||||||
{{/isEnum}}
|
{{/isEnum}}
|
||||||
{{#jackson}}
|
{{#jackson}}
|
||||||
@JsonProperty("{{baseName}}")
|
|
||||||
{{#withXml}}
|
{{#withXml}}
|
||||||
@JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
@JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{.}}", {{/xmlNamespace}}localName = "{{xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
||||||
{{/withXml}}
|
{{/withXml}}
|
||||||
@ -185,6 +184,9 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{#swagger1AnnotationLibrary}}
|
{{#swagger1AnnotationLibrary}}
|
||||||
@ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}")
|
@ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}")
|
||||||
{{/swagger1AnnotationLibrary}}
|
{{/swagger1AnnotationLibrary}}
|
||||||
|
{{#jackson}}
|
||||||
|
@JsonProperty("{{baseName}}")
|
||||||
|
{{/jackson}}
|
||||||
public {{>nullableDataType}} {{getter}}() {
|
public {{>nullableDataType}} {{getter}}() {
|
||||||
return {{name}};
|
return {{name}};
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,13 @@ public abstract class AbstractAnnotationAssert<ACTUAL extends AbstractAnnotation
|
|||||||
return myself();
|
return myself();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ACTUAL doesNotContainsWithName(final String name) {
|
||||||
|
super
|
||||||
|
.withFailMessage("Should have annotation with name: " + name)
|
||||||
|
.noneMatch(annotation -> annotation.getNameAsString().equals(name));
|
||||||
|
return myself();
|
||||||
|
}
|
||||||
|
|
||||||
public ACTUAL containsWithNameAndAttributes(final String name, final Map<String, String> attributes) {
|
public ACTUAL containsWithNameAndAttributes(final String name, final Map<String, String> attributes) {
|
||||||
super
|
super
|
||||||
.withFailMessage("Should have annotation with name: " + name + " and attributes: " + attributes + ", but was: " + actual)
|
.withFailMessage("Should have annotation with name: " + name + " and attributes: " + attributes + ", but was: " + actual)
|
||||||
|
@ -2144,4 +2144,57 @@ public class SpringCodegenTest {
|
|||||||
return generator.opts(input).generate().stream()
|
return generator.opts(input).generate().stream()
|
||||||
.collect(Collectors.toMap(File::getName, Function.identity()));
|
.collect(Collectors.toMap(File::getName, Function.identity()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void shouldGenerateJsonPropertyAnnotationLocatedInGetters_issue5705() throws IOException {
|
||||||
|
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||||
|
output.deleteOnExit();
|
||||||
|
|
||||||
|
OpenAPI openAPI = new OpenAPIParser()
|
||||||
|
.readLocation("src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml", null, new ParseOptions()).getOpenAPI();
|
||||||
|
SpringCodegen codegen = new SpringCodegen();
|
||||||
|
codegen.setLibrary(SPRING_BOOT);
|
||||||
|
codegen.setOutputDir(output.getAbsolutePath());
|
||||||
|
|
||||||
|
ClientOptInput input = new ClientOptInput()
|
||||||
|
.openAPI(openAPI)
|
||||||
|
.config(codegen);
|
||||||
|
|
||||||
|
DefaultGenerator generator = new DefaultGenerator();
|
||||||
|
Map<String, File> files = generator.opts(input).generate().stream()
|
||||||
|
.collect(Collectors.toMap(File::getName, Function.identity()));
|
||||||
|
|
||||||
|
JavaFileAssert.assertThat(files.get("ResponseObjectWithDifferentFieldNames.java"))
|
||||||
|
.hasProperty("normalPropertyName")
|
||||||
|
.assertPropertyAnnotations()
|
||||||
|
.doesNotContainsWithName("JsonProperty")
|
||||||
|
.toProperty().toType()
|
||||||
|
.hasProperty("UPPER_CASE_PROPERTY_SNAKE")
|
||||||
|
.assertPropertyAnnotations()
|
||||||
|
.doesNotContainsWithName("JsonProperty")
|
||||||
|
.toProperty().toType()
|
||||||
|
.hasProperty("lowerCasePropertyDashes")
|
||||||
|
.assertPropertyAnnotations()
|
||||||
|
.doesNotContainsWithName("JsonProperty")
|
||||||
|
.toProperty().toType()
|
||||||
|
.hasProperty("propertyNameWithSpaces")
|
||||||
|
.assertPropertyAnnotations()
|
||||||
|
.doesNotContainsWithName("JsonProperty")
|
||||||
|
.toProperty().toType()
|
||||||
|
.assertMethod("getNormalPropertyName")
|
||||||
|
.assertMethodAnnotations()
|
||||||
|
.containsWithNameAndAttributes("JsonProperty", ImmutableMap.of("value", "\"normalPropertyName\""))
|
||||||
|
.toMethod().toFileAssert()
|
||||||
|
.assertMethod("getUPPERCASEPROPERTYSNAKE")
|
||||||
|
.assertMethodAnnotations()
|
||||||
|
.containsWithNameAndAttributes("JsonProperty", ImmutableMap.of("value", "\"UPPER_CASE_PROPERTY_SNAKE\""))
|
||||||
|
.toMethod().toFileAssert()
|
||||||
|
.assertMethod("getLowerCasePropertyDashes")
|
||||||
|
.assertMethodAnnotations()
|
||||||
|
.containsWithNameAndAttributes("JsonProperty", ImmutableMap.of("value", "\"lower-case-property-dashes\""))
|
||||||
|
.toMethod().toFileAssert()
|
||||||
|
.assertMethod("getPropertyNameWithSpaces")
|
||||||
|
.assertMethodAnnotations()
|
||||||
|
.containsWithNameAndAttributes("JsonProperty", ImmutableMap.of("value", "\"property name with spaces\""));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1091,6 +1091,26 @@ paths:
|
|||||||
- petstore_auth:
|
- petstore_auth:
|
||||||
- write:pets
|
- write:pets
|
||||||
- read:pets
|
- read:pets
|
||||||
|
/fake/{petId}/response-object-different-names:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- pet
|
||||||
|
operationId: responseObjectDifferentNames
|
||||||
|
parameters:
|
||||||
|
- name: petId
|
||||||
|
in: path
|
||||||
|
description: ID of pet to update
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/ResponseObjectWithDifferentFieldNames"
|
||||||
servers:
|
servers:
|
||||||
- url: http://petstore.swagger.io:80/v2
|
- url: http://petstore.swagger.io:80/v2
|
||||||
components:
|
components:
|
||||||
@ -2006,3 +2026,14 @@ components:
|
|||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
default: ["foo", "bar"]
|
default: ["foo", "bar"]
|
||||||
|
ResponseObjectWithDifferentFieldNames:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
normalPropertyName:
|
||||||
|
type: string
|
||||||
|
UPPER_CASE_PROPERTY_SNAKE:
|
||||||
|
type: string
|
||||||
|
lower-case-property-dashes:
|
||||||
|
type: string
|
||||||
|
property name with spaces:
|
||||||
|
type: string
|
||||||
|
@ -26,23 +26,17 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
@JsonProperty("@type")
|
|
||||||
private String atType = "Pet";
|
private String atType = "Pet";
|
||||||
|
|
||||||
@JsonProperty("age")
|
|
||||||
private Integer age = 4;
|
private Integer age = 4;
|
||||||
|
|
||||||
@JsonProperty("happy")
|
|
||||||
private Boolean happy = true;
|
private Boolean happy = true;
|
||||||
|
|
||||||
@JsonProperty("price")
|
|
||||||
private BigDecimal price = new BigDecimal("32000000000");
|
private BigDecimal price = new BigDecimal("32000000000");
|
||||||
|
|
||||||
@JsonProperty("lastFeed")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime lastFeed = OffsetDateTime.parse("1973-12-19T11:39:57Z[UTC]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault()));
|
private OffsetDateTime lastFeed = OffsetDateTime.parse("1973-12-19T11:39:57Z[UTC]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault()));
|
||||||
|
|
||||||
@JsonProperty("dateOfBirth")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||||
private LocalDate dateOfBirth = LocalDate.parse("2021-01-01");
|
private LocalDate dateOfBirth = LocalDate.parse("2021-01-01");
|
||||||
|
|
||||||
@ -73,6 +67,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("@type")
|
||||||
public String getAtType() {
|
public String getAtType() {
|
||||||
return atType;
|
return atType;
|
||||||
}
|
}
|
||||||
@ -92,6 +87,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("age")
|
||||||
public Integer getAge() {
|
public Integer getAge() {
|
||||||
return age;
|
return age;
|
||||||
}
|
}
|
||||||
@ -111,6 +107,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("happy")
|
||||||
public Boolean getHappy() {
|
public Boolean getHappy() {
|
||||||
return happy;
|
return happy;
|
||||||
}
|
}
|
||||||
@ -130,6 +127,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("price")
|
||||||
public BigDecimal getPrice() {
|
public BigDecimal getPrice() {
|
||||||
return price;
|
return price;
|
||||||
}
|
}
|
||||||
@ -149,6 +147,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("lastFeed")
|
||||||
public OffsetDateTime getLastFeed() {
|
public OffsetDateTime getLastFeed() {
|
||||||
return lastFeed;
|
return lastFeed;
|
||||||
}
|
}
|
||||||
@ -168,6 +167,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("dateOfBirth")
|
||||||
public LocalDate getDateOfBirth() {
|
public LocalDate getDateOfBirth() {
|
||||||
return dateOfBirth;
|
return dateOfBirth;
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,8 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Category id(Long id) {
|
public Category id(Long id) {
|
||||||
@ -40,6 +38,7 @@ public class Category {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -59,6 +58,7 @@ public class Category {
|
|||||||
*/
|
*/
|
||||||
@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -25,13 +25,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
@JsonProperty("code")
|
|
||||||
private Integer code;
|
private Integer code;
|
||||||
|
|
||||||
@JsonProperty("type")
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@JsonProperty("message")
|
|
||||||
private String message;
|
private String message;
|
||||||
|
|
||||||
public ModelApiResponse code(Integer code) {
|
public ModelApiResponse code(Integer code) {
|
||||||
@ -45,6 +42,7 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Integer getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
@ -64,6 +62,7 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -83,6 +82,7 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -26,16 +26,12 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("petId")
|
|
||||||
private Long petId;
|
private Long petId;
|
||||||
|
|
||||||
@JsonProperty("quantity")
|
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
@JsonProperty("shipDate")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime shipDate;
|
private OffsetDateTime shipDate;
|
||||||
|
|
||||||
@ -76,10 +72,8 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
|
||||||
private StatusEnum status;
|
private StatusEnum status;
|
||||||
|
|
||||||
@JsonProperty("complete")
|
|
||||||
private Boolean complete = false;
|
private Boolean complete = false;
|
||||||
|
|
||||||
public Order id(Long id) {
|
public Order id(Long id) {
|
||||||
@ -93,6 +87,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -112,6 +107,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("petId")
|
||||||
public Long getPetId() {
|
public Long getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
@ -131,6 +127,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("quantity")
|
||||||
public Integer getQuantity() {
|
public Integer getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
@ -150,6 +147,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("shipDate")
|
||||||
public OffsetDateTime getShipDate() {
|
public OffsetDateTime getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
@ -169,6 +167,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "Order Status")
|
@ApiModelProperty(value = "Order Status")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -188,6 +187,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("complete")
|
||||||
public Boolean getComplete() {
|
public Boolean getComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
@ -28,20 +28,15 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("category")
|
|
||||||
private Category category;
|
private Category category;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> photoUrls = new ArrayList<>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<@Valid Tag> tags;
|
private List<@Valid Tag> tags;
|
||||||
|
|
||||||
@ -82,7 +77,6 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
|
||||||
private StatusEnum status;
|
private StatusEnum status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -113,6 +107,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -132,6 +127,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("category")
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
@ -151,6 +147,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -178,6 +175,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("photoUrls")
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
}
|
}
|
||||||
@ -205,6 +203,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("tags")
|
||||||
public List<@Valid Tag> getTags() {
|
public List<@Valid Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
@ -224,6 +223,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "pet status in the store")
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,8 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Tag id(Long id) {
|
public Tag id(Long id) {
|
||||||
@ -40,6 +38,7 @@ public class Tag {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -59,6 +58,7 @@ public class Tag {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -23,28 +23,20 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("username")
|
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
@JsonProperty("firstName")
|
|
||||||
private String firstName;
|
private String firstName;
|
||||||
|
|
||||||
@JsonProperty("lastName")
|
|
||||||
private String lastName;
|
private String lastName;
|
||||||
|
|
||||||
@JsonProperty("email")
|
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
@JsonProperty("password")
|
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@JsonProperty("phone")
|
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
@JsonProperty("userStatus")
|
|
||||||
private Integer userStatus;
|
private Integer userStatus;
|
||||||
|
|
||||||
public User id(Long id) {
|
public User id(Long id) {
|
||||||
@ -58,6 +50,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -77,6 +70,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("username")
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
@ -96,6 +90,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("firstName")
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
@ -115,6 +110,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("lastName")
|
||||||
public String getLastName() {
|
public String getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
@ -134,6 +130,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("email")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
@ -153,6 +150,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -172,6 +170,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("phone")
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
@ -191,6 +190,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "User Status")
|
@ApiModelProperty(value = "User Status")
|
||||||
|
@JsonProperty("userStatus")
|
||||||
public Integer getUserStatus() {
|
public Integer getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,8 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Category id(Long id) {
|
public Category id(Long id) {
|
||||||
@ -40,6 +38,7 @@ public class Category {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -59,6 +58,7 @@ public class Category {
|
|||||||
*/
|
*/
|
||||||
@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -25,13 +25,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
@JsonProperty("code")
|
|
||||||
private Integer code;
|
private Integer code;
|
||||||
|
|
||||||
@JsonProperty("type")
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@JsonProperty("message")
|
|
||||||
private String message;
|
private String message;
|
||||||
|
|
||||||
public ModelApiResponse code(Integer code) {
|
public ModelApiResponse code(Integer code) {
|
||||||
@ -45,6 +42,7 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Integer getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
@ -64,6 +62,7 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -83,6 +82,7 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -26,16 +26,12 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("petId")
|
|
||||||
private Long petId;
|
private Long petId;
|
||||||
|
|
||||||
@JsonProperty("quantity")
|
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
@JsonProperty("shipDate")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime shipDate;
|
private OffsetDateTime shipDate;
|
||||||
|
|
||||||
@ -76,10 +72,8 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
|
||||||
private StatusEnum status;
|
private StatusEnum status;
|
||||||
|
|
||||||
@JsonProperty("complete")
|
|
||||||
private Boolean complete = false;
|
private Boolean complete = false;
|
||||||
|
|
||||||
public Order id(Long id) {
|
public Order id(Long id) {
|
||||||
@ -93,6 +87,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -112,6 +107,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("petId")
|
||||||
public Long getPetId() {
|
public Long getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
@ -131,6 +127,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("quantity")
|
||||||
public Integer getQuantity() {
|
public Integer getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
@ -150,6 +147,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("shipDate")
|
||||||
public OffsetDateTime getShipDate() {
|
public OffsetDateTime getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
@ -169,6 +167,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "Order Status")
|
@ApiModelProperty(value = "Order Status")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -188,6 +187,7 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("complete")
|
||||||
public Boolean getComplete() {
|
public Boolean getComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
@ -28,20 +28,15 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("category")
|
|
||||||
private Category category;
|
private Category category;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> photoUrls = new ArrayList<>();
|
private List<String> photoUrls = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<@Valid Tag> tags;
|
private List<@Valid Tag> tags;
|
||||||
|
|
||||||
@ -82,7 +77,6 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
|
||||||
private StatusEnum status;
|
private StatusEnum status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -113,6 +107,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -132,6 +127,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("category")
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
@ -151,6 +147,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -178,6 +175,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@JsonProperty("photoUrls")
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
}
|
}
|
||||||
@ -205,6 +203,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("tags")
|
||||||
public List<@Valid Tag> getTags() {
|
public List<@Valid Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
@ -224,6 +223,7 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "pet status in the store")
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,8 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Tag id(Long id) {
|
public Tag id(Long id) {
|
||||||
@ -40,6 +38,7 @@ public class Tag {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -59,6 +58,7 @@ public class Tag {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -23,28 +23,20 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("username")
|
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
@JsonProperty("firstName")
|
|
||||||
private String firstName;
|
private String firstName;
|
||||||
|
|
||||||
@JsonProperty("lastName")
|
|
||||||
private String lastName;
|
private String lastName;
|
||||||
|
|
||||||
@JsonProperty("email")
|
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
@JsonProperty("password")
|
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@JsonProperty("phone")
|
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
@JsonProperty("userStatus")
|
|
||||||
private Integer userStatus;
|
private Integer userStatus;
|
||||||
|
|
||||||
public User id(Long id) {
|
public User id(Long id) {
|
||||||
@ -58,6 +50,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -77,6 +70,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("username")
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
@ -96,6 +90,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("firstName")
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
@ -115,6 +110,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("lastName")
|
||||||
public String getLastName() {
|
public String getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
@ -134,6 +130,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("email")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
@ -153,6 +150,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -172,6 +170,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("phone")
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
@ -191,6 +190,7 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiModelProperty(value = "User Status")
|
@ApiModelProperty(value = "User Status")
|
||||||
|
@JsonProperty("userStatus")
|
||||||
public Integer getUserStatus() {
|
public Integer getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@ src/main/java/org/openapitools/model/OuterComposite.java
|
|||||||
src/main/java/org/openapitools/model/OuterEnum.java
|
src/main/java/org/openapitools/model/OuterEnum.java
|
||||||
src/main/java/org/openapitools/model/Pet.java
|
src/main/java/org/openapitools/model/Pet.java
|
||||||
src/main/java/org/openapitools/model/ReadOnlyFirst.java
|
src/main/java/org/openapitools/model/ReadOnlyFirst.java
|
||||||
|
src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNames.java
|
||||||
src/main/java/org/openapitools/model/SpecialModelName.java
|
src/main/java/org/openapitools/model/SpecialModelName.java
|
||||||
src/main/java/org/openapitools/model/Tag.java
|
src/main/java/org/openapitools/model/Tag.java
|
||||||
src/main/java/org/openapitools/model/TypeHolderDefault.java
|
src/main/java/org/openapitools/model/TypeHolderDefault.java
|
||||||
|
@ -7,6 +7,7 @@ package org.openapitools.api;
|
|||||||
|
|
||||||
import org.openapitools.model.ModelApiResponse;
|
import org.openapitools.model.ModelApiResponse;
|
||||||
import org.openapitools.model.Pet;
|
import org.openapitools.model.Pet;
|
||||||
|
import org.openapitools.model.ResponseObjectWithDifferentFieldNames;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@ -122,6 +123,22 @@ public interface PetApi {
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /fake/{petId}/response-object-different-names
|
||||||
|
*
|
||||||
|
* @param petId ID of pet to update (required)
|
||||||
|
* @return successful operation (status code 200)
|
||||||
|
*/
|
||||||
|
@HttpExchange(
|
||||||
|
method = "GET",
|
||||||
|
value = "/fake/{petId}/response-object-different-names",
|
||||||
|
accept = "application/json"
|
||||||
|
)
|
||||||
|
Mono<ResponseEntity<ResponseObjectWithDifferentFieldNames>> responseObjectDifferentNames(
|
||||||
|
@PathVariable("petId") Long petId
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PUT /pet : Update an existing pet
|
* PUT /pet : Update an existing pet
|
||||||
*
|
*
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesAnyType name(String name) {
|
public AdditionalPropertiesAnyType name(String name) {
|
||||||
@ -34,6 +33,7 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesArray name(String name) {
|
public AdditionalPropertiesArray name(String name) {
|
||||||
@ -35,6 +34,7 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesBoolean name(String name) {
|
public AdditionalPropertiesBoolean name(String name) {
|
||||||
@ -34,6 +33,7 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -26,45 +26,34 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesClass {
|
public class AdditionalPropertiesClass {
|
||||||
|
|
||||||
@JsonProperty("map_string")
|
|
||||||
|
|
||||||
private Map<String, String> mapString = new HashMap<>();
|
private Map<String, String> mapString = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_number")
|
|
||||||
|
|
||||||
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_integer")
|
|
||||||
|
|
||||||
private Map<String, Integer> mapInteger = new HashMap<>();
|
private Map<String, Integer> mapInteger = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_boolean")
|
|
||||||
|
|
||||||
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_array_integer")
|
|
||||||
|
|
||||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_array_anytype")
|
|
||||||
|
|
||||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_map_string")
|
|
||||||
|
|
||||||
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_map_anytype")
|
|
||||||
|
|
||||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("anytype_1")
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
@JsonProperty("anytype_2")
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
||||||
|
|
||||||
@JsonProperty("anytype_3")
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||||
@ -85,6 +74,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapString
|
* @return mapString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_string")
|
||||||
public Map<String, String> getMapString() {
|
public Map<String, String> getMapString() {
|
||||||
return mapString;
|
return mapString;
|
||||||
}
|
}
|
||||||
@ -111,6 +101,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapNumber
|
* @return mapNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_number")
|
||||||
public Map<String, BigDecimal> getMapNumber() {
|
public Map<String, BigDecimal> getMapNumber() {
|
||||||
return mapNumber;
|
return mapNumber;
|
||||||
}
|
}
|
||||||
@ -137,6 +128,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapInteger
|
* @return mapInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_integer")
|
||||||
public Map<String, Integer> getMapInteger() {
|
public Map<String, Integer> getMapInteger() {
|
||||||
return mapInteger;
|
return mapInteger;
|
||||||
}
|
}
|
||||||
@ -163,6 +155,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapBoolean
|
* @return mapBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_boolean")
|
||||||
public Map<String, Boolean> getMapBoolean() {
|
public Map<String, Boolean> getMapBoolean() {
|
||||||
return mapBoolean;
|
return mapBoolean;
|
||||||
}
|
}
|
||||||
@ -189,6 +182,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapArrayInteger
|
* @return mapArrayInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_array_integer")
|
||||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||||
return mapArrayInteger;
|
return mapArrayInteger;
|
||||||
}
|
}
|
||||||
@ -215,6 +209,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapArrayAnytype
|
* @return mapArrayAnytype
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_array_anytype")
|
||||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||||
return mapArrayAnytype;
|
return mapArrayAnytype;
|
||||||
}
|
}
|
||||||
@ -241,6 +236,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapMapString
|
* @return mapMapString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_map_string")
|
||||||
public Map<String, Map<String, String>> getMapMapString() {
|
public Map<String, Map<String, String>> getMapMapString() {
|
||||||
return mapMapString;
|
return mapMapString;
|
||||||
}
|
}
|
||||||
@ -267,6 +263,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return mapMapAnytype
|
* @return mapMapAnytype
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_map_anytype")
|
||||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||||
return mapMapAnytype;
|
return mapMapAnytype;
|
||||||
}
|
}
|
||||||
@ -285,6 +282,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return anytype1
|
* @return anytype1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("anytype_1")
|
||||||
public Object getAnytype1() {
|
public Object getAnytype1() {
|
||||||
return anytype1;
|
return anytype1;
|
||||||
}
|
}
|
||||||
@ -303,6 +301,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return anytype2
|
* @return anytype2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("anytype_2")
|
||||||
public JsonNullable<Object> getAnytype2() {
|
public JsonNullable<Object> getAnytype2() {
|
||||||
return anytype2;
|
return anytype2;
|
||||||
}
|
}
|
||||||
@ -321,6 +320,7 @@ public class AdditionalPropertiesClass {
|
|||||||
* @return anytype3
|
* @return anytype3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("anytype_3")
|
||||||
public Object getAnytype3() {
|
public Object getAnytype3() {
|
||||||
return anytype3;
|
return anytype3;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesInteger name(String name) {
|
public AdditionalPropertiesInteger name(String name) {
|
||||||
@ -34,6 +33,7 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesNumber name(String name) {
|
public AdditionalPropertiesNumber name(String name) {
|
||||||
@ -35,6 +34,7 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesObject name(String name) {
|
public AdditionalPropertiesObject name(String name) {
|
||||||
@ -34,6 +33,7 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesString name(String name) {
|
public AdditionalPropertiesString name(String name) {
|
||||||
@ -34,6 +33,7 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -36,10 +36,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Animal {
|
public class Animal {
|
||||||
|
|
||||||
@JsonProperty("className")
|
|
||||||
private String className;
|
private String className;
|
||||||
|
|
||||||
@JsonProperty("color")
|
|
||||||
private String color = "red";
|
private String color = "red";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,6 +66,7 @@ public class Animal {
|
|||||||
* @return className
|
* @return className
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("className")
|
||||||
public String getClassName() {
|
public String getClassName() {
|
||||||
return className;
|
return className;
|
||||||
}
|
}
|
||||||
@ -86,6 +85,7 @@ public class Animal {
|
|||||||
* @return color
|
* @return color
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("color")
|
||||||
public String getColor() {
|
public String getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ArrayOfArrayOfNumberOnly {
|
public class ArrayOfArrayOfNumberOnly {
|
||||||
|
|
||||||
@JsonProperty("ArrayArrayNumber")
|
|
||||||
|
|
||||||
private List<List<BigDecimal>> arrayArrayNumber;
|
private List<List<BigDecimal>> arrayArrayNumber;
|
||||||
|
|
||||||
@ -44,6 +43,7 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
* @return arrayArrayNumber
|
* @return arrayArrayNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("ArrayArrayNumber")
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
return arrayArrayNumber;
|
return arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ArrayOfNumberOnly {
|
public class ArrayOfNumberOnly {
|
||||||
|
|
||||||
@JsonProperty("ArrayNumber")
|
|
||||||
|
|
||||||
private List<BigDecimal> arrayNumber;
|
private List<BigDecimal> arrayNumber;
|
||||||
|
|
||||||
@ -44,6 +43,7 @@ public class ArrayOfNumberOnly {
|
|||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("ArrayNumber")
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
return arrayNumber;
|
return arrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -22,15 +22,12 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ArrayTest {
|
public class ArrayTest {
|
||||||
|
|
||||||
@JsonProperty("array_of_string")
|
|
||||||
|
|
||||||
private List<String> arrayOfString;
|
private List<String> arrayOfString;
|
||||||
|
|
||||||
@JsonProperty("array_array_of_integer")
|
|
||||||
|
|
||||||
private List<List<Long>> arrayArrayOfInteger;
|
private List<List<Long>> arrayArrayOfInteger;
|
||||||
|
|
||||||
@JsonProperty("array_array_of_model")
|
|
||||||
|
|
||||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel;
|
private List<List<ReadOnlyFirst>> arrayArrayOfModel;
|
||||||
|
|
||||||
@ -52,6 +49,7 @@ public class ArrayTest {
|
|||||||
* @return arrayOfString
|
* @return arrayOfString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_of_string")
|
||||||
public List<String> getArrayOfString() {
|
public List<String> getArrayOfString() {
|
||||||
return arrayOfString;
|
return arrayOfString;
|
||||||
}
|
}
|
||||||
@ -78,6 +76,7 @@ public class ArrayTest {
|
|||||||
* @return arrayArrayOfInteger
|
* @return arrayArrayOfInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_array_of_integer")
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
return arrayArrayOfInteger;
|
return arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
@ -104,6 +103,7 @@ public class ArrayTest {
|
|||||||
* @return arrayArrayOfModel
|
* @return arrayArrayOfModel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_array_of_model")
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
return arrayArrayOfModel;
|
return arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,6 @@ public class BigCat extends Cat {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("kind")
|
|
||||||
private KindEnum kind;
|
private KindEnum kind;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,6 +92,7 @@ public class BigCat extends Cat {
|
|||||||
* @return kind
|
* @return kind
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("kind")
|
||||||
public KindEnum getKind() {
|
public KindEnum getKind() {
|
||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,6 @@ public class BigCatAllOf {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("kind")
|
|
||||||
private KindEnum kind;
|
private KindEnum kind;
|
||||||
|
|
||||||
public BigCatAllOf kind(KindEnum kind) {
|
public BigCatAllOf kind(KindEnum kind) {
|
||||||
@ -74,6 +73,7 @@ public class BigCatAllOf {
|
|||||||
* @return kind
|
* @return kind
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("kind")
|
||||||
public KindEnum getKind() {
|
public KindEnum getKind() {
|
||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
@ -19,22 +19,16 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Capitalization {
|
public class Capitalization {
|
||||||
|
|
||||||
@JsonProperty("smallCamel")
|
|
||||||
private String smallCamel;
|
private String smallCamel;
|
||||||
|
|
||||||
@JsonProperty("CapitalCamel")
|
|
||||||
private String capitalCamel;
|
private String capitalCamel;
|
||||||
|
|
||||||
@JsonProperty("small_Snake")
|
|
||||||
private String smallSnake;
|
private String smallSnake;
|
||||||
|
|
||||||
@JsonProperty("Capital_Snake")
|
|
||||||
private String capitalSnake;
|
private String capitalSnake;
|
||||||
|
|
||||||
@JsonProperty("SCA_ETH_Flow_Points")
|
|
||||||
private String scAETHFlowPoints;
|
private String scAETHFlowPoints;
|
||||||
|
|
||||||
@JsonProperty("ATT_NAME")
|
|
||||||
private String ATT_NAME;
|
private String ATT_NAME;
|
||||||
|
|
||||||
public Capitalization smallCamel(String smallCamel) {
|
public Capitalization smallCamel(String smallCamel) {
|
||||||
@ -47,6 +41,7 @@ public class Capitalization {
|
|||||||
* @return smallCamel
|
* @return smallCamel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("smallCamel")
|
||||||
public String getSmallCamel() {
|
public String getSmallCamel() {
|
||||||
return smallCamel;
|
return smallCamel;
|
||||||
}
|
}
|
||||||
@ -65,6 +60,7 @@ public class Capitalization {
|
|||||||
* @return capitalCamel
|
* @return capitalCamel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("CapitalCamel")
|
||||||
public String getCapitalCamel() {
|
public String getCapitalCamel() {
|
||||||
return capitalCamel;
|
return capitalCamel;
|
||||||
}
|
}
|
||||||
@ -83,6 +79,7 @@ public class Capitalization {
|
|||||||
* @return smallSnake
|
* @return smallSnake
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("small_Snake")
|
||||||
public String getSmallSnake() {
|
public String getSmallSnake() {
|
||||||
return smallSnake;
|
return smallSnake;
|
||||||
}
|
}
|
||||||
@ -101,6 +98,7 @@ public class Capitalization {
|
|||||||
* @return capitalSnake
|
* @return capitalSnake
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("Capital_Snake")
|
||||||
public String getCapitalSnake() {
|
public String getCapitalSnake() {
|
||||||
return capitalSnake;
|
return capitalSnake;
|
||||||
}
|
}
|
||||||
@ -119,6 +117,7 @@ public class Capitalization {
|
|||||||
* @return scAETHFlowPoints
|
* @return scAETHFlowPoints
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("SCA_ETH_Flow_Points")
|
||||||
public String getScAETHFlowPoints() {
|
public String getScAETHFlowPoints() {
|
||||||
return scAETHFlowPoints;
|
return scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
@ -137,6 +136,7 @@ public class Capitalization {
|
|||||||
* @return ATT_NAME
|
* @return ATT_NAME
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("ATT_NAME")
|
||||||
public String getATTNAME() {
|
public String getATTNAME() {
|
||||||
return ATT_NAME;
|
return ATT_NAME;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Cat extends Animal {
|
public class Cat extends Animal {
|
||||||
|
|
||||||
@JsonProperty("declawed")
|
|
||||||
private Boolean declawed;
|
private Boolean declawed;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -62,6 +61,7 @@ public class Cat extends Animal {
|
|||||||
* @return declawed
|
* @return declawed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("declawed")
|
||||||
public Boolean getDeclawed() {
|
public Boolean getDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class CatAllOf {
|
public class CatAllOf {
|
||||||
|
|
||||||
@JsonProperty("declawed")
|
|
||||||
private Boolean declawed;
|
private Boolean declawed;
|
||||||
|
|
||||||
public CatAllOf declawed(Boolean declawed) {
|
public CatAllOf declawed(Boolean declawed) {
|
||||||
@ -34,6 +33,7 @@ public class CatAllOf {
|
|||||||
* @return declawed
|
* @return declawed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("declawed")
|
||||||
public Boolean getDeclawed() {
|
public Boolean getDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
@ -19,10 +19,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name = "default-name";
|
private String name = "default-name";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -51,6 +49,7 @@ public class Category {
|
|||||||
* @return id
|
* @return id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -69,6 +68,7 @@ public class Category {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ClassModel {
|
public class ClassModel {
|
||||||
|
|
||||||
@JsonProperty("_class")
|
|
||||||
private String propertyClass;
|
private String propertyClass;
|
||||||
|
|
||||||
public ClassModel propertyClass(String propertyClass) {
|
public ClassModel propertyClass(String propertyClass) {
|
||||||
@ -32,6 +31,7 @@ public class ClassModel {
|
|||||||
* @return propertyClass
|
* @return propertyClass
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("_class")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Client {
|
public class Client {
|
||||||
|
|
||||||
@JsonProperty("client")
|
|
||||||
private String client;
|
private String client;
|
||||||
|
|
||||||
public Client client(String client) {
|
public Client client(String client) {
|
||||||
@ -32,6 +31,7 @@ public class Client {
|
|||||||
* @return client
|
* @return client
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("client")
|
||||||
public String getClient() {
|
public String getClient() {
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
@ -24,19 +24,15 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@JsonProperty("nullable_array")
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
||||||
|
|
||||||
@JsonProperty("nullable_required_array")
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
||||||
|
|
||||||
@JsonProperty("required_array")
|
|
||||||
|
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("nullable_array_with_default")
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
||||||
|
|
||||||
@ -75,6 +71,7 @@ public class ContainerDefaultValue {
|
|||||||
* @return nullableArray
|
* @return nullableArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("nullable_array")
|
||||||
public JsonNullable<List<String>> getNullableArray() {
|
public JsonNullable<List<String>> getNullableArray() {
|
||||||
return nullableArray;
|
return nullableArray;
|
||||||
}
|
}
|
||||||
@ -101,6 +98,7 @@ public class ContainerDefaultValue {
|
|||||||
* @return nullableRequiredArray
|
* @return nullableRequiredArray
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("nullable_required_array")
|
||||||
public JsonNullable<List<String>> getNullableRequiredArray() {
|
public JsonNullable<List<String>> getNullableRequiredArray() {
|
||||||
return nullableRequiredArray;
|
return nullableRequiredArray;
|
||||||
}
|
}
|
||||||
@ -127,6 +125,7 @@ public class ContainerDefaultValue {
|
|||||||
* @return requiredArray
|
* @return requiredArray
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("required_array")
|
||||||
public List<String> getRequiredArray() {
|
public List<String> getRequiredArray() {
|
||||||
return requiredArray;
|
return requiredArray;
|
||||||
}
|
}
|
||||||
@ -153,6 +152,7 @@ public class ContainerDefaultValue {
|
|||||||
* @return nullableArrayWithDefault
|
* @return nullableArrayWithDefault
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("nullable_array_with_default")
|
||||||
public JsonNullable<List<String>> getNullableArrayWithDefault() {
|
public JsonNullable<List<String>> getNullableArrayWithDefault() {
|
||||||
return nullableArrayWithDefault;
|
return nullableArrayWithDefault;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Dog extends Animal {
|
public class Dog extends Animal {
|
||||||
|
|
||||||
@JsonProperty("breed")
|
|
||||||
private String breed;
|
private String breed;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,6 +52,7 @@ public class Dog extends Animal {
|
|||||||
* @return breed
|
* @return breed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("breed")
|
||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class DogAllOf {
|
public class DogAllOf {
|
||||||
|
|
||||||
@JsonProperty("breed")
|
|
||||||
private String breed;
|
private String breed;
|
||||||
|
|
||||||
public DogAllOf breed(String breed) {
|
public DogAllOf breed(String breed) {
|
||||||
@ -34,6 +33,7 @@ public class DogAllOf {
|
|||||||
* @return breed
|
* @return breed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("breed")
|
||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,6 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("just_symbol")
|
|
||||||
private JustSymbolEnum justSymbol;
|
private JustSymbolEnum justSymbol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,7 +94,6 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("array_enum")
|
|
||||||
|
|
||||||
private List<ArrayEnumEnum> arrayEnum;
|
private List<ArrayEnumEnum> arrayEnum;
|
||||||
|
|
||||||
@ -109,6 +107,7 @@ public class EnumArrays {
|
|||||||
* @return justSymbol
|
* @return justSymbol
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("just_symbol")
|
||||||
public JustSymbolEnum getJustSymbol() {
|
public JustSymbolEnum getJustSymbol() {
|
||||||
return justSymbol;
|
return justSymbol;
|
||||||
}
|
}
|
||||||
@ -135,6 +134,7 @@ public class EnumArrays {
|
|||||||
* @return arrayEnum
|
* @return arrayEnum
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_enum")
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
return arrayEnum;
|
return arrayEnum;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,6 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_string")
|
|
||||||
private EnumStringEnum enumString;
|
private EnumStringEnum enumString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -100,7 +99,6 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_string_required")
|
|
||||||
private EnumStringRequiredEnum enumStringRequired;
|
private EnumStringRequiredEnum enumStringRequired;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -138,7 +136,6 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_integer")
|
|
||||||
private EnumIntegerEnum enumInteger;
|
private EnumIntegerEnum enumInteger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -176,10 +173,8 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_number")
|
|
||||||
private EnumNumberEnum enumNumber;
|
private EnumNumberEnum enumNumber;
|
||||||
|
|
||||||
@JsonProperty("outerEnum")
|
|
||||||
private OuterEnum outerEnum;
|
private OuterEnum outerEnum;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,6 +203,7 @@ public class EnumTest {
|
|||||||
* @return enumString
|
* @return enumString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("enum_string")
|
||||||
public EnumStringEnum getEnumString() {
|
public EnumStringEnum getEnumString() {
|
||||||
return enumString;
|
return enumString;
|
||||||
}
|
}
|
||||||
@ -226,6 +222,7 @@ public class EnumTest {
|
|||||||
* @return enumStringRequired
|
* @return enumStringRequired
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("enum_string_required")
|
||||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||||
return enumStringRequired;
|
return enumStringRequired;
|
||||||
}
|
}
|
||||||
@ -244,6 +241,7 @@ public class EnumTest {
|
|||||||
* @return enumInteger
|
* @return enumInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("enum_integer")
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
public EnumIntegerEnum getEnumInteger() {
|
||||||
return enumInteger;
|
return enumInteger;
|
||||||
}
|
}
|
||||||
@ -262,6 +260,7 @@ public class EnumTest {
|
|||||||
* @return enumNumber
|
* @return enumNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("enum_number")
|
||||||
public EnumNumberEnum getEnumNumber() {
|
public EnumNumberEnum getEnumNumber() {
|
||||||
return enumNumber;
|
return enumNumber;
|
||||||
}
|
}
|
||||||
@ -280,6 +279,7 @@ public class EnumTest {
|
|||||||
* @return outerEnum
|
* @return outerEnum
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("outerEnum")
|
||||||
public OuterEnum getOuterEnum() {
|
public OuterEnum getOuterEnum() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class File {
|
public class File {
|
||||||
|
|
||||||
@JsonProperty("sourceURI")
|
|
||||||
private String sourceURI;
|
private String sourceURI;
|
||||||
|
|
||||||
public File sourceURI(String sourceURI) {
|
public File sourceURI(String sourceURI) {
|
||||||
@ -32,6 +31,7 @@ public class File {
|
|||||||
* @return sourceURI
|
* @return sourceURI
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("sourceURI")
|
||||||
public String getSourceURI() {
|
public String getSourceURI() {
|
||||||
return sourceURI;
|
return sourceURI;
|
||||||
}
|
}
|
||||||
|
@ -22,10 +22,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class FileSchemaTestClass {
|
public class FileSchemaTestClass {
|
||||||
|
|
||||||
@JsonProperty("file")
|
|
||||||
private File file;
|
private File file;
|
||||||
|
|
||||||
@JsonProperty("files")
|
|
||||||
|
|
||||||
private List<File> files;
|
private List<File> files;
|
||||||
|
|
||||||
@ -39,6 +37,7 @@ public class FileSchemaTestClass {
|
|||||||
* @return file
|
* @return file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("file")
|
||||||
public File getFile() {
|
public File getFile() {
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
@ -65,6 +64,7 @@ public class FileSchemaTestClass {
|
|||||||
* @return files
|
* @return files
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("files")
|
||||||
public List<File> getFiles() {
|
public List<File> getFiles() {
|
||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
|
@ -27,48 +27,34 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
|
|
||||||
@JsonProperty("integer")
|
|
||||||
private Integer integer;
|
private Integer integer;
|
||||||
|
|
||||||
@JsonProperty("int32")
|
|
||||||
private Integer int32;
|
private Integer int32;
|
||||||
|
|
||||||
@JsonProperty("int64")
|
|
||||||
private Long int64;
|
private Long int64;
|
||||||
|
|
||||||
@JsonProperty("number")
|
|
||||||
private BigDecimal number;
|
private BigDecimal number;
|
||||||
|
|
||||||
@JsonProperty("float")
|
|
||||||
private Float _float;
|
private Float _float;
|
||||||
|
|
||||||
@JsonProperty("double")
|
|
||||||
private Double _double;
|
private Double _double;
|
||||||
|
|
||||||
@JsonProperty("string")
|
|
||||||
private String string;
|
private String string;
|
||||||
|
|
||||||
@JsonProperty("byte")
|
|
||||||
private byte[] _byte;
|
private byte[] _byte;
|
||||||
|
|
||||||
@JsonProperty("binary")
|
|
||||||
private org.springframework.core.io.Resource binary;
|
private org.springframework.core.io.Resource binary;
|
||||||
|
|
||||||
@JsonProperty("date")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||||
private LocalDate date;
|
private LocalDate date;
|
||||||
|
|
||||||
@JsonProperty("dateTime")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime dateTime;
|
private OffsetDateTime dateTime;
|
||||||
|
|
||||||
@JsonProperty("uuid")
|
|
||||||
private UUID uuid;
|
private UUID uuid;
|
||||||
|
|
||||||
@JsonProperty("password")
|
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@JsonProperty("BigDecimal")
|
|
||||||
private BigDecimal bigDecimal;
|
private BigDecimal bigDecimal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -102,6 +88,7 @@ public class FormatTest {
|
|||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("integer")
|
||||||
public Integer getInteger() {
|
public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
}
|
}
|
||||||
@ -122,6 +109,7 @@ public class FormatTest {
|
|||||||
* @return int32
|
* @return int32
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("int32")
|
||||||
public Integer getInt32() {
|
public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
}
|
}
|
||||||
@ -140,6 +128,7 @@ public class FormatTest {
|
|||||||
* @return int64
|
* @return int64
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("int64")
|
||||||
public Long getInt64() {
|
public Long getInt64() {
|
||||||
return int64;
|
return int64;
|
||||||
}
|
}
|
||||||
@ -160,6 +149,7 @@ public class FormatTest {
|
|||||||
* @return number
|
* @return number
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("number")
|
||||||
public BigDecimal getNumber() {
|
public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
}
|
}
|
||||||
@ -180,6 +170,7 @@ public class FormatTest {
|
|||||||
* @return _float
|
* @return _float
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("float")
|
||||||
public Float getFloat() {
|
public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
}
|
}
|
||||||
@ -200,6 +191,7 @@ public class FormatTest {
|
|||||||
* @return _double
|
* @return _double
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("double")
|
||||||
public Double getDouble() {
|
public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
}
|
}
|
||||||
@ -218,6 +210,7 @@ public class FormatTest {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("string")
|
||||||
public String getString() {
|
public String getString() {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
@ -236,6 +229,7 @@ public class FormatTest {
|
|||||||
* @return _byte
|
* @return _byte
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("byte")
|
||||||
public byte[] getByte() {
|
public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
}
|
}
|
||||||
@ -254,6 +248,7 @@ public class FormatTest {
|
|||||||
* @return binary
|
* @return binary
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("binary")
|
||||||
public org.springframework.core.io.Resource getBinary() {
|
public org.springframework.core.io.Resource getBinary() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
@ -272,6 +267,7 @@ public class FormatTest {
|
|||||||
* @return date
|
* @return date
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("date")
|
||||||
public LocalDate getDate() {
|
public LocalDate getDate() {
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
@ -290,6 +286,7 @@ public class FormatTest {
|
|||||||
* @return dateTime
|
* @return dateTime
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("dateTime")
|
||||||
public OffsetDateTime getDateTime() {
|
public OffsetDateTime getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -308,6 +305,7 @@ public class FormatTest {
|
|||||||
* @return uuid
|
* @return uuid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -326,6 +324,7 @@ public class FormatTest {
|
|||||||
* @return password
|
* @return password
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -344,6 +343,7 @@ public class FormatTest {
|
|||||||
* @return bigDecimal
|
* @return bigDecimal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("BigDecimal")
|
||||||
public BigDecimal getBigDecimal() {
|
public BigDecimal getBigDecimal() {
|
||||||
return bigDecimal;
|
return bigDecimal;
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class HasOnlyReadOnly {
|
public class HasOnlyReadOnly {
|
||||||
|
|
||||||
@JsonProperty("bar")
|
|
||||||
private String bar;
|
private String bar;
|
||||||
|
|
||||||
@JsonProperty("foo")
|
|
||||||
private String foo;
|
private String foo;
|
||||||
|
|
||||||
public HasOnlyReadOnly bar(String bar) {
|
public HasOnlyReadOnly bar(String bar) {
|
||||||
@ -37,6 +35,7 @@ public class HasOnlyReadOnly {
|
|||||||
* @return bar
|
* @return bar
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -55,6 +54,7 @@ public class HasOnlyReadOnly {
|
|||||||
* @return foo
|
* @return foo
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("foo")
|
||||||
public String getFoo() {
|
public String getFoo() {
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class MapTest {
|
public class MapTest {
|
||||||
|
|
||||||
@JsonProperty("map_map_of_string")
|
|
||||||
|
|
||||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
|
private Map<String, Map<String, String>> mapMapOfString = new HashMap<>();
|
||||||
|
|
||||||
@ -61,15 +60,12 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("map_of_enum_string")
|
|
||||||
|
|
||||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
|
private Map<String, InnerEnum> mapOfEnumString = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("direct_map")
|
|
||||||
|
|
||||||
private Map<String, Boolean> directMap = new HashMap<>();
|
private Map<String, Boolean> directMap = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("indirect_map")
|
|
||||||
|
|
||||||
private Map<String, Boolean> indirectMap = new HashMap<>();
|
private Map<String, Boolean> indirectMap = new HashMap<>();
|
||||||
|
|
||||||
@ -91,6 +87,7 @@ public class MapTest {
|
|||||||
* @return mapMapOfString
|
* @return mapMapOfString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_map_of_string")
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
return mapMapOfString;
|
return mapMapOfString;
|
||||||
}
|
}
|
||||||
@ -117,6 +114,7 @@ public class MapTest {
|
|||||||
* @return mapOfEnumString
|
* @return mapOfEnumString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_of_enum_string")
|
||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||||
return mapOfEnumString;
|
return mapOfEnumString;
|
||||||
}
|
}
|
||||||
@ -143,6 +141,7 @@ public class MapTest {
|
|||||||
* @return directMap
|
* @return directMap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
public Map<String, Boolean> getDirectMap() {
|
public Map<String, Boolean> getDirectMap() {
|
||||||
return directMap;
|
return directMap;
|
||||||
}
|
}
|
||||||
@ -169,6 +168,7 @@ public class MapTest {
|
|||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
public Map<String, Boolean> getIndirectMap() {
|
public Map<String, Boolean> getIndirectMap() {
|
||||||
return indirectMap;
|
return indirectMap;
|
||||||
}
|
}
|
||||||
|
@ -25,14 +25,11 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
|
|
||||||
@JsonProperty("uuid")
|
|
||||||
private UUID uuid;
|
private UUID uuid;
|
||||||
|
|
||||||
@JsonProperty("dateTime")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime dateTime;
|
private OffsetDateTime dateTime;
|
||||||
|
|
||||||
@JsonProperty("map")
|
|
||||||
|
|
||||||
private Map<String, Animal> map = new HashMap<>();
|
private Map<String, Animal> map = new HashMap<>();
|
||||||
|
|
||||||
@ -46,6 +43,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* @return uuid
|
* @return uuid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -64,6 +62,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* @return dateTime
|
* @return dateTime
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("dateTime")
|
||||||
public OffsetDateTime getDateTime() {
|
public OffsetDateTime getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -90,6 +89,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
* @return map
|
* @return map
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map")
|
||||||
public Map<String, Animal> getMap() {
|
public Map<String, Animal> getMap() {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private Integer name;
|
private Integer name;
|
||||||
|
|
||||||
@JsonProperty("class")
|
|
||||||
private String propertyClass;
|
private String propertyClass;
|
||||||
|
|
||||||
public Model200Response name(Integer name) {
|
public Model200Response name(Integer name) {
|
||||||
@ -37,6 +35,7 @@ public class Model200Response {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -55,6 +54,7 @@ public class Model200Response {
|
|||||||
* @return propertyClass
|
* @return propertyClass
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("class")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -21,13 +21,10 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
@JsonProperty("code")
|
|
||||||
private Integer code;
|
private Integer code;
|
||||||
|
|
||||||
@JsonProperty("type")
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@JsonProperty("message")
|
|
||||||
private String message;
|
private String message;
|
||||||
|
|
||||||
public ModelApiResponse code(Integer code) {
|
public ModelApiResponse code(Integer code) {
|
||||||
@ -40,6 +37,7 @@ public class ModelApiResponse {
|
|||||||
* @return code
|
* @return code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Integer getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
@ -58,6 +56,7 @@ public class ModelApiResponse {
|
|||||||
* @return type
|
* @return type
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -76,6 +75,7 @@ public class ModelApiResponse {
|
|||||||
* @return message
|
* @return message
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelList {
|
public class ModelList {
|
||||||
|
|
||||||
@JsonProperty("123-list")
|
|
||||||
private String _123list;
|
private String _123list;
|
||||||
|
|
||||||
public ModelList _123list(String _123list) {
|
public ModelList _123list(String _123list) {
|
||||||
@ -34,6 +33,7 @@ public class ModelList {
|
|||||||
* @return _123list
|
* @return _123list
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("123-list")
|
||||||
public String get123list() {
|
public String get123list() {
|
||||||
return _123list;
|
return _123list;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
|
|
||||||
@JsonProperty("return")
|
|
||||||
private Integer _return;
|
private Integer _return;
|
||||||
|
|
||||||
public ModelReturn _return(Integer _return) {
|
public ModelReturn _return(Integer _return) {
|
||||||
@ -34,6 +33,7 @@ public class ModelReturn {
|
|||||||
* @return _return
|
* @return _return
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("return")
|
||||||
public Integer getReturn() {
|
public Integer getReturn() {
|
||||||
return _return;
|
return _return;
|
||||||
}
|
}
|
||||||
|
@ -19,16 +19,12 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Name {
|
public class Name {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private Integer name;
|
private Integer name;
|
||||||
|
|
||||||
@JsonProperty("snake_case")
|
|
||||||
private Integer snakeCase;
|
private Integer snakeCase;
|
||||||
|
|
||||||
@JsonProperty("property")
|
|
||||||
private String property;
|
private String property;
|
||||||
|
|
||||||
@JsonProperty("123Number")
|
|
||||||
private Integer _123number;
|
private Integer _123number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,6 +53,7 @@ public class Name {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Integer getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -75,6 +72,7 @@ public class Name {
|
|||||||
* @return snakeCase
|
* @return snakeCase
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("snake_case")
|
||||||
public Integer getSnakeCase() {
|
public Integer getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
@ -93,6 +91,7 @@ public class Name {
|
|||||||
* @return property
|
* @return property
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("property")
|
||||||
public String getProperty() {
|
public String getProperty() {
|
||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
@ -111,6 +110,7 @@ public class Name {
|
|||||||
* @return _123number
|
* @return _123number
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("123Number")
|
||||||
public Integer get123number() {
|
public Integer get123number() {
|
||||||
return _123number;
|
return _123number;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class NumberOnly {
|
public class NumberOnly {
|
||||||
|
|
||||||
@JsonProperty("JustNumber")
|
|
||||||
private BigDecimal justNumber;
|
private BigDecimal justNumber;
|
||||||
|
|
||||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||||
@ -33,6 +32,7 @@ public class NumberOnly {
|
|||||||
* @return justNumber
|
* @return justNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("JustNumber")
|
||||||
public BigDecimal getJustNumber() {
|
public BigDecimal getJustNumber() {
|
||||||
return justNumber;
|
return justNumber;
|
||||||
}
|
}
|
||||||
|
@ -22,16 +22,12 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("petId")
|
|
||||||
private Long petId;
|
private Long petId;
|
||||||
|
|
||||||
@JsonProperty("quantity")
|
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
@JsonProperty("shipDate")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime shipDate;
|
private OffsetDateTime shipDate;
|
||||||
|
|
||||||
@ -72,10 +68,8 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
|
||||||
private StatusEnum status;
|
private StatusEnum status;
|
||||||
|
|
||||||
@JsonProperty("complete")
|
|
||||||
private Boolean complete = false;
|
private Boolean complete = false;
|
||||||
|
|
||||||
public Order id(Long id) {
|
public Order id(Long id) {
|
||||||
@ -88,6 +82,7 @@ public class Order {
|
|||||||
* @return id
|
* @return id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -106,6 +101,7 @@ public class Order {
|
|||||||
* @return petId
|
* @return petId
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("petId")
|
||||||
public Long getPetId() {
|
public Long getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
@ -124,6 +120,7 @@ public class Order {
|
|||||||
* @return quantity
|
* @return quantity
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("quantity")
|
||||||
public Integer getQuantity() {
|
public Integer getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
@ -142,6 +139,7 @@ public class Order {
|
|||||||
* @return shipDate
|
* @return shipDate
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("shipDate")
|
||||||
public OffsetDateTime getShipDate() {
|
public OffsetDateTime getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
@ -160,6 +158,7 @@ public class Order {
|
|||||||
* @return status
|
* @return status
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -178,6 +177,7 @@ public class Order {
|
|||||||
* @return complete
|
* @return complete
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("complete")
|
||||||
public Boolean getComplete() {
|
public Boolean getComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
@ -20,13 +20,10 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class OuterComposite {
|
public class OuterComposite {
|
||||||
|
|
||||||
@JsonProperty("my_number")
|
|
||||||
private BigDecimal myNumber;
|
private BigDecimal myNumber;
|
||||||
|
|
||||||
@JsonProperty("my_string")
|
|
||||||
private String myString;
|
private String myString;
|
||||||
|
|
||||||
@JsonProperty("my_boolean")
|
|
||||||
private Boolean myBoolean;
|
private Boolean myBoolean;
|
||||||
|
|
||||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||||
@ -39,6 +36,7 @@ public class OuterComposite {
|
|||||||
* @return myNumber
|
* @return myNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("my_number")
|
||||||
public BigDecimal getMyNumber() {
|
public BigDecimal getMyNumber() {
|
||||||
return myNumber;
|
return myNumber;
|
||||||
}
|
}
|
||||||
@ -57,6 +55,7 @@ public class OuterComposite {
|
|||||||
* @return myString
|
* @return myString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("my_string")
|
||||||
public String getMyString() {
|
public String getMyString() {
|
||||||
return myString;
|
return myString;
|
||||||
}
|
}
|
||||||
@ -75,6 +74,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("my_boolean")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean getMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
@ -27,20 +27,15 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("category")
|
|
||||||
private Category category;
|
private Category category;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
|
||||||
|
|
||||||
private Set<String> photoUrls = new LinkedHashSet<>();
|
private Set<String> photoUrls = new LinkedHashSet<>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
|
||||||
|
|
||||||
private List<Tag> tags;
|
private List<Tag> tags;
|
||||||
|
|
||||||
@ -81,7 +76,6 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
|
||||||
private StatusEnum status;
|
private StatusEnum status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -111,6 +105,7 @@ public class Pet {
|
|||||||
* @return id
|
* @return id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -129,6 +124,7 @@ public class Pet {
|
|||||||
* @return category
|
* @return category
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("category")
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
@ -147,6 +143,7 @@ public class Pet {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
@ -173,6 +170,7 @@ public class Pet {
|
|||||||
* @return photoUrls
|
* @return photoUrls
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("photoUrls")
|
||||||
public Set<String> getPhotoUrls() {
|
public Set<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
}
|
}
|
||||||
@ -200,6 +198,7 @@ public class Pet {
|
|||||||
* @return tags
|
* @return tags
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("tags")
|
||||||
public List<Tag> getTags() {
|
public List<Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
@ -218,6 +217,7 @@ public class Pet {
|
|||||||
* @return status
|
* @return status
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -19,10 +19,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ReadOnlyFirst {
|
public class ReadOnlyFirst {
|
||||||
|
|
||||||
@JsonProperty("bar")
|
|
||||||
private String bar;
|
private String bar;
|
||||||
|
|
||||||
@JsonProperty("baz")
|
|
||||||
private String baz;
|
private String baz;
|
||||||
|
|
||||||
public ReadOnlyFirst bar(String bar) {
|
public ReadOnlyFirst bar(String bar) {
|
||||||
@ -35,6 +33,7 @@ public class ReadOnlyFirst {
|
|||||||
* @return bar
|
* @return bar
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -53,6 +52,7 @@ public class ReadOnlyFirst {
|
|||||||
* @return baz
|
* @return baz
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("baz")
|
||||||
public String getBaz() {
|
public String getBaz() {
|
||||||
return baz;
|
return baz;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,149 @@
|
|||||||
|
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 jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import jakarta.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
|
||||||
|
*/
|
||||||
|
|
||||||
|
@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
|
||||||
|
*/
|
||||||
|
|
||||||
|
@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
|
||||||
|
*/
|
||||||
|
|
||||||
|
@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
|
||||||
|
*/
|
||||||
|
|
||||||
|
@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 ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
|
|
||||||
@JsonProperty("$special[property.name]")
|
|
||||||
private Long $specialPropertyName;
|
private Long $specialPropertyName;
|
||||||
|
|
||||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||||
@ -34,6 +33,7 @@ public class SpecialModelName {
|
|||||||
* @return $specialPropertyName
|
* @return $specialPropertyName
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("$special[property.name]")
|
||||||
public Long get$SpecialPropertyName() {
|
public Long get$SpecialPropertyName() {
|
||||||
return $specialPropertyName;
|
return $specialPropertyName;
|
||||||
}
|
}
|
||||||
|
@ -19,10 +19,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public Tag id(Long id) {
|
public Tag id(Long id) {
|
||||||
@ -35,6 +33,7 @@ public class Tag {
|
|||||||
* @return id
|
* @return id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -53,6 +52,7 @@ public class Tag {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -22,19 +22,14 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class TypeHolderDefault {
|
public class TypeHolderDefault {
|
||||||
|
|
||||||
@JsonProperty("string_item")
|
|
||||||
private String stringItem = "what";
|
private String stringItem = "what";
|
||||||
|
|
||||||
@JsonProperty("number_item")
|
|
||||||
private BigDecimal numberItem = new BigDecimal("1.234");
|
private BigDecimal numberItem = new BigDecimal("1.234");
|
||||||
|
|
||||||
@JsonProperty("integer_item")
|
|
||||||
private Integer integerItem = -2;
|
private Integer integerItem = -2;
|
||||||
|
|
||||||
@JsonProperty("bool_item")
|
|
||||||
private Boolean boolItem = true;
|
private Boolean boolItem = true;
|
||||||
|
|
||||||
@JsonProperty("array_item")
|
|
||||||
|
|
||||||
private List<Integer> arrayItem = new ArrayList<>(Arrays.asList(0, 1, 2, 3));
|
private List<Integer> arrayItem = new ArrayList<>(Arrays.asList(0, 1, 2, 3));
|
||||||
|
|
||||||
@ -68,6 +63,7 @@ public class TypeHolderDefault {
|
|||||||
* @return stringItem
|
* @return stringItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("string_item")
|
||||||
public String getStringItem() {
|
public String getStringItem() {
|
||||||
return stringItem;
|
return stringItem;
|
||||||
}
|
}
|
||||||
@ -86,6 +82,7 @@ public class TypeHolderDefault {
|
|||||||
* @return numberItem
|
* @return numberItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("number_item")
|
||||||
public BigDecimal getNumberItem() {
|
public BigDecimal getNumberItem() {
|
||||||
return numberItem;
|
return numberItem;
|
||||||
}
|
}
|
||||||
@ -104,6 +101,7 @@ public class TypeHolderDefault {
|
|||||||
* @return integerItem
|
* @return integerItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("integer_item")
|
||||||
public Integer getIntegerItem() {
|
public Integer getIntegerItem() {
|
||||||
return integerItem;
|
return integerItem;
|
||||||
}
|
}
|
||||||
@ -122,6 +120,7 @@ public class TypeHolderDefault {
|
|||||||
* @return boolItem
|
* @return boolItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("bool_item")
|
||||||
public Boolean getBoolItem() {
|
public Boolean getBoolItem() {
|
||||||
return boolItem;
|
return boolItem;
|
||||||
}
|
}
|
||||||
@ -148,6 +147,7 @@ public class TypeHolderDefault {
|
|||||||
* @return arrayItem
|
* @return arrayItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("array_item")
|
||||||
public List<Integer> getArrayItem() {
|
public List<Integer> getArrayItem() {
|
||||||
return arrayItem;
|
return arrayItem;
|
||||||
}
|
}
|
||||||
|
@ -22,22 +22,16 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class TypeHolderExample {
|
public class TypeHolderExample {
|
||||||
|
|
||||||
@JsonProperty("string_item")
|
|
||||||
private String stringItem;
|
private String stringItem;
|
||||||
|
|
||||||
@JsonProperty("number_item")
|
|
||||||
private BigDecimal numberItem;
|
private BigDecimal numberItem;
|
||||||
|
|
||||||
@JsonProperty("float_item")
|
|
||||||
private Float floatItem;
|
private Float floatItem;
|
||||||
|
|
||||||
@JsonProperty("integer_item")
|
|
||||||
private Integer integerItem;
|
private Integer integerItem;
|
||||||
|
|
||||||
@JsonProperty("bool_item")
|
|
||||||
private Boolean boolItem;
|
private Boolean boolItem;
|
||||||
|
|
||||||
@JsonProperty("array_item")
|
|
||||||
|
|
||||||
private List<Integer> arrayItem = new ArrayList<>();
|
private List<Integer> arrayItem = new ArrayList<>();
|
||||||
|
|
||||||
@ -72,6 +66,7 @@ public class TypeHolderExample {
|
|||||||
* @return stringItem
|
* @return stringItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("string_item")
|
||||||
public String getStringItem() {
|
public String getStringItem() {
|
||||||
return stringItem;
|
return stringItem;
|
||||||
}
|
}
|
||||||
@ -90,6 +85,7 @@ public class TypeHolderExample {
|
|||||||
* @return numberItem
|
* @return numberItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("number_item")
|
||||||
public BigDecimal getNumberItem() {
|
public BigDecimal getNumberItem() {
|
||||||
return numberItem;
|
return numberItem;
|
||||||
}
|
}
|
||||||
@ -108,6 +104,7 @@ public class TypeHolderExample {
|
|||||||
* @return floatItem
|
* @return floatItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("float_item")
|
||||||
public Float getFloatItem() {
|
public Float getFloatItem() {
|
||||||
return floatItem;
|
return floatItem;
|
||||||
}
|
}
|
||||||
@ -126,6 +123,7 @@ public class TypeHolderExample {
|
|||||||
* @return integerItem
|
* @return integerItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("integer_item")
|
||||||
public Integer getIntegerItem() {
|
public Integer getIntegerItem() {
|
||||||
return integerItem;
|
return integerItem;
|
||||||
}
|
}
|
||||||
@ -144,6 +142,7 @@ public class TypeHolderExample {
|
|||||||
* @return boolItem
|
* @return boolItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("bool_item")
|
||||||
public Boolean getBoolItem() {
|
public Boolean getBoolItem() {
|
||||||
return boolItem;
|
return boolItem;
|
||||||
}
|
}
|
||||||
@ -170,6 +169,7 @@ public class TypeHolderExample {
|
|||||||
* @return arrayItem
|
* @return arrayItem
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("array_item")
|
||||||
public List<Integer> getArrayItem() {
|
public List<Integer> getArrayItem() {
|
||||||
return arrayItem;
|
return arrayItem;
|
||||||
}
|
}
|
||||||
|
@ -19,28 +19,20 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("username")
|
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
@JsonProperty("firstName")
|
|
||||||
private String firstName;
|
private String firstName;
|
||||||
|
|
||||||
@JsonProperty("lastName")
|
|
||||||
private String lastName;
|
private String lastName;
|
||||||
|
|
||||||
@JsonProperty("email")
|
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
@JsonProperty("password")
|
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@JsonProperty("phone")
|
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
@JsonProperty("userStatus")
|
|
||||||
private Integer userStatus;
|
private Integer userStatus;
|
||||||
|
|
||||||
public User id(Long id) {
|
public User id(Long id) {
|
||||||
@ -53,6 +45,7 @@ public class User {
|
|||||||
* @return id
|
* @return id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -71,6 +64,7 @@ public class User {
|
|||||||
* @return username
|
* @return username
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("username")
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
@ -89,6 +83,7 @@ public class User {
|
|||||||
* @return firstName
|
* @return firstName
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("firstName")
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
@ -107,6 +102,7 @@ public class User {
|
|||||||
* @return lastName
|
* @return lastName
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("lastName")
|
||||||
public String getLastName() {
|
public String getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
@ -125,6 +121,7 @@ public class User {
|
|||||||
* @return email
|
* @return email
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("email")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
@ -143,6 +140,7 @@ public class User {
|
|||||||
* @return password
|
* @return password
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -161,6 +159,7 @@ public class User {
|
|||||||
* @return phone
|
* @return phone
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("phone")
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
@ -179,6 +178,7 @@ public class User {
|
|||||||
* @return userStatus
|
* @return userStatus
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("userStatus")
|
||||||
public Integer getUserStatus() {
|
public Integer getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
@ -22,99 +22,70 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class XmlItem {
|
public class XmlItem {
|
||||||
|
|
||||||
@JsonProperty("attribute_string")
|
|
||||||
private String attributeString;
|
private String attributeString;
|
||||||
|
|
||||||
@JsonProperty("attribute_number")
|
|
||||||
private BigDecimal attributeNumber;
|
private BigDecimal attributeNumber;
|
||||||
|
|
||||||
@JsonProperty("attribute_integer")
|
|
||||||
private Integer attributeInteger;
|
private Integer attributeInteger;
|
||||||
|
|
||||||
@JsonProperty("attribute_boolean")
|
|
||||||
private Boolean attributeBoolean;
|
private Boolean attributeBoolean;
|
||||||
|
|
||||||
@JsonProperty("wrapped_array")
|
|
||||||
|
|
||||||
private List<Integer> wrappedArray;
|
private List<Integer> wrappedArray;
|
||||||
|
|
||||||
@JsonProperty("name_string")
|
|
||||||
private String nameString;
|
private String nameString;
|
||||||
|
|
||||||
@JsonProperty("name_number")
|
|
||||||
private BigDecimal nameNumber;
|
private BigDecimal nameNumber;
|
||||||
|
|
||||||
@JsonProperty("name_integer")
|
|
||||||
private Integer nameInteger;
|
private Integer nameInteger;
|
||||||
|
|
||||||
@JsonProperty("name_boolean")
|
|
||||||
private Boolean nameBoolean;
|
private Boolean nameBoolean;
|
||||||
|
|
||||||
@JsonProperty("name_array")
|
|
||||||
|
|
||||||
private List<Integer> nameArray;
|
private List<Integer> nameArray;
|
||||||
|
|
||||||
@JsonProperty("name_wrapped_array")
|
|
||||||
|
|
||||||
private List<Integer> nameWrappedArray;
|
private List<Integer> nameWrappedArray;
|
||||||
|
|
||||||
@JsonProperty("prefix_string")
|
|
||||||
private String prefixString;
|
private String prefixString;
|
||||||
|
|
||||||
@JsonProperty("prefix_number")
|
|
||||||
private BigDecimal prefixNumber;
|
private BigDecimal prefixNumber;
|
||||||
|
|
||||||
@JsonProperty("prefix_integer")
|
|
||||||
private Integer prefixInteger;
|
private Integer prefixInteger;
|
||||||
|
|
||||||
@JsonProperty("prefix_boolean")
|
|
||||||
private Boolean prefixBoolean;
|
private Boolean prefixBoolean;
|
||||||
|
|
||||||
@JsonProperty("prefix_array")
|
|
||||||
|
|
||||||
private List<Integer> prefixArray;
|
private List<Integer> prefixArray;
|
||||||
|
|
||||||
@JsonProperty("prefix_wrapped_array")
|
|
||||||
|
|
||||||
private List<Integer> prefixWrappedArray;
|
private List<Integer> prefixWrappedArray;
|
||||||
|
|
||||||
@JsonProperty("namespace_string")
|
|
||||||
private String namespaceString;
|
private String namespaceString;
|
||||||
|
|
||||||
@JsonProperty("namespace_number")
|
|
||||||
private BigDecimal namespaceNumber;
|
private BigDecimal namespaceNumber;
|
||||||
|
|
||||||
@JsonProperty("namespace_integer")
|
|
||||||
private Integer namespaceInteger;
|
private Integer namespaceInteger;
|
||||||
|
|
||||||
@JsonProperty("namespace_boolean")
|
|
||||||
private Boolean namespaceBoolean;
|
private Boolean namespaceBoolean;
|
||||||
|
|
||||||
@JsonProperty("namespace_array")
|
|
||||||
|
|
||||||
private List<Integer> namespaceArray;
|
private List<Integer> namespaceArray;
|
||||||
|
|
||||||
@JsonProperty("namespace_wrapped_array")
|
|
||||||
|
|
||||||
private List<Integer> namespaceWrappedArray;
|
private List<Integer> namespaceWrappedArray;
|
||||||
|
|
||||||
@JsonProperty("prefix_ns_string")
|
|
||||||
private String prefixNsString;
|
private String prefixNsString;
|
||||||
|
|
||||||
@JsonProperty("prefix_ns_number")
|
|
||||||
private BigDecimal prefixNsNumber;
|
private BigDecimal prefixNsNumber;
|
||||||
|
|
||||||
@JsonProperty("prefix_ns_integer")
|
|
||||||
private Integer prefixNsInteger;
|
private Integer prefixNsInteger;
|
||||||
|
|
||||||
@JsonProperty("prefix_ns_boolean")
|
|
||||||
private Boolean prefixNsBoolean;
|
private Boolean prefixNsBoolean;
|
||||||
|
|
||||||
@JsonProperty("prefix_ns_array")
|
|
||||||
|
|
||||||
private List<Integer> prefixNsArray;
|
private List<Integer> prefixNsArray;
|
||||||
|
|
||||||
@JsonProperty("prefix_ns_wrapped_array")
|
|
||||||
|
|
||||||
private List<Integer> prefixNsWrappedArray;
|
private List<Integer> prefixNsWrappedArray;
|
||||||
|
|
||||||
@ -128,6 +99,7 @@ public class XmlItem {
|
|||||||
* @return attributeString
|
* @return attributeString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("attribute_string")
|
||||||
public String getAttributeString() {
|
public String getAttributeString() {
|
||||||
return attributeString;
|
return attributeString;
|
||||||
}
|
}
|
||||||
@ -146,6 +118,7 @@ public class XmlItem {
|
|||||||
* @return attributeNumber
|
* @return attributeNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("attribute_number")
|
||||||
public BigDecimal getAttributeNumber() {
|
public BigDecimal getAttributeNumber() {
|
||||||
return attributeNumber;
|
return attributeNumber;
|
||||||
}
|
}
|
||||||
@ -164,6 +137,7 @@ public class XmlItem {
|
|||||||
* @return attributeInteger
|
* @return attributeInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("attribute_integer")
|
||||||
public Integer getAttributeInteger() {
|
public Integer getAttributeInteger() {
|
||||||
return attributeInteger;
|
return attributeInteger;
|
||||||
}
|
}
|
||||||
@ -182,6 +156,7 @@ public class XmlItem {
|
|||||||
* @return attributeBoolean
|
* @return attributeBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("attribute_boolean")
|
||||||
public Boolean getAttributeBoolean() {
|
public Boolean getAttributeBoolean() {
|
||||||
return attributeBoolean;
|
return attributeBoolean;
|
||||||
}
|
}
|
||||||
@ -208,6 +183,7 @@ public class XmlItem {
|
|||||||
* @return wrappedArray
|
* @return wrappedArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("wrapped_array")
|
||||||
public List<Integer> getWrappedArray() {
|
public List<Integer> getWrappedArray() {
|
||||||
return wrappedArray;
|
return wrappedArray;
|
||||||
}
|
}
|
||||||
@ -226,6 +202,7 @@ public class XmlItem {
|
|||||||
* @return nameString
|
* @return nameString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name_string")
|
||||||
public String getNameString() {
|
public String getNameString() {
|
||||||
return nameString;
|
return nameString;
|
||||||
}
|
}
|
||||||
@ -244,6 +221,7 @@ public class XmlItem {
|
|||||||
* @return nameNumber
|
* @return nameNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name_number")
|
||||||
public BigDecimal getNameNumber() {
|
public BigDecimal getNameNumber() {
|
||||||
return nameNumber;
|
return nameNumber;
|
||||||
}
|
}
|
||||||
@ -262,6 +240,7 @@ public class XmlItem {
|
|||||||
* @return nameInteger
|
* @return nameInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name_integer")
|
||||||
public Integer getNameInteger() {
|
public Integer getNameInteger() {
|
||||||
return nameInteger;
|
return nameInteger;
|
||||||
}
|
}
|
||||||
@ -280,6 +259,7 @@ public class XmlItem {
|
|||||||
* @return nameBoolean
|
* @return nameBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name_boolean")
|
||||||
public Boolean getNameBoolean() {
|
public Boolean getNameBoolean() {
|
||||||
return nameBoolean;
|
return nameBoolean;
|
||||||
}
|
}
|
||||||
@ -306,6 +286,7 @@ public class XmlItem {
|
|||||||
* @return nameArray
|
* @return nameArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name_array")
|
||||||
public List<Integer> getNameArray() {
|
public List<Integer> getNameArray() {
|
||||||
return nameArray;
|
return nameArray;
|
||||||
}
|
}
|
||||||
@ -332,6 +313,7 @@ public class XmlItem {
|
|||||||
* @return nameWrappedArray
|
* @return nameWrappedArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name_wrapped_array")
|
||||||
public List<Integer> getNameWrappedArray() {
|
public List<Integer> getNameWrappedArray() {
|
||||||
return nameWrappedArray;
|
return nameWrappedArray;
|
||||||
}
|
}
|
||||||
@ -350,6 +332,7 @@ public class XmlItem {
|
|||||||
* @return prefixString
|
* @return prefixString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_string")
|
||||||
public String getPrefixString() {
|
public String getPrefixString() {
|
||||||
return prefixString;
|
return prefixString;
|
||||||
}
|
}
|
||||||
@ -368,6 +351,7 @@ public class XmlItem {
|
|||||||
* @return prefixNumber
|
* @return prefixNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_number")
|
||||||
public BigDecimal getPrefixNumber() {
|
public BigDecimal getPrefixNumber() {
|
||||||
return prefixNumber;
|
return prefixNumber;
|
||||||
}
|
}
|
||||||
@ -386,6 +370,7 @@ public class XmlItem {
|
|||||||
* @return prefixInteger
|
* @return prefixInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_integer")
|
||||||
public Integer getPrefixInteger() {
|
public Integer getPrefixInteger() {
|
||||||
return prefixInteger;
|
return prefixInteger;
|
||||||
}
|
}
|
||||||
@ -404,6 +389,7 @@ public class XmlItem {
|
|||||||
* @return prefixBoolean
|
* @return prefixBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_boolean")
|
||||||
public Boolean getPrefixBoolean() {
|
public Boolean getPrefixBoolean() {
|
||||||
return prefixBoolean;
|
return prefixBoolean;
|
||||||
}
|
}
|
||||||
@ -430,6 +416,7 @@ public class XmlItem {
|
|||||||
* @return prefixArray
|
* @return prefixArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_array")
|
||||||
public List<Integer> getPrefixArray() {
|
public List<Integer> getPrefixArray() {
|
||||||
return prefixArray;
|
return prefixArray;
|
||||||
}
|
}
|
||||||
@ -456,6 +443,7 @@ public class XmlItem {
|
|||||||
* @return prefixWrappedArray
|
* @return prefixWrappedArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_wrapped_array")
|
||||||
public List<Integer> getPrefixWrappedArray() {
|
public List<Integer> getPrefixWrappedArray() {
|
||||||
return prefixWrappedArray;
|
return prefixWrappedArray;
|
||||||
}
|
}
|
||||||
@ -474,6 +462,7 @@ public class XmlItem {
|
|||||||
* @return namespaceString
|
* @return namespaceString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("namespace_string")
|
||||||
public String getNamespaceString() {
|
public String getNamespaceString() {
|
||||||
return namespaceString;
|
return namespaceString;
|
||||||
}
|
}
|
||||||
@ -492,6 +481,7 @@ public class XmlItem {
|
|||||||
* @return namespaceNumber
|
* @return namespaceNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("namespace_number")
|
||||||
public BigDecimal getNamespaceNumber() {
|
public BigDecimal getNamespaceNumber() {
|
||||||
return namespaceNumber;
|
return namespaceNumber;
|
||||||
}
|
}
|
||||||
@ -510,6 +500,7 @@ public class XmlItem {
|
|||||||
* @return namespaceInteger
|
* @return namespaceInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("namespace_integer")
|
||||||
public Integer getNamespaceInteger() {
|
public Integer getNamespaceInteger() {
|
||||||
return namespaceInteger;
|
return namespaceInteger;
|
||||||
}
|
}
|
||||||
@ -528,6 +519,7 @@ public class XmlItem {
|
|||||||
* @return namespaceBoolean
|
* @return namespaceBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("namespace_boolean")
|
||||||
public Boolean getNamespaceBoolean() {
|
public Boolean getNamespaceBoolean() {
|
||||||
return namespaceBoolean;
|
return namespaceBoolean;
|
||||||
}
|
}
|
||||||
@ -554,6 +546,7 @@ public class XmlItem {
|
|||||||
* @return namespaceArray
|
* @return namespaceArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("namespace_array")
|
||||||
public List<Integer> getNamespaceArray() {
|
public List<Integer> getNamespaceArray() {
|
||||||
return namespaceArray;
|
return namespaceArray;
|
||||||
}
|
}
|
||||||
@ -580,6 +573,7 @@ public class XmlItem {
|
|||||||
* @return namespaceWrappedArray
|
* @return namespaceWrappedArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("namespace_wrapped_array")
|
||||||
public List<Integer> getNamespaceWrappedArray() {
|
public List<Integer> getNamespaceWrappedArray() {
|
||||||
return namespaceWrappedArray;
|
return namespaceWrappedArray;
|
||||||
}
|
}
|
||||||
@ -598,6 +592,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsString
|
* @return prefixNsString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_ns_string")
|
||||||
public String getPrefixNsString() {
|
public String getPrefixNsString() {
|
||||||
return prefixNsString;
|
return prefixNsString;
|
||||||
}
|
}
|
||||||
@ -616,6 +611,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsNumber
|
* @return prefixNsNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_ns_number")
|
||||||
public BigDecimal getPrefixNsNumber() {
|
public BigDecimal getPrefixNsNumber() {
|
||||||
return prefixNsNumber;
|
return prefixNsNumber;
|
||||||
}
|
}
|
||||||
@ -634,6 +630,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsInteger
|
* @return prefixNsInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_ns_integer")
|
||||||
public Integer getPrefixNsInteger() {
|
public Integer getPrefixNsInteger() {
|
||||||
return prefixNsInteger;
|
return prefixNsInteger;
|
||||||
}
|
}
|
||||||
@ -652,6 +649,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsBoolean
|
* @return prefixNsBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_ns_boolean")
|
||||||
public Boolean getPrefixNsBoolean() {
|
public Boolean getPrefixNsBoolean() {
|
||||||
return prefixNsBoolean;
|
return prefixNsBoolean;
|
||||||
}
|
}
|
||||||
@ -678,6 +676,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsArray
|
* @return prefixNsArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_ns_array")
|
||||||
public List<Integer> getPrefixNsArray() {
|
public List<Integer> getPrefixNsArray() {
|
||||||
return prefixNsArray;
|
return prefixNsArray;
|
||||||
}
|
}
|
||||||
@ -704,6 +703,7 @@ public class XmlItem {
|
|||||||
* @return prefixNsWrappedArray
|
* @return prefixNsWrappedArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("prefix_ns_wrapped_array")
|
||||||
public List<Integer> getPrefixNsWrappedArray() {
|
public List<Integer> getPrefixNsWrappedArray() {
|
||||||
return prefixNsWrappedArray;
|
return prefixNsWrappedArray;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,7 @@ src/main/java/org/openapitools/model/OuterCompositeDto.java
|
|||||||
src/main/java/org/openapitools/model/OuterEnumDto.java
|
src/main/java/org/openapitools/model/OuterEnumDto.java
|
||||||
src/main/java/org/openapitools/model/PetDto.java
|
src/main/java/org/openapitools/model/PetDto.java
|
||||||
src/main/java/org/openapitools/model/ReadOnlyFirstDto.java
|
src/main/java/org/openapitools/model/ReadOnlyFirstDto.java
|
||||||
|
src/main/java/org/openapitools/model/ResponseObjectWithDifferentFieldNamesDto.java
|
||||||
src/main/java/org/openapitools/model/ReturnDto.java
|
src/main/java/org/openapitools/model/ReturnDto.java
|
||||||
src/main/java/org/openapitools/model/SpecialModelNameDto.java
|
src/main/java/org/openapitools/model/SpecialModelNameDto.java
|
||||||
src/main/java/org/openapitools/model/TagDto.java
|
src/main/java/org/openapitools/model/TagDto.java
|
||||||
|
@ -7,6 +7,7 @@ package org.openapitools.api;
|
|||||||
|
|
||||||
import org.openapitools.model.ApiResponseDto;
|
import org.openapitools.model.ApiResponseDto;
|
||||||
import org.openapitools.model.PetDto;
|
import org.openapitools.model.PetDto;
|
||||||
|
import org.openapitools.model.ResponseObjectWithDifferentFieldNamesDto;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@ -118,6 +119,22 @@ public interface PetApi {
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GET /fake/{petId}/response-object-different-names
|
||||||
|
*
|
||||||
|
* @param petId ID of pet to update (required)
|
||||||
|
* @return successful operation (status code 200)
|
||||||
|
*/
|
||||||
|
@HttpExchange(
|
||||||
|
method = "GET",
|
||||||
|
value = "/fake/{petId}/response-object-different-names",
|
||||||
|
accept = "application/json"
|
||||||
|
)
|
||||||
|
ResponseEntity<ResponseObjectWithDifferentFieldNamesDto> responseObjectDifferentNames(
|
||||||
|
@PathVariable("petId") Long petId
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PUT /pet : Update an existing pet
|
* PUT /pet : Update an existing pet
|
||||||
*
|
*
|
||||||
|
@ -23,7 +23,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesAnyTypeDto extends HashMap<String, Object> {
|
public class AdditionalPropertiesAnyTypeDto extends HashMap<String, Object> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesAnyTypeDto name(String name) {
|
public AdditionalPropertiesAnyTypeDto name(String name) {
|
||||||
@ -36,6 +35,7 @@ public class AdditionalPropertiesAnyTypeDto extends HashMap<String, Object> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesArrayDto extends HashMap<String, List> {
|
public class AdditionalPropertiesArrayDto extends HashMap<String, List> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesArrayDto name(String name) {
|
public AdditionalPropertiesArrayDto name(String name) {
|
||||||
@ -37,6 +36,7 @@ public class AdditionalPropertiesArrayDto extends HashMap<String, List> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesBooleanDto extends HashMap<String, Boolean> {
|
public class AdditionalPropertiesBooleanDto extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesBooleanDto name(String name) {
|
public AdditionalPropertiesBooleanDto name(String name) {
|
||||||
@ -36,6 +35,7 @@ public class AdditionalPropertiesBooleanDto extends HashMap<String, Boolean> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -28,45 +28,34 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesClassDto {
|
public class AdditionalPropertiesClassDto {
|
||||||
|
|
||||||
@JsonProperty("map_string")
|
|
||||||
|
|
||||||
private Map<String, String> mapString = new HashMap<>();
|
private Map<String, String> mapString = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_number")
|
|
||||||
|
|
||||||
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_integer")
|
|
||||||
|
|
||||||
private Map<String, Integer> mapInteger = new HashMap<>();
|
private Map<String, Integer> mapInteger = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_boolean")
|
|
||||||
|
|
||||||
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_array_integer")
|
|
||||||
|
|
||||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_array_anytype")
|
|
||||||
|
|
||||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_map_string")
|
|
||||||
|
|
||||||
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("map_map_anytype")
|
|
||||||
|
|
||||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||||
|
|
||||||
@JsonProperty("anytype_1")
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
@JsonProperty("anytype_2")
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
||||||
|
|
||||||
@JsonProperty("anytype_3")
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
public AdditionalPropertiesClassDto mapString(Map<String, String> mapString) {
|
public AdditionalPropertiesClassDto mapString(Map<String, String> mapString) {
|
||||||
@ -87,6 +76,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapString
|
* @return mapString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_string")
|
||||||
public Map<String, String> getMapString() {
|
public Map<String, String> getMapString() {
|
||||||
return mapString;
|
return mapString;
|
||||||
}
|
}
|
||||||
@ -113,6 +103,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapNumber
|
* @return mapNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_number")
|
||||||
public Map<String, BigDecimal> getMapNumber() {
|
public Map<String, BigDecimal> getMapNumber() {
|
||||||
return mapNumber;
|
return mapNumber;
|
||||||
}
|
}
|
||||||
@ -139,6 +130,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapInteger
|
* @return mapInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_integer")
|
||||||
public Map<String, Integer> getMapInteger() {
|
public Map<String, Integer> getMapInteger() {
|
||||||
return mapInteger;
|
return mapInteger;
|
||||||
}
|
}
|
||||||
@ -165,6 +157,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapBoolean
|
* @return mapBoolean
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_boolean")
|
||||||
public Map<String, Boolean> getMapBoolean() {
|
public Map<String, Boolean> getMapBoolean() {
|
||||||
return mapBoolean;
|
return mapBoolean;
|
||||||
}
|
}
|
||||||
@ -191,6 +184,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapArrayInteger
|
* @return mapArrayInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_array_integer")
|
||||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||||
return mapArrayInteger;
|
return mapArrayInteger;
|
||||||
}
|
}
|
||||||
@ -217,6 +211,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapArrayAnytype
|
* @return mapArrayAnytype
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_array_anytype")
|
||||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||||
return mapArrayAnytype;
|
return mapArrayAnytype;
|
||||||
}
|
}
|
||||||
@ -243,6 +238,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapMapString
|
* @return mapMapString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_map_string")
|
||||||
public Map<String, Map<String, String>> getMapMapString() {
|
public Map<String, Map<String, String>> getMapMapString() {
|
||||||
return mapMapString;
|
return mapMapString;
|
||||||
}
|
}
|
||||||
@ -269,6 +265,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return mapMapAnytype
|
* @return mapMapAnytype
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("map_map_anytype")
|
||||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||||
return mapMapAnytype;
|
return mapMapAnytype;
|
||||||
}
|
}
|
||||||
@ -287,6 +284,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return anytype1
|
* @return anytype1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("anytype_1")
|
||||||
public Object getAnytype1() {
|
public Object getAnytype1() {
|
||||||
return anytype1;
|
return anytype1;
|
||||||
}
|
}
|
||||||
@ -305,6 +303,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return anytype2
|
* @return anytype2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("anytype_2")
|
||||||
public JsonNullable<Object> getAnytype2() {
|
public JsonNullable<Object> getAnytype2() {
|
||||||
return anytype2;
|
return anytype2;
|
||||||
}
|
}
|
||||||
@ -323,6 +322,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
* @return anytype3
|
* @return anytype3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("anytype_3")
|
||||||
public Object getAnytype3() {
|
public Object getAnytype3() {
|
||||||
return anytype3;
|
return anytype3;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesIntegerDto extends HashMap<String, Integer> {
|
public class AdditionalPropertiesIntegerDto extends HashMap<String, Integer> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesIntegerDto name(String name) {
|
public AdditionalPropertiesIntegerDto name(String name) {
|
||||||
@ -36,6 +35,7 @@ public class AdditionalPropertiesIntegerDto extends HashMap<String, Integer> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesNumberDto extends HashMap<String, BigDecimal> {
|
public class AdditionalPropertiesNumberDto extends HashMap<String, BigDecimal> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesNumberDto name(String name) {
|
public AdditionalPropertiesNumberDto name(String name) {
|
||||||
@ -37,6 +36,7 @@ public class AdditionalPropertiesNumberDto extends HashMap<String, BigDecimal> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesObjectDto extends HashMap<String, Map> {
|
public class AdditionalPropertiesObjectDto extends HashMap<String, Map> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesObjectDto name(String name) {
|
public AdditionalPropertiesObjectDto name(String name) {
|
||||||
@ -36,6 +35,7 @@ public class AdditionalPropertiesObjectDto extends HashMap<String, Map> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesStringDto extends HashMap<String, String> {
|
public class AdditionalPropertiesStringDto extends HashMap<String, String> {
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
public AdditionalPropertiesStringDto name(String name) {
|
public AdditionalPropertiesStringDto name(String name) {
|
||||||
@ -36,6 +35,7 @@ public class AdditionalPropertiesStringDto extends HashMap<String, String> {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -37,10 +37,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AnimalDto {
|
public class AnimalDto {
|
||||||
|
|
||||||
@JsonProperty("className")
|
|
||||||
private String className;
|
private String className;
|
||||||
|
|
||||||
@JsonProperty("color")
|
|
||||||
private String color = "red";
|
private String color = "red";
|
||||||
|
|
||||||
public AnimalDto className(String className) {
|
public AnimalDto className(String className) {
|
||||||
@ -53,6 +51,7 @@ public class AnimalDto {
|
|||||||
* @return className
|
* @return className
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("className")
|
||||||
public String getClassName() {
|
public String getClassName() {
|
||||||
return className;
|
return className;
|
||||||
}
|
}
|
||||||
@ -71,6 +70,7 @@ public class AnimalDto {
|
|||||||
* @return color
|
* @return color
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("color")
|
||||||
public String getColor() {
|
public String getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
@ -21,13 +21,10 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ApiResponseDto {
|
public class ApiResponseDto {
|
||||||
|
|
||||||
@JsonProperty("code")
|
|
||||||
private Integer code;
|
private Integer code;
|
||||||
|
|
||||||
@JsonProperty("type")
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@JsonProperty("message")
|
|
||||||
private String message;
|
private String message;
|
||||||
|
|
||||||
public ApiResponseDto code(Integer code) {
|
public ApiResponseDto code(Integer code) {
|
||||||
@ -40,6 +37,7 @@ public class ApiResponseDto {
|
|||||||
* @return code
|
* @return code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Integer getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
@ -58,6 +56,7 @@ public class ApiResponseDto {
|
|||||||
* @return type
|
* @return type
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -76,6 +75,7 @@ public class ApiResponseDto {
|
|||||||
* @return message
|
* @return message
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ArrayOfArrayOfNumberOnlyDto {
|
public class ArrayOfArrayOfNumberOnlyDto {
|
||||||
|
|
||||||
@JsonProperty("ArrayArrayNumber")
|
|
||||||
|
|
||||||
private List<List<BigDecimal>> arrayArrayNumber;
|
private List<List<BigDecimal>> arrayArrayNumber;
|
||||||
|
|
||||||
@ -46,6 +45,7 @@ public class ArrayOfArrayOfNumberOnlyDto {
|
|||||||
* @return arrayArrayNumber
|
* @return arrayArrayNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("ArrayArrayNumber")
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
return arrayArrayNumber;
|
return arrayArrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ArrayOfNumberOnlyDto {
|
public class ArrayOfNumberOnlyDto {
|
||||||
|
|
||||||
@JsonProperty("ArrayNumber")
|
|
||||||
|
|
||||||
private List<BigDecimal> arrayNumber;
|
private List<BigDecimal> arrayNumber;
|
||||||
|
|
||||||
@ -46,6 +45,7 @@ public class ArrayOfNumberOnlyDto {
|
|||||||
* @return arrayNumber
|
* @return arrayNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("ArrayNumber")
|
||||||
public List<BigDecimal> getArrayNumber() {
|
public List<BigDecimal> getArrayNumber() {
|
||||||
return arrayNumber;
|
return arrayNumber;
|
||||||
}
|
}
|
||||||
|
@ -24,15 +24,12 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ArrayTestDto {
|
public class ArrayTestDto {
|
||||||
|
|
||||||
@JsonProperty("array_of_string")
|
|
||||||
|
|
||||||
private List<String> arrayOfString;
|
private List<String> arrayOfString;
|
||||||
|
|
||||||
@JsonProperty("array_array_of_integer")
|
|
||||||
|
|
||||||
private List<List<Long>> arrayArrayOfInteger;
|
private List<List<Long>> arrayArrayOfInteger;
|
||||||
|
|
||||||
@JsonProperty("array_array_of_model")
|
|
||||||
|
|
||||||
private List<List<ReadOnlyFirstDto>> arrayArrayOfModel;
|
private List<List<ReadOnlyFirstDto>> arrayArrayOfModel;
|
||||||
|
|
||||||
@ -54,6 +51,7 @@ public class ArrayTestDto {
|
|||||||
* @return arrayOfString
|
* @return arrayOfString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_of_string")
|
||||||
public List<String> getArrayOfString() {
|
public List<String> getArrayOfString() {
|
||||||
return arrayOfString;
|
return arrayOfString;
|
||||||
}
|
}
|
||||||
@ -80,6 +78,7 @@ public class ArrayTestDto {
|
|||||||
* @return arrayArrayOfInteger
|
* @return arrayArrayOfInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_array_of_integer")
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
return arrayArrayOfInteger;
|
return arrayArrayOfInteger;
|
||||||
}
|
}
|
||||||
@ -106,6 +105,7 @@ public class ArrayTestDto {
|
|||||||
* @return arrayArrayOfModel
|
* @return arrayArrayOfModel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_array_of_model")
|
||||||
public List<List<ReadOnlyFirstDto>> getArrayArrayOfModel() {
|
public List<List<ReadOnlyFirstDto>> getArrayArrayOfModel() {
|
||||||
return arrayArrayOfModel;
|
return arrayArrayOfModel;
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,6 @@ public class BigCatAllOfDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("kind")
|
|
||||||
private KindEnum kind;
|
private KindEnum kind;
|
||||||
|
|
||||||
public BigCatAllOfDto kind(KindEnum kind) {
|
public BigCatAllOfDto kind(KindEnum kind) {
|
||||||
@ -74,6 +73,7 @@ public class BigCatAllOfDto {
|
|||||||
* @return kind
|
* @return kind
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("kind")
|
||||||
public KindEnum getKind() {
|
public KindEnum getKind() {
|
||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,6 @@ public class BigCatDto extends CatDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("kind")
|
|
||||||
private KindEnum kind;
|
private KindEnum kind;
|
||||||
|
|
||||||
public BigCatDto kind(KindEnum kind) {
|
public BigCatDto kind(KindEnum kind) {
|
||||||
@ -79,6 +78,7 @@ public class BigCatDto extends CatDto {
|
|||||||
* @return kind
|
* @return kind
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("kind")
|
||||||
public KindEnum getKind() {
|
public KindEnum getKind() {
|
||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
@ -21,22 +21,16 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class CapitalizationDto {
|
public class CapitalizationDto {
|
||||||
|
|
||||||
@JsonProperty("smallCamel")
|
|
||||||
private String smallCamel;
|
private String smallCamel;
|
||||||
|
|
||||||
@JsonProperty("CapitalCamel")
|
|
||||||
private String capitalCamel;
|
private String capitalCamel;
|
||||||
|
|
||||||
@JsonProperty("small_Snake")
|
|
||||||
private String smallSnake;
|
private String smallSnake;
|
||||||
|
|
||||||
@JsonProperty("Capital_Snake")
|
|
||||||
private String capitalSnake;
|
private String capitalSnake;
|
||||||
|
|
||||||
@JsonProperty("SCA_ETH_Flow_Points")
|
|
||||||
private String scAETHFlowPoints;
|
private String scAETHFlowPoints;
|
||||||
|
|
||||||
@JsonProperty("ATT_NAME")
|
|
||||||
private String ATT_NAME;
|
private String ATT_NAME;
|
||||||
|
|
||||||
public CapitalizationDto smallCamel(String smallCamel) {
|
public CapitalizationDto smallCamel(String smallCamel) {
|
||||||
@ -49,6 +43,7 @@ public class CapitalizationDto {
|
|||||||
* @return smallCamel
|
* @return smallCamel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("smallCamel")
|
||||||
public String getSmallCamel() {
|
public String getSmallCamel() {
|
||||||
return smallCamel;
|
return smallCamel;
|
||||||
}
|
}
|
||||||
@ -67,6 +62,7 @@ public class CapitalizationDto {
|
|||||||
* @return capitalCamel
|
* @return capitalCamel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("CapitalCamel")
|
||||||
public String getCapitalCamel() {
|
public String getCapitalCamel() {
|
||||||
return capitalCamel;
|
return capitalCamel;
|
||||||
}
|
}
|
||||||
@ -85,6 +81,7 @@ public class CapitalizationDto {
|
|||||||
* @return smallSnake
|
* @return smallSnake
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("small_Snake")
|
||||||
public String getSmallSnake() {
|
public String getSmallSnake() {
|
||||||
return smallSnake;
|
return smallSnake;
|
||||||
}
|
}
|
||||||
@ -103,6 +100,7 @@ public class CapitalizationDto {
|
|||||||
* @return capitalSnake
|
* @return capitalSnake
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("Capital_Snake")
|
||||||
public String getCapitalSnake() {
|
public String getCapitalSnake() {
|
||||||
return capitalSnake;
|
return capitalSnake;
|
||||||
}
|
}
|
||||||
@ -121,6 +119,7 @@ public class CapitalizationDto {
|
|||||||
* @return scAETHFlowPoints
|
* @return scAETHFlowPoints
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("SCA_ETH_Flow_Points")
|
||||||
public String getScAETHFlowPoints() {
|
public String getScAETHFlowPoints() {
|
||||||
return scAETHFlowPoints;
|
return scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
@ -139,6 +138,7 @@ public class CapitalizationDto {
|
|||||||
* @return ATT_NAME
|
* @return ATT_NAME
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("ATT_NAME")
|
||||||
public String getATTNAME() {
|
public String getATTNAME() {
|
||||||
return ATT_NAME;
|
return ATT_NAME;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class CatAllOfDto {
|
public class CatAllOfDto {
|
||||||
|
|
||||||
@JsonProperty("declawed")
|
|
||||||
private Boolean declawed;
|
private Boolean declawed;
|
||||||
|
|
||||||
public CatAllOfDto declawed(Boolean declawed) {
|
public CatAllOfDto declawed(Boolean declawed) {
|
||||||
@ -34,6 +33,7 @@ public class CatAllOfDto {
|
|||||||
* @return declawed
|
* @return declawed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("declawed")
|
||||||
public Boolean getDeclawed() {
|
public Boolean getDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class CatDto extends AnimalDto {
|
public class CatDto extends AnimalDto {
|
||||||
|
|
||||||
@JsonProperty("declawed")
|
|
||||||
private Boolean declawed;
|
private Boolean declawed;
|
||||||
|
|
||||||
public CatDto declawed(Boolean declawed) {
|
public CatDto declawed(Boolean declawed) {
|
||||||
@ -47,6 +46,7 @@ public class CatDto extends AnimalDto {
|
|||||||
* @return declawed
|
* @return declawed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("declawed")
|
||||||
public Boolean getDeclawed() {
|
public Boolean getDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class CategoryDto {
|
public class CategoryDto {
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name = "default-name";
|
private String name = "default-name";
|
||||||
|
|
||||||
public CategoryDto id(Long id) {
|
public CategoryDto id(Long id) {
|
||||||
@ -37,6 +35,7 @@ public class CategoryDto {
|
|||||||
* @return id
|
* @return id
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -55,6 +54,7 @@ public class CategoryDto {
|
|||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ClassModelDto {
|
public class ClassModelDto {
|
||||||
|
|
||||||
@JsonProperty("_class")
|
|
||||||
private String propertyClass;
|
private String propertyClass;
|
||||||
|
|
||||||
public ClassModelDto propertyClass(String propertyClass) {
|
public ClassModelDto propertyClass(String propertyClass) {
|
||||||
@ -34,6 +33,7 @@ public class ClassModelDto {
|
|||||||
* @return propertyClass
|
* @return propertyClass
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("_class")
|
||||||
public String getPropertyClass() {
|
public String getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ClientDto {
|
public class ClientDto {
|
||||||
|
|
||||||
@JsonProperty("client")
|
|
||||||
private String client;
|
private String client;
|
||||||
|
|
||||||
public ClientDto client(String client) {
|
public ClientDto client(String client) {
|
||||||
@ -34,6 +33,7 @@ public class ClientDto {
|
|||||||
* @return client
|
* @return client
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("client")
|
||||||
public String getClient() {
|
public String getClient() {
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
@ -26,19 +26,15 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ContainerDefaultValueDto {
|
public class ContainerDefaultValueDto {
|
||||||
|
|
||||||
@JsonProperty("nullable_array")
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
||||||
|
|
||||||
@JsonProperty("nullable_required_array")
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
||||||
|
|
||||||
@JsonProperty("required_array")
|
|
||||||
|
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@JsonProperty("nullable_array_with_default")
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
||||||
|
|
||||||
@ -60,6 +56,7 @@ public class ContainerDefaultValueDto {
|
|||||||
* @return nullableArray
|
* @return nullableArray
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("nullable_array")
|
||||||
public JsonNullable<List<String>> getNullableArray() {
|
public JsonNullable<List<String>> getNullableArray() {
|
||||||
return nullableArray;
|
return nullableArray;
|
||||||
}
|
}
|
||||||
@ -86,6 +83,7 @@ public class ContainerDefaultValueDto {
|
|||||||
* @return nullableRequiredArray
|
* @return nullableRequiredArray
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("nullable_required_array")
|
||||||
public JsonNullable<List<String>> getNullableRequiredArray() {
|
public JsonNullable<List<String>> getNullableRequiredArray() {
|
||||||
return nullableRequiredArray;
|
return nullableRequiredArray;
|
||||||
}
|
}
|
||||||
@ -112,6 +110,7 @@ public class ContainerDefaultValueDto {
|
|||||||
* @return requiredArray
|
* @return requiredArray
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("required_array")
|
||||||
public List<String> getRequiredArray() {
|
public List<String> getRequiredArray() {
|
||||||
return requiredArray;
|
return requiredArray;
|
||||||
}
|
}
|
||||||
@ -138,6 +137,7 @@ public class ContainerDefaultValueDto {
|
|||||||
* @return nullableArrayWithDefault
|
* @return nullableArrayWithDefault
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("nullable_array_with_default")
|
||||||
public JsonNullable<List<String>> getNullableArrayWithDefault() {
|
public JsonNullable<List<String>> getNullableArrayWithDefault() {
|
||||||
return nullableArrayWithDefault;
|
return nullableArrayWithDefault;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class DogAllOfDto {
|
public class DogAllOfDto {
|
||||||
|
|
||||||
@JsonProperty("breed")
|
|
||||||
private String breed;
|
private String breed;
|
||||||
|
|
||||||
public DogAllOfDto breed(String breed) {
|
public DogAllOfDto breed(String breed) {
|
||||||
@ -34,6 +33,7 @@ public class DogAllOfDto {
|
|||||||
* @return breed
|
* @return breed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("breed")
|
||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class DogDto extends AnimalDto {
|
public class DogDto extends AnimalDto {
|
||||||
|
|
||||||
@JsonProperty("breed")
|
|
||||||
private String breed;
|
private String breed;
|
||||||
|
|
||||||
public DogDto breed(String breed) {
|
public DogDto breed(String breed) {
|
||||||
@ -39,6 +38,7 @@ public class DogDto extends AnimalDto {
|
|||||||
* @return breed
|
* @return breed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("breed")
|
||||||
public String getBreed() {
|
public String getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,6 @@ public class EnumArraysDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("just_symbol")
|
|
||||||
private JustSymbolEnum justSymbol;
|
private JustSymbolEnum justSymbol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -97,7 +96,6 @@ public class EnumArraysDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("array_enum")
|
|
||||||
|
|
||||||
private List<ArrayEnumEnum> arrayEnum;
|
private List<ArrayEnumEnum> arrayEnum;
|
||||||
|
|
||||||
@ -111,6 +109,7 @@ public class EnumArraysDto {
|
|||||||
* @return justSymbol
|
* @return justSymbol
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("just_symbol")
|
||||||
public JustSymbolEnum getJustSymbol() {
|
public JustSymbolEnum getJustSymbol() {
|
||||||
return justSymbol;
|
return justSymbol;
|
||||||
}
|
}
|
||||||
@ -137,6 +136,7 @@ public class EnumArraysDto {
|
|||||||
* @return arrayEnum
|
* @return arrayEnum
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("array_enum")
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
return arrayEnum;
|
return arrayEnum;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,6 @@ public class EnumTestDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_string")
|
|
||||||
private EnumStringEnum enumString;
|
private EnumStringEnum enumString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -100,7 +99,6 @@ public class EnumTestDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_string_required")
|
|
||||||
private EnumStringRequiredEnum enumStringRequired;
|
private EnumStringRequiredEnum enumStringRequired;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -138,7 +136,6 @@ public class EnumTestDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_integer")
|
|
||||||
private EnumIntegerEnum enumInteger;
|
private EnumIntegerEnum enumInteger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -176,10 +173,8 @@ public class EnumTestDto {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("enum_number")
|
|
||||||
private EnumNumberEnum enumNumber;
|
private EnumNumberEnum enumNumber;
|
||||||
|
|
||||||
@JsonProperty("outerEnum")
|
|
||||||
private OuterEnumDto outerEnum;
|
private OuterEnumDto outerEnum;
|
||||||
|
|
||||||
public EnumTestDto enumString(EnumStringEnum enumString) {
|
public EnumTestDto enumString(EnumStringEnum enumString) {
|
||||||
@ -192,6 +187,7 @@ public class EnumTestDto {
|
|||||||
* @return enumString
|
* @return enumString
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("enum_string")
|
||||||
public EnumStringEnum getEnumString() {
|
public EnumStringEnum getEnumString() {
|
||||||
return enumString;
|
return enumString;
|
||||||
}
|
}
|
||||||
@ -210,6 +206,7 @@ public class EnumTestDto {
|
|||||||
* @return enumStringRequired
|
* @return enumStringRequired
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("enum_string_required")
|
||||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||||
return enumStringRequired;
|
return enumStringRequired;
|
||||||
}
|
}
|
||||||
@ -228,6 +225,7 @@ public class EnumTestDto {
|
|||||||
* @return enumInteger
|
* @return enumInteger
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("enum_integer")
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
public EnumIntegerEnum getEnumInteger() {
|
||||||
return enumInteger;
|
return enumInteger;
|
||||||
}
|
}
|
||||||
@ -246,6 +244,7 @@ public class EnumTestDto {
|
|||||||
* @return enumNumber
|
* @return enumNumber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("enum_number")
|
||||||
public EnumNumberEnum getEnumNumber() {
|
public EnumNumberEnum getEnumNumber() {
|
||||||
return enumNumber;
|
return enumNumber;
|
||||||
}
|
}
|
||||||
@ -264,6 +263,7 @@ public class EnumTestDto {
|
|||||||
* @return outerEnum
|
* @return outerEnum
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("outerEnum")
|
||||||
public OuterEnumDto getOuterEnum() {
|
public OuterEnumDto getOuterEnum() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class FileDto {
|
public class FileDto {
|
||||||
|
|
||||||
@JsonProperty("sourceURI")
|
|
||||||
private String sourceURI;
|
private String sourceURI;
|
||||||
|
|
||||||
public FileDto sourceURI(String sourceURI) {
|
public FileDto sourceURI(String sourceURI) {
|
||||||
@ -34,6 +33,7 @@ public class FileDto {
|
|||||||
* @return sourceURI
|
* @return sourceURI
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("sourceURI")
|
||||||
public String getSourceURI() {
|
public String getSourceURI() {
|
||||||
return sourceURI;
|
return sourceURI;
|
||||||
}
|
}
|
||||||
|
@ -24,10 +24,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class FileSchemaTestClassDto {
|
public class FileSchemaTestClassDto {
|
||||||
|
|
||||||
@JsonProperty("file")
|
|
||||||
private FileDto file;
|
private FileDto file;
|
||||||
|
|
||||||
@JsonProperty("files")
|
|
||||||
|
|
||||||
private List<FileDto> files;
|
private List<FileDto> files;
|
||||||
|
|
||||||
@ -41,6 +39,7 @@ public class FileSchemaTestClassDto {
|
|||||||
* @return file
|
* @return file
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("file")
|
||||||
public FileDto getFile() {
|
public FileDto getFile() {
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
@ -67,6 +66,7 @@ public class FileSchemaTestClassDto {
|
|||||||
* @return files
|
* @return files
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("files")
|
||||||
public List<FileDto> getFiles() {
|
public List<FileDto> getFiles() {
|
||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
|
@ -27,48 +27,34 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class FormatTestDto {
|
public class FormatTestDto {
|
||||||
|
|
||||||
@JsonProperty("integer")
|
|
||||||
private Integer integer;
|
private Integer integer;
|
||||||
|
|
||||||
@JsonProperty("int32")
|
|
||||||
private Integer int32;
|
private Integer int32;
|
||||||
|
|
||||||
@JsonProperty("int64")
|
|
||||||
private Long int64;
|
private Long int64;
|
||||||
|
|
||||||
@JsonProperty("number")
|
|
||||||
private BigDecimal number;
|
private BigDecimal number;
|
||||||
|
|
||||||
@JsonProperty("float")
|
|
||||||
private Float _float;
|
private Float _float;
|
||||||
|
|
||||||
@JsonProperty("double")
|
|
||||||
private Double _double;
|
private Double _double;
|
||||||
|
|
||||||
@JsonProperty("string")
|
|
||||||
private String string;
|
private String string;
|
||||||
|
|
||||||
@JsonProperty("byte")
|
|
||||||
private byte[] _byte;
|
private byte[] _byte;
|
||||||
|
|
||||||
@JsonProperty("binary")
|
|
||||||
private org.springframework.core.io.Resource binary;
|
private org.springframework.core.io.Resource binary;
|
||||||
|
|
||||||
@JsonProperty("date")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||||
private LocalDate date;
|
private LocalDate date;
|
||||||
|
|
||||||
@JsonProperty("dateTime")
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime dateTime;
|
private OffsetDateTime dateTime;
|
||||||
|
|
||||||
@JsonProperty("uuid")
|
|
||||||
private UUID uuid;
|
private UUID uuid;
|
||||||
|
|
||||||
@JsonProperty("password")
|
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@JsonProperty("BigDecimal")
|
|
||||||
private BigDecimal bigDecimal;
|
private BigDecimal bigDecimal;
|
||||||
|
|
||||||
public FormatTestDto integer(Integer integer) {
|
public FormatTestDto integer(Integer integer) {
|
||||||
@ -83,6 +69,7 @@ public class FormatTestDto {
|
|||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("integer")
|
||||||
public Integer getInteger() {
|
public Integer getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
}
|
}
|
||||||
@ -103,6 +90,7 @@ public class FormatTestDto {
|
|||||||
* @return int32
|
* @return int32
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("int32")
|
||||||
public Integer getInt32() {
|
public Integer getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
}
|
}
|
||||||
@ -121,6 +109,7 @@ public class FormatTestDto {
|
|||||||
* @return int64
|
* @return int64
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("int64")
|
||||||
public Long getInt64() {
|
public Long getInt64() {
|
||||||
return int64;
|
return int64;
|
||||||
}
|
}
|
||||||
@ -141,6 +130,7 @@ public class FormatTestDto {
|
|||||||
* @return number
|
* @return number
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("number")
|
||||||
public BigDecimal getNumber() {
|
public BigDecimal getNumber() {
|
||||||
return number;
|
return number;
|
||||||
}
|
}
|
||||||
@ -161,6 +151,7 @@ public class FormatTestDto {
|
|||||||
* @return _float
|
* @return _float
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("float")
|
||||||
public Float getFloat() {
|
public Float getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
}
|
}
|
||||||
@ -181,6 +172,7 @@ public class FormatTestDto {
|
|||||||
* @return _double
|
* @return _double
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("double")
|
||||||
public Double getDouble() {
|
public Double getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
}
|
}
|
||||||
@ -199,6 +191,7 @@ public class FormatTestDto {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("string")
|
||||||
public String getString() {
|
public String getString() {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
@ -217,6 +210,7 @@ public class FormatTestDto {
|
|||||||
* @return _byte
|
* @return _byte
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("byte")
|
||||||
public byte[] getByte() {
|
public byte[] getByte() {
|
||||||
return _byte;
|
return _byte;
|
||||||
}
|
}
|
||||||
@ -235,6 +229,7 @@ public class FormatTestDto {
|
|||||||
* @return binary
|
* @return binary
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("binary")
|
||||||
public org.springframework.core.io.Resource getBinary() {
|
public org.springframework.core.io.Resource getBinary() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
@ -253,6 +248,7 @@ public class FormatTestDto {
|
|||||||
* @return date
|
* @return date
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("date")
|
||||||
public LocalDate getDate() {
|
public LocalDate getDate() {
|
||||||
return date;
|
return date;
|
||||||
}
|
}
|
||||||
@ -271,6 +267,7 @@ public class FormatTestDto {
|
|||||||
* @return dateTime
|
* @return dateTime
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("dateTime")
|
||||||
public OffsetDateTime getDateTime() {
|
public OffsetDateTime getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
@ -289,6 +286,7 @@ public class FormatTestDto {
|
|||||||
* @return uuid
|
* @return uuid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public UUID getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
@ -307,6 +305,7 @@ public class FormatTestDto {
|
|||||||
* @return password
|
* @return password
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
@ -325,6 +324,7 @@ public class FormatTestDto {
|
|||||||
* @return bigDecimal
|
* @return bigDecimal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("BigDecimal")
|
||||||
public BigDecimal getBigDecimal() {
|
public BigDecimal getBigDecimal() {
|
||||||
return bigDecimal;
|
return bigDecimal;
|
||||||
}
|
}
|
||||||
|
@ -21,10 +21,8 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class HasOnlyReadOnlyDto {
|
public class HasOnlyReadOnlyDto {
|
||||||
|
|
||||||
@JsonProperty("bar")
|
|
||||||
private String bar;
|
private String bar;
|
||||||
|
|
||||||
@JsonProperty("foo")
|
|
||||||
private String foo;
|
private String foo;
|
||||||
|
|
||||||
public HasOnlyReadOnlyDto bar(String bar) {
|
public HasOnlyReadOnlyDto bar(String bar) {
|
||||||
@ -37,6 +35,7 @@ public class HasOnlyReadOnlyDto {
|
|||||||
* @return bar
|
* @return bar
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public String getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
@ -55,6 +54,7 @@ public class HasOnlyReadOnlyDto {
|
|||||||
* @return foo
|
* @return foo
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("foo")
|
||||||
public String getFoo() {
|
public String getFoo() {
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,6 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ListDto {
|
public class ListDto {
|
||||||
|
|
||||||
@JsonProperty("123-list")
|
|
||||||
private String _123list;
|
private String _123list;
|
||||||
|
|
||||||
public ListDto _123list(String _123list) {
|
public ListDto _123list(String _123list) {
|
||||||
@ -34,6 +33,7 @@ public class ListDto {
|
|||||||
* @return _123list
|
* @return _123list
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("123-list")
|
||||||
public String get123list() {
|
public String get123list() {
|
||||||
return _123list;
|
return _123list;
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user