forked from loafle/openapi-generator-original
Add Java Optional for POJOs in JavaSpring templates (#17202)
* Add optional parameter for request body * Adapt Test * Add test * Format code * Remove extra method * Add optional for pojos * Add optional for pojos * Add bean validation for Optional * Add default values + test * Rename test
This commit is contained in:
parent
62462354ca
commit
e37decff7b
@ -1 +1 @@
|
|||||||
{{#required}}{{^isReadOnly}}@NotNull {{/isReadOnly}}{{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isEnum}}@Valid {{/isEnum}}{{/isPrimitiveType}}{{/isContainer}}{{^isContainer}}{{^isPrimitiveType}}@Valid {{/isPrimitiveType}}{{/isContainer}}{{>beanValidationCore}}
|
{{#required}}{{^isReadOnly}}@NotNull {{/isReadOnly}}{{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isEnum}}@Valid {{/isEnum}}{{/isPrimitiveType}}{{/isContainer}}{{^isContainer}}{{^isPrimitiveType}}@Valid {{/isPrimitiveType}}{{/isContainer}}{{^openApiNullable}}{{>beanValidationCore}}{{/openApiNullable}}{{#openApiNullable}}{{^useOptional}}{{>beanValidationCore}}{{/useOptional}}{{/openApiNullable}}{{#useOptional}}{{#openApiNullable}}{{#isContainer}}{{^required}}{{>beanValidationCore}}{{/required}}{{/isContainer}}{{/openApiNullable}}{{#openApiNullable}}{{#required}}{{>beanValidationCore}}{{/required}}{{/openApiNullable}}{{/useOptional}}
|
@ -12,9 +12,9 @@ minLength not set, maxLength set
|
|||||||
@Size: minItems not set && maxItems set
|
@Size: minItems not set && maxItems set
|
||||||
}}{{^minItems}}{{#maxItems}}@Size(max = {{.}}) {{/maxItems}}{{/minItems}}{{!
|
}}{{^minItems}}{{#maxItems}}@Size(max = {{.}}) {{/maxItems}}{{/minItems}}{{!
|
||||||
@Email: useBeanValidation
|
@Email: useBeanValidation
|
||||||
}}{{#isEmail}}{{#useBeanValidation}}@{{javaxPackage}}.validation.constraints.Email{{/useBeanValidation}}{{!
|
}}{{#isEmail}}{{#useBeanValidation}}@{{javaxPackage}}.validation.constraints.Email {{/useBeanValidation}}{{!
|
||||||
@Email: performBeanValidation exclusive
|
@Email: performBeanValidation exclusive
|
||||||
}}{{^useBeanValidation}}{{#performBeanValidation}}@org.hibernate.validator.constraints.Email{{/performBeanValidation}}{{/useBeanValidation}}{{/isEmail}}{{!
|
}}{{^useBeanValidation}}{{#performBeanValidation}}@org.hibernate.validator.constraints.Email {{/performBeanValidation}}{{/useBeanValidation}}{{/isEmail}}{{!
|
||||||
check for integer or long / all others=decimal type with @Decimal*
|
check for integer or long / all others=decimal type with @Decimal*
|
||||||
isInteger set
|
isInteger set
|
||||||
}}{{#isInteger}}{{#minimum}}@Min({{.}}) {{/minimum}}{{#maximum}}@Max({{.}}) {{/maximum}}{{/isInteger}}{{!
|
}}{{#isInteger}}{{#minimum}}@Min({{.}}) {{/minimum}}{{#maximum}}@Max({{.}}) {{/maximum}}{{/isInteger}}{{!
|
||||||
|
@ -1 +1 @@
|
|||||||
{{#openApiNullable}}{{#isNullable}}JsonNullable<{{{datatypeWithEnum}}}>{{/isNullable}}{{^isNullable}}{{{datatypeWithEnum}}}{{/isNullable}}{{/openApiNullable}}{{^openApiNullable}}{{{datatypeWithEnum}}}{{/openApiNullable}}
|
{{#openApiNullable}}{{#isNullable}}JsonNullable<{{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}Optional<{{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}{{/openApiNullable}}{{{datatypeWithEnum}}}{{#openApiNullable}}{{#isNullable}}>{{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}>{{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}{{/openApiNullable}}
|
@ -0,0 +1 @@
|
|||||||
|
{{#openApiNullable}}{{#isNullable}}{{^isContainer}}JsonNullable<{{#useBeanValidation}}{{>beanValidationCore}}{{/useBeanValidation}}{{/isContainer}}{{#isContainer}}JsonNullable<{{/isContainer}}{{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}Optional<{{#useBeanValidation}}{{>beanValidationCore}}{{/useBeanValidation}}{{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}{{/openApiNullable}}{{{datatypeWithEnum}}}{{#openApiNullable}}{{#isNullable}}>{{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}>{{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}{{/openApiNullable}}
|
@ -65,7 +65,7 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{#isContainer}}
|
{{#isContainer}}
|
||||||
{{#useBeanValidation}}@Valid{{/useBeanValidation}}
|
{{#useBeanValidation}}@Valid{{/useBeanValidation}}
|
||||||
{{#openApiNullable}}
|
{{#openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#isNullable}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(){{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
private {{#isNullable}}{{>nullableDataTypeBeanValidation}} {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined();{{/isNullable}}{{^required}}{{^isNullable}}{{>nullableDataTypeBeanValidation}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/isNullable}}{{/required}}{{#required}}{{^isNullable}}{{>nullableDataTypeBeanValidation}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/isNullable}}{{/required}}
|
||||||
{{/openApiNullable}}
|
{{/openApiNullable}}
|
||||||
{{^openApiNullable}}
|
{{^openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
private {{>nullableDataType}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||||
@ -79,7 +79,7 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
{{/isDateTime}}
|
{{/isDateTime}}
|
||||||
{{#openApiNullable}}
|
{{#openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#isNullable}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(){{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
private {{#isNullable}}{{>nullableDataTypeBeanValidation}} {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined();{{/isNullable}}{{^required}}{{^isNullable}}{{>nullableDataTypeBeanValidation}} {{name}}{{#useOptional}} = Optional.{{^defaultValue}}empty(){{/defaultValue}}{{#defaultValue}}of({{{.}}}){{/defaultValue}};{{/useOptional}}{{^useOptional}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/useOptional}}{{/isNullable}}{{/required}}{{^isNullable}}{{#required}}{{>nullableDataTypeBeanValidation}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};{{/required}}{{/isNullable}}
|
||||||
{{/openApiNullable}}
|
{{/openApiNullable}}
|
||||||
{{^openApiNullable}}
|
{{^openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#isNullable}} = null{{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
private {{>nullableDataType}} {{name}}{{#isNullable}} = null{{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
||||||
@ -103,7 +103,7 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{#vars}}
|
{{#vars}}
|
||||||
{{#required}}
|
{{#required}}
|
||||||
{{#openApiNullable}}
|
{{#openApiNullable}}
|
||||||
this.{{name}} = {{#isNullable}}JsonNullable.of({{name}}){{/isNullable}}{{^isNullable}}{{name}}{{/isNullable}};
|
this.{{name}} = {{#isNullable}}JsonNullable.of({{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}Optional.ofNullable({{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}{{name}}{{#isNullable}}){{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}){{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}};
|
||||||
{{/openApiNullable}}
|
{{/openApiNullable}}
|
||||||
{{^openApiNullable}}
|
{{^openApiNullable}}
|
||||||
this.{{name}} = {{name}};
|
this.{{name}} = {{name}};
|
||||||
@ -118,7 +118,7 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{! begin feature: fluent setter methods }}
|
{{! begin feature: fluent setter methods }}
|
||||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||||
{{#openApiNullable}}
|
{{#openApiNullable}}
|
||||||
this.{{name}} = {{#isNullable}}JsonNullable.of({{name}}){{/isNullable}}{{^isNullable}}{{name}}{{/isNullable}};
|
this.{{name}} = {{#isNullable}}JsonNullable.of({{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}Optional.of({{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}}{{name}}{{#isNullable}}){{/isNullable}}{{#useOptional}}{{^required}}{{^isNullable}}{{^isContainer}}){{/isContainer}}{{/isNullable}}{{/required}}{{/useOptional}};
|
||||||
{{/openApiNullable}}
|
{{/openApiNullable}}
|
||||||
{{^openApiNullable}}
|
{{^openApiNullable}}
|
||||||
this.{{name}} = {{name}};
|
this.{{name}} = {{name}};
|
||||||
@ -203,7 +203,7 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{#deprecated}}
|
{{#deprecated}}
|
||||||
@Deprecated
|
@Deprecated
|
||||||
{{/deprecated}}
|
{{/deprecated}}
|
||||||
public {{>nullableDataType}} {{getter}}() {
|
public {{>nullableDataTypeBeanValidation}} {{getter}}() {
|
||||||
return {{name}};
|
return {{name}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,6 +54,13 @@ public class MethodAssert extends AbstractAssert<MethodAssert, MethodDeclaration
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MethodAssert doesNotHaveParameters() {
|
||||||
|
Assertions.assertThat(actual.getParameters())
|
||||||
|
.withFailMessage("Method %s shouldn't have parameter, but it does", methodSignature)
|
||||||
|
.isEmpty();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public MethodAssert bodyContainsLines(final String... lines) {
|
public MethodAssert bodyContainsLines(final String... lines) {
|
||||||
Assertions.assertThat(isWithImplementation())
|
Assertions.assertThat(isWithImplementation())
|
||||||
.withFailMessage("Method %s is abstract", methodSignature)
|
.withFailMessage("Method %s is abstract", methodSignature)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,166 @@
|
|||||||
|
openapi: 3.0.0
|
||||||
|
servers:
|
||||||
|
- url: 'localhost:8080'
|
||||||
|
info:
|
||||||
|
version: 1.0.0
|
||||||
|
title: OpenAPI Zoo
|
||||||
|
license:
|
||||||
|
name: Apache-2.0
|
||||||
|
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
|
||||||
|
paths:
|
||||||
|
/zebras:
|
||||||
|
get:
|
||||||
|
operationId: getZebras
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/Animal'
|
||||||
|
|
||||||
|
components:
|
||||||
|
schemas:
|
||||||
|
Zebra:
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- age
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
example: 'Marty'
|
||||||
|
age:
|
||||||
|
type: integer
|
||||||
|
example: 15
|
||||||
|
nullable: true
|
||||||
|
Animal:
|
||||||
|
required:
|
||||||
|
- name
|
||||||
|
- age
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
example: 'Marty'
|
||||||
|
age:
|
||||||
|
type: integer
|
||||||
|
example: 15
|
||||||
|
nullable: true
|
||||||
|
alias:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
description: 'The stripy one'
|
||||||
|
example: 'Stripy'
|
||||||
|
color:
|
||||||
|
type: string
|
||||||
|
description: 'The color'
|
||||||
|
example: 'red'
|
||||||
|
|
||||||
|
names:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
colors:
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
|
||||||
|
stringPattern:
|
||||||
|
type: string
|
||||||
|
pattern: "[a-z]"
|
||||||
|
stringMaxMinLength:
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 10
|
||||||
|
stringMinLength:
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
stringMaxLength:
|
||||||
|
type: string
|
||||||
|
maxLength: 1
|
||||||
|
stringEmail:
|
||||||
|
type: string
|
||||||
|
format: email
|
||||||
|
intMinMax:
|
||||||
|
type: integer
|
||||||
|
minimum: 1
|
||||||
|
maximum: 10
|
||||||
|
intMin:
|
||||||
|
type: integer
|
||||||
|
minimum: 1
|
||||||
|
intMax:
|
||||||
|
type: integer
|
||||||
|
maximum: 10
|
||||||
|
numberMinMax:
|
||||||
|
type: number
|
||||||
|
minimum: 1
|
||||||
|
maximum: 10
|
||||||
|
numberMin:
|
||||||
|
type: number
|
||||||
|
minimum: 1
|
||||||
|
numberMax:
|
||||||
|
type: number
|
||||||
|
maximum: 10
|
||||||
|
stringDefault:
|
||||||
|
type: string
|
||||||
|
maxLength: 1
|
||||||
|
default: "ABC"
|
||||||
|
zebra:
|
||||||
|
$ref: '#/components/schemas/Zebra'
|
||||||
|
|
||||||
|
stringPatternNullable:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
pattern: "[a-z]"
|
||||||
|
stringMaxMinLengthNullable:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 10
|
||||||
|
stringMinLengthNullable:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
stringMaxLengthNullable:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
maxLength: 1
|
||||||
|
stringEmailNullable:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
format: email
|
||||||
|
intMinMaxNullable:
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
|
minimum: 1
|
||||||
|
maximum: 10
|
||||||
|
intMinNullable:
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
|
minimum: 1
|
||||||
|
intMaxNullable:
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
|
maximum: 10
|
||||||
|
numberMinMaxNullable:
|
||||||
|
nullable: true
|
||||||
|
type: number
|
||||||
|
minimum: 1
|
||||||
|
maximum: 10
|
||||||
|
numberMinNullable:
|
||||||
|
nullable: true
|
||||||
|
type: number
|
||||||
|
minimum: 1
|
||||||
|
numberMaxNullable:
|
||||||
|
nullable: true
|
||||||
|
type: number
|
||||||
|
maximum: 10
|
||||||
|
stringDefaultNullable:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
maxLength: 1
|
||||||
|
default: "ABC"
|
@ -20,12 +20,12 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private String name;
|
private Optional<@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") String> name = Optional.empty();
|
||||||
|
|
||||||
public Category id(Long id) {
|
public Category id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,16 +35,16 @@ public class Category {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Category name(String name) {
|
public Category name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,13 +52,13 @@ public class Category {
|
|||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
*/
|
*/
|
||||||
@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,14 +22,14 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
private Integer code;
|
private Optional<Integer> code = Optional.empty();
|
||||||
|
|
||||||
private String type;
|
private Optional<String> type = Optional.empty();
|
||||||
|
|
||||||
private String message;
|
private Optional<String> message = Optional.empty();
|
||||||
|
|
||||||
public ModelApiResponse code(Integer code) {
|
public ModelApiResponse code(Integer code) {
|
||||||
this.code = code;
|
this.code = Optional.of(code);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,16 +39,16 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("code")
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Optional<Integer> getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCode(Integer code) {
|
public void setCode(Optional<Integer> code) {
|
||||||
this.code = code;
|
this.code = code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelApiResponse type(String type) {
|
public ModelApiResponse type(String type) {
|
||||||
this.type = type;
|
this.type = Optional.of(type);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,16 +58,16 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("type")
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public Optional<String> getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setType(String type) {
|
public void setType(Optional<String> type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelApiResponse message(String message) {
|
public ModelApiResponse message(String message) {
|
||||||
this.message = message;
|
this.message = Optional.of(message);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,11 +77,11 @@ public class ModelApiResponse {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("message")
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public Optional<String> getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMessage(String message) {
|
public void setMessage(Optional<String> message) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,14 +23,14 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private Long petId;
|
private Optional<Long> petId = Optional.empty();
|
||||||
|
|
||||||
private Integer quantity;
|
private Optional<Integer> quantity = Optional.empty();
|
||||||
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime shipDate;
|
private Optional<OffsetDateTime> shipDate = Optional.empty();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
@ -69,12 +69,12 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private StatusEnum status;
|
private Optional<StatusEnum> status = Optional.empty();
|
||||||
|
|
||||||
private Boolean complete = false;
|
private Optional<Boolean> complete = Optional.of(false);
|
||||||
|
|
||||||
public Order id(Long id) {
|
public Order id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,16 +84,16 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order petId(Long petId) {
|
public Order petId(Long petId) {
|
||||||
this.petId = petId;
|
this.petId = Optional.of(petId);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,16 +103,16 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("petId")
|
@JsonProperty("petId")
|
||||||
public Long getPetId() {
|
public Optional<Long> getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPetId(Long petId) {
|
public void setPetId(Optional<Long> petId) {
|
||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order quantity(Integer quantity) {
|
public Order quantity(Integer quantity) {
|
||||||
this.quantity = quantity;
|
this.quantity = Optional.of(quantity);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,16 +122,16 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("quantity")
|
@JsonProperty("quantity")
|
||||||
public Integer getQuantity() {
|
public Optional<Integer> getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQuantity(Integer quantity) {
|
public void setQuantity(Optional<Integer> quantity) {
|
||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order shipDate(OffsetDateTime shipDate) {
|
public Order shipDate(OffsetDateTime shipDate) {
|
||||||
this.shipDate = shipDate;
|
this.shipDate = Optional.of(shipDate);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,16 +141,16 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@JsonProperty("shipDate")
|
@JsonProperty("shipDate")
|
||||||
public OffsetDateTime getShipDate() {
|
public Optional<OffsetDateTime> getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setShipDate(OffsetDateTime shipDate) {
|
public void setShipDate(Optional<OffsetDateTime> shipDate) {
|
||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order status(StatusEnum status) {
|
public Order status(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = Optional.of(status);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,16 +160,16 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("status")
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public Optional<StatusEnum> getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStatus(StatusEnum status) {
|
public void setStatus(Optional<StatusEnum> status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order complete(Boolean complete) {
|
public Order complete(Boolean complete) {
|
||||||
this.complete = complete;
|
this.complete = Optional.of(complete);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,11 +179,11 @@ public class Order {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("complete")
|
@JsonProperty("complete")
|
||||||
public Boolean getComplete() {
|
public Optional<Boolean> getComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setComplete(Boolean complete) {
|
public void setComplete(Optional<Boolean> complete) {
|
||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,9 +26,9 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private Category category;
|
private Optional<Category> category = Optional.empty();
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
private StatusEnum status;
|
private Optional<StatusEnum> status = Optional.empty();
|
||||||
|
|
||||||
public Pet() {
|
public Pet() {
|
||||||
super();
|
super();
|
||||||
@ -91,7 +91,7 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet id(Long id) {
|
public Pet id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,16 +101,16 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet category(Category category) {
|
public Pet category(Category category) {
|
||||||
this.category = category;
|
this.category = Optional.of(category);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,11 +120,11 @@ public class Pet {
|
|||||||
*/
|
*/
|
||||||
@Valid
|
@Valid
|
||||||
@JsonProperty("category")
|
@JsonProperty("category")
|
||||||
public Category getCategory() {
|
public Optional<Category> getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory(Category category) {
|
public void setCategory(Optional<Category> category) {
|
||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet status(StatusEnum status) {
|
public Pet status(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = Optional.of(status);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ public class Pet {
|
|||||||
|
|
||||||
@JsonProperty("status")
|
@JsonProperty("status")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public StatusEnum getStatus() {
|
public Optional<StatusEnum> getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -222,7 +222,7 @@ public class Pet {
|
|||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void setStatus(StatusEnum status) {
|
public void setStatus(Optional<StatusEnum> status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,12 +20,12 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public Tag id(Long id) {
|
public Tag id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,16 +35,16 @@ public class Tag {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tag name(String name) {
|
public Tag name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,11 +54,11 @@ public class Tag {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,24 +20,24 @@ import jakarta.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private String username;
|
private Optional<String> username = Optional.empty();
|
||||||
|
|
||||||
private String firstName;
|
private Optional<String> firstName = Optional.empty();
|
||||||
|
|
||||||
private String lastName;
|
private Optional<String> lastName = Optional.empty();
|
||||||
|
|
||||||
private String email;
|
private Optional<String> email = Optional.empty();
|
||||||
|
|
||||||
private String password;
|
private Optional<String> password = Optional.empty();
|
||||||
|
|
||||||
private String phone;
|
private Optional<String> phone = Optional.empty();
|
||||||
|
|
||||||
private Integer userStatus;
|
private Optional<Integer> userStatus = Optional.empty();
|
||||||
|
|
||||||
public User id(Long id) {
|
public User id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,16 +47,16 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User username(String username) {
|
public User username(String username) {
|
||||||
this.username = username;
|
this.username = Optional.of(username);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,16 +66,16 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("username")
|
@JsonProperty("username")
|
||||||
public String getUsername() {
|
public Optional<String> getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsername(String username) {
|
public void setUsername(Optional<String> username) {
|
||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User firstName(String firstName) {
|
public User firstName(String firstName) {
|
||||||
this.firstName = firstName;
|
this.firstName = Optional.of(firstName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,16 +85,16 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("firstName")
|
@JsonProperty("firstName")
|
||||||
public String getFirstName() {
|
public Optional<String> getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFirstName(String firstName) {
|
public void setFirstName(Optional<String> firstName) {
|
||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User lastName(String lastName) {
|
public User lastName(String lastName) {
|
||||||
this.lastName = lastName;
|
this.lastName = Optional.of(lastName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,16 +104,16 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("lastName")
|
@JsonProperty("lastName")
|
||||||
public String getLastName() {
|
public Optional<String> getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLastName(String lastName) {
|
public void setLastName(Optional<String> lastName) {
|
||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User email(String email) {
|
public User email(String email) {
|
||||||
this.email = email;
|
this.email = Optional.of(email);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,16 +123,16 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("email")
|
@JsonProperty("email")
|
||||||
public String getEmail() {
|
public Optional<String> getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmail(String email) {
|
public void setEmail(Optional<String> email) {
|
||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User password(String password) {
|
public User password(String password) {
|
||||||
this.password = password;
|
this.password = Optional.of(password);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,16 +142,16 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("password")
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public Optional<String> getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPassword(String password) {
|
public void setPassword(Optional<String> password) {
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User phone(String phone) {
|
public User phone(String phone) {
|
||||||
this.phone = phone;
|
this.phone = Optional.of(phone);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,16 +161,16 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("phone")
|
@JsonProperty("phone")
|
||||||
public String getPhone() {
|
public Optional<String> getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhone(String phone) {
|
public void setPhone(Optional<String> phone) {
|
||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User userStatus(Integer userStatus) {
|
public User userStatus(Integer userStatus) {
|
||||||
this.userStatus = userStatus;
|
this.userStatus = Optional.of(userStatus);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,11 +180,11 @@ public class User {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@JsonProperty("userStatus")
|
@JsonProperty("userStatus")
|
||||||
public Integer getUserStatus() {
|
public Optional<Integer> getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserStatus(Integer userStatus) {
|
public void setUserStatus(Optional<Integer> userStatus) {
|
||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesAnyType {
|
public class AdditionalPropertiesAnyType {
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesAnyType name(String name) {
|
public AdditionalPropertiesAnyType name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,11 +40,11 @@ public class AdditionalPropertiesAnyType {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -27,10 +27,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesArray {
|
public class AdditionalPropertiesArray {
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesArray name(String name) {
|
public AdditionalPropertiesArray name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,11 +41,11 @@ public class AdditionalPropertiesArray {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -26,10 +26,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesBoolean {
|
public class AdditionalPropertiesBoolean {
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesBoolean name(String name) {
|
public AdditionalPropertiesBoolean name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,11 +40,11 @@ public class AdditionalPropertiesBoolean {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -53,11 +53,11 @@ public class AdditionalPropertiesClass {
|
|||||||
@Valid
|
@Valid
|
||||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||||
|
|
||||||
private Object anytype1;
|
private Optional<Object> anytype1 = Optional.empty();
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Optional<Object> anytype3 = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||||
this.mapString = mapString;
|
this.mapString = mapString;
|
||||||
@ -284,7 +284,7 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype1(Object anytype1) {
|
public AdditionalPropertiesClass anytype1(Object anytype1) {
|
||||||
this.anytype1 = anytype1;
|
this.anytype1 = Optional.of(anytype1);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,11 +295,11 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("anytype_1")
|
@JsonProperty("anytype_1")
|
||||||
public Object getAnytype1() {
|
public Optional<Object> getAnytype1() {
|
||||||
return anytype1;
|
return anytype1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAnytype1(Object anytype1) {
|
public void setAnytype1(Optional<Object> anytype1) {
|
||||||
this.anytype1 = anytype1;
|
this.anytype1 = anytype1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,7 +324,7 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype3(Object anytype3) {
|
public AdditionalPropertiesClass anytype3(Object anytype3) {
|
||||||
this.anytype3 = anytype3;
|
this.anytype3 = Optional.of(anytype3);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,11 +335,11 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("anytype_3")
|
@JsonProperty("anytype_3")
|
||||||
public Object getAnytype3() {
|
public Optional<Object> getAnytype3() {
|
||||||
return anytype3;
|
return anytype3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAnytype3(Object anytype3) {
|
public void setAnytype3(Optional<Object> anytype3) {
|
||||||
this.anytype3 = anytype3;
|
this.anytype3 = anytype3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesInteger {
|
public class AdditionalPropertiesInteger {
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesInteger name(String name) {
|
public AdditionalPropertiesInteger name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,11 +40,11 @@ public class AdditionalPropertiesInteger {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -27,10 +27,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesNumber {
|
public class AdditionalPropertiesNumber {
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesNumber name(String name) {
|
public AdditionalPropertiesNumber name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,11 +41,11 @@ public class AdditionalPropertiesNumber {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -27,10 +27,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesObject {
|
public class AdditionalPropertiesObject {
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesObject name(String name) {
|
public AdditionalPropertiesObject name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,11 +41,11 @@ public class AdditionalPropertiesObject {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -26,10 +26,10 @@ import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class AdditionalPropertiesString {
|
public class AdditionalPropertiesString {
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public AdditionalPropertiesString name(String name) {
|
public AdditionalPropertiesString name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,11 +40,11 @@ public class AdditionalPropertiesString {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,7 @@ public class Animal {
|
|||||||
|
|
||||||
private String className;
|
private String className;
|
||||||
|
|
||||||
private String color = "red";
|
private Optional<String> color = Optional.of("red");
|
||||||
|
|
||||||
public Animal() {
|
public Animal() {
|
||||||
super();
|
super();
|
||||||
@ -72,7 +72,7 @@ public class Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Animal color(String color) {
|
public Animal color(String color) {
|
||||||
this.color = color;
|
this.color = Optional.of(color);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,11 +83,11 @@ public class Animal {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("color")
|
@JsonProperty("color")
|
||||||
public String getColor() {
|
public Optional<String> getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setColor(String color) {
|
public void setColor(Optional<String> color) {
|
||||||
this.color = color;
|
this.color = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ public class BigCat extends Cat {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private KindEnum kind;
|
private Optional<KindEnum> kind = Optional.empty();
|
||||||
|
|
||||||
public BigCat() {
|
public BigCat() {
|
||||||
super();
|
super();
|
||||||
@ -81,7 +81,7 @@ public class BigCat extends Cat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public BigCat kind(KindEnum kind) {
|
public BigCat kind(KindEnum kind) {
|
||||||
this.kind = kind;
|
this.kind = Optional.of(kind);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,11 +92,11 @@ public class BigCat extends Cat {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("kind")
|
@JsonProperty("kind")
|
||||||
public KindEnum getKind() {
|
public Optional<KindEnum> getKind() {
|
||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setKind(KindEnum kind) {
|
public void setKind(Optional<KindEnum> kind) {
|
||||||
this.kind = kind;
|
this.kind = kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,20 +22,20 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Capitalization {
|
public class Capitalization {
|
||||||
|
|
||||||
private String smallCamel;
|
private Optional<String> smallCamel = Optional.empty();
|
||||||
|
|
||||||
private String capitalCamel;
|
private Optional<String> capitalCamel = Optional.empty();
|
||||||
|
|
||||||
private String smallSnake;
|
private Optional<String> smallSnake = Optional.empty();
|
||||||
|
|
||||||
private String capitalSnake;
|
private Optional<String> capitalSnake = Optional.empty();
|
||||||
|
|
||||||
private String scAETHFlowPoints;
|
private Optional<String> scAETHFlowPoints = Optional.empty();
|
||||||
|
|
||||||
private String ATT_NAME;
|
private Optional<String> ATT_NAME = Optional.empty();
|
||||||
|
|
||||||
public Capitalization smallCamel(String smallCamel) {
|
public Capitalization smallCamel(String smallCamel) {
|
||||||
this.smallCamel = smallCamel;
|
this.smallCamel = Optional.of(smallCamel);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,16 +46,16 @@ public class Capitalization {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("smallCamel")
|
@JsonProperty("smallCamel")
|
||||||
public String getSmallCamel() {
|
public Optional<String> getSmallCamel() {
|
||||||
return smallCamel;
|
return smallCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSmallCamel(String smallCamel) {
|
public void setSmallCamel(Optional<String> smallCamel) {
|
||||||
this.smallCamel = smallCamel;
|
this.smallCamel = smallCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Capitalization capitalCamel(String capitalCamel) {
|
public Capitalization capitalCamel(String capitalCamel) {
|
||||||
this.capitalCamel = capitalCamel;
|
this.capitalCamel = Optional.of(capitalCamel);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,16 +66,16 @@ public class Capitalization {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("CapitalCamel")
|
@JsonProperty("CapitalCamel")
|
||||||
public String getCapitalCamel() {
|
public Optional<String> getCapitalCamel() {
|
||||||
return capitalCamel;
|
return capitalCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCapitalCamel(String capitalCamel) {
|
public void setCapitalCamel(Optional<String> capitalCamel) {
|
||||||
this.capitalCamel = capitalCamel;
|
this.capitalCamel = capitalCamel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Capitalization smallSnake(String smallSnake) {
|
public Capitalization smallSnake(String smallSnake) {
|
||||||
this.smallSnake = smallSnake;
|
this.smallSnake = Optional.of(smallSnake);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,16 +86,16 @@ public class Capitalization {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("small_Snake")
|
@JsonProperty("small_Snake")
|
||||||
public String getSmallSnake() {
|
public Optional<String> getSmallSnake() {
|
||||||
return smallSnake;
|
return smallSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSmallSnake(String smallSnake) {
|
public void setSmallSnake(Optional<String> smallSnake) {
|
||||||
this.smallSnake = smallSnake;
|
this.smallSnake = smallSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Capitalization capitalSnake(String capitalSnake) {
|
public Capitalization capitalSnake(String capitalSnake) {
|
||||||
this.capitalSnake = capitalSnake;
|
this.capitalSnake = Optional.of(capitalSnake);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,16 +106,16 @@ public class Capitalization {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("Capital_Snake")
|
@JsonProperty("Capital_Snake")
|
||||||
public String getCapitalSnake() {
|
public Optional<String> getCapitalSnake() {
|
||||||
return capitalSnake;
|
return capitalSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCapitalSnake(String capitalSnake) {
|
public void setCapitalSnake(Optional<String> capitalSnake) {
|
||||||
this.capitalSnake = capitalSnake;
|
this.capitalSnake = capitalSnake;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
|
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
|
||||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
this.scAETHFlowPoints = Optional.of(scAETHFlowPoints);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,16 +126,16 @@ public class Capitalization {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("SCA_ETH_Flow_Points")
|
@JsonProperty("SCA_ETH_Flow_Points")
|
||||||
public String getScAETHFlowPoints() {
|
public Optional<String> getScAETHFlowPoints() {
|
||||||
return scAETHFlowPoints;
|
return scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setScAETHFlowPoints(String scAETHFlowPoints) {
|
public void setScAETHFlowPoints(Optional<String> scAETHFlowPoints) {
|
||||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
this.scAETHFlowPoints = scAETHFlowPoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Capitalization ATT_NAME(String ATT_NAME) {
|
public Capitalization ATT_NAME(String ATT_NAME) {
|
||||||
this.ATT_NAME = ATT_NAME;
|
this.ATT_NAME = Optional.of(ATT_NAME);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,11 +146,11 @@ public class Capitalization {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "Name of the pet ")
|
@ApiModelProperty(value = "Name of the pet ")
|
||||||
@JsonProperty("ATT_NAME")
|
@JsonProperty("ATT_NAME")
|
||||||
public String getATTNAME() {
|
public Optional<String> getATTNAME() {
|
||||||
return ATT_NAME;
|
return ATT_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setATTNAME(String ATT_NAME) {
|
public void setATTNAME(Optional<String> ATT_NAME) {
|
||||||
this.ATT_NAME = ATT_NAME;
|
this.ATT_NAME = ATT_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ import javax.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 {
|
||||||
|
|
||||||
private Boolean declawed;
|
private Optional<Boolean> declawed = Optional.empty();
|
||||||
|
|
||||||
public Cat() {
|
public Cat() {
|
||||||
super();
|
super();
|
||||||
@ -49,7 +49,7 @@ public class Cat extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Cat declawed(Boolean declawed) {
|
public Cat declawed(Boolean declawed) {
|
||||||
this.declawed = declawed;
|
this.declawed = Optional.of(declawed);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,11 +60,11 @@ public class Cat extends Animal {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("declawed")
|
@JsonProperty("declawed")
|
||||||
public Boolean getDeclawed() {
|
public Optional<Boolean> getDeclawed() {
|
||||||
return declawed;
|
return declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDeclawed(Boolean declawed) {
|
public void setDeclawed(Optional<Boolean> declawed) {
|
||||||
this.declawed = declawed;
|
this.declawed = declawed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Category {
|
public class Category {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private String name = "default-name";
|
private String name = "default-name";
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ public class Category {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Category id(Long id) {
|
public Category id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,11 +49,11 @@ public class Category {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,10 +30,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ChildWithNullable extends ParentWithNullable {
|
public class ChildWithNullable extends ParentWithNullable {
|
||||||
|
|
||||||
private String otherProperty;
|
private Optional<String> otherProperty = Optional.empty();
|
||||||
|
|
||||||
public ChildWithNullable otherProperty(String otherProperty) {
|
public ChildWithNullable otherProperty(String otherProperty) {
|
||||||
this.otherProperty = otherProperty;
|
this.otherProperty = Optional.of(otherProperty);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,11 +44,11 @@ public class ChildWithNullable extends ParentWithNullable {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("otherProperty")
|
@JsonProperty("otherProperty")
|
||||||
public String getOtherProperty() {
|
public Optional<String> getOtherProperty() {
|
||||||
return otherProperty;
|
return otherProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOtherProperty(String otherProperty) {
|
public void setOtherProperty(Optional<String> otherProperty) {
|
||||||
this.otherProperty = otherProperty;
|
this.otherProperty = otherProperty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ClassModel {
|
public class ClassModel {
|
||||||
|
|
||||||
private String propertyClass;
|
private Optional<String> propertyClass = Optional.empty();
|
||||||
|
|
||||||
public ClassModel propertyClass(String propertyClass) {
|
public ClassModel propertyClass(String propertyClass) {
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = Optional.of(propertyClass);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ public class ClassModel {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("_class")
|
@JsonProperty("_class")
|
||||||
public String getPropertyClass() {
|
public Optional<String> getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPropertyClass(String propertyClass) {
|
public void setPropertyClass(Optional<String> propertyClass) {
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,10 +22,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Client {
|
public class Client {
|
||||||
|
|
||||||
private String client;
|
private Optional<String> client = Optional.empty();
|
||||||
|
|
||||||
public Client client(String client) {
|
public Client client(String client) {
|
||||||
this.client = client;
|
this.client = Optional.of(client);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,11 +36,11 @@ public class Client {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("client")
|
@JsonProperty("client")
|
||||||
public String getClient() {
|
public Optional<String> getClient() {
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClient(String client) {
|
public void setClient(Optional<String> client) {
|
||||||
this.client = client;
|
this.client = client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ import javax.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 {
|
||||||
|
|
||||||
private String breed;
|
private Optional<String> breed = Optional.empty();
|
||||||
|
|
||||||
public Dog() {
|
public Dog() {
|
||||||
super();
|
super();
|
||||||
@ -41,7 +41,7 @@ public class Dog extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Dog breed(String breed) {
|
public Dog breed(String breed) {
|
||||||
this.breed = breed;
|
this.breed = Optional.of(breed);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,11 +52,11 @@ public class Dog extends Animal {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("breed")
|
@JsonProperty("breed")
|
||||||
public String getBreed() {
|
public Optional<String> getBreed() {
|
||||||
return breed;
|
return breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBreed(String breed) {
|
public void setBreed(Optional<String> breed) {
|
||||||
this.breed = breed;
|
this.breed = breed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private JustSymbolEnum justSymbol;
|
private Optional<JustSymbolEnum> justSymbol = Optional.empty();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets or Sets arrayEnum
|
* Gets or Sets arrayEnum
|
||||||
@ -102,7 +102,7 @@ public class EnumArrays {
|
|||||||
private List<ArrayEnumEnum> arrayEnum;
|
private List<ArrayEnumEnum> arrayEnum;
|
||||||
|
|
||||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||||
this.justSymbol = justSymbol;
|
this.justSymbol = Optional.of(justSymbol);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,11 +113,11 @@ public class EnumArrays {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("just_symbol")
|
@JsonProperty("just_symbol")
|
||||||
public JustSymbolEnum getJustSymbol() {
|
public Optional<JustSymbolEnum> getJustSymbol() {
|
||||||
return justSymbol;
|
return justSymbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJustSymbol(JustSymbolEnum justSymbol) {
|
public void setJustSymbol(Optional<JustSymbolEnum> justSymbol) {
|
||||||
this.justSymbol = justSymbol;
|
this.justSymbol = justSymbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private EnumStringEnum enumString;
|
private Optional<EnumStringEnum> enumString = Optional.empty();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets or Sets enumStringRequired
|
* Gets or Sets enumStringRequired
|
||||||
@ -139,7 +139,7 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private EnumIntegerEnum enumInteger;
|
private Optional<EnumIntegerEnum> enumInteger = Optional.empty();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets or Sets enumNumber
|
* Gets or Sets enumNumber
|
||||||
@ -176,9 +176,9 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private EnumNumberEnum enumNumber;
|
private Optional<EnumNumberEnum> enumNumber = Optional.empty();
|
||||||
|
|
||||||
private OuterEnum outerEnum;
|
private Optional<OuterEnum> outerEnum = Optional.empty();
|
||||||
|
|
||||||
public EnumTest() {
|
public EnumTest() {
|
||||||
super();
|
super();
|
||||||
@ -192,7 +192,7 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumTest enumString(EnumStringEnum enumString) {
|
public EnumTest enumString(EnumStringEnum enumString) {
|
||||||
this.enumString = enumString;
|
this.enumString = Optional.of(enumString);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,11 +203,11 @@ public class EnumTest {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("enum_string")
|
@JsonProperty("enum_string")
|
||||||
public EnumStringEnum getEnumString() {
|
public Optional<EnumStringEnum> getEnumString() {
|
||||||
return enumString;
|
return enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnumString(EnumStringEnum enumString) {
|
public void setEnumString(Optional<EnumStringEnum> enumString) {
|
||||||
this.enumString = enumString;
|
this.enumString = enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
||||||
this.enumInteger = enumInteger;
|
this.enumInteger = Optional.of(enumInteger);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -243,16 +243,16 @@ public class EnumTest {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("enum_integer")
|
@JsonProperty("enum_integer")
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
public Optional<EnumIntegerEnum> getEnumInteger() {
|
||||||
return enumInteger;
|
return enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnumInteger(EnumIntegerEnum enumInteger) {
|
public void setEnumInteger(Optional<EnumIntegerEnum> enumInteger) {
|
||||||
this.enumInteger = enumInteger;
|
this.enumInteger = enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
||||||
this.enumNumber = enumNumber;
|
this.enumNumber = Optional.of(enumNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,16 +263,16 @@ public class EnumTest {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("enum_number")
|
@JsonProperty("enum_number")
|
||||||
public EnumNumberEnum getEnumNumber() {
|
public Optional<EnumNumberEnum> getEnumNumber() {
|
||||||
return enumNumber;
|
return enumNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnumNumber(EnumNumberEnum enumNumber) {
|
public void setEnumNumber(Optional<EnumNumberEnum> enumNumber) {
|
||||||
this.enumNumber = enumNumber;
|
this.enumNumber = enumNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumTest outerEnum(OuterEnum outerEnum) {
|
public EnumTest outerEnum(OuterEnum outerEnum) {
|
||||||
this.outerEnum = outerEnum;
|
this.outerEnum = Optional.of(outerEnum);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -283,11 +283,11 @@ public class EnumTest {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("outerEnum")
|
@JsonProperty("outerEnum")
|
||||||
public OuterEnum getOuterEnum() {
|
public Optional<OuterEnum> getOuterEnum() {
|
||||||
return outerEnum;
|
return outerEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOuterEnum(OuterEnum outerEnum) {
|
public void setOuterEnum(Optional<OuterEnum> outerEnum) {
|
||||||
this.outerEnum = outerEnum;
|
this.outerEnum = outerEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class File {
|
public class File {
|
||||||
|
|
||||||
private String sourceURI;
|
private Optional<String> sourceURI = Optional.empty();
|
||||||
|
|
||||||
public File sourceURI(String sourceURI) {
|
public File sourceURI(String sourceURI) {
|
||||||
this.sourceURI = sourceURI;
|
this.sourceURI = Optional.of(sourceURI);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ public class File {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "Test capitalization")
|
@ApiModelProperty(value = "Test capitalization")
|
||||||
@JsonProperty("sourceURI")
|
@JsonProperty("sourceURI")
|
||||||
public String getSourceURI() {
|
public Optional<String> getSourceURI() {
|
||||||
return sourceURI;
|
return sourceURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSourceURI(String sourceURI) {
|
public void setSourceURI(Optional<String> sourceURI) {
|
||||||
this.sourceURI = sourceURI;
|
this.sourceURI = sourceURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,13 +26,13 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class FileSchemaTestClass {
|
public class FileSchemaTestClass {
|
||||||
|
|
||||||
private File file;
|
private Optional<File> file = Optional.empty();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<@Valid File> files;
|
private List<@Valid File> files;
|
||||||
|
|
||||||
public FileSchemaTestClass file(File file) {
|
public FileSchemaTestClass file(File file) {
|
||||||
this.file = file;
|
this.file = Optional.of(file);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,11 +43,11 @@ public class FileSchemaTestClass {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("file")
|
@JsonProperty("file")
|
||||||
public File getFile() {
|
public Optional<File> getFile() {
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFile(File file) {
|
public void setFile(Optional<File> file) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,35 +30,35 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
|
|
||||||
private Integer integer;
|
private Optional<@Min(10) @Max(100) Integer> integer = Optional.empty();
|
||||||
|
|
||||||
private Integer int32;
|
private Optional<@Min(20) @Max(200) Integer> int32 = Optional.empty();
|
||||||
|
|
||||||
private Long int64;
|
private Optional<Long> int64 = Optional.empty();
|
||||||
|
|
||||||
private BigDecimal number;
|
private BigDecimal number;
|
||||||
|
|
||||||
private Float _float;
|
private Optional<@DecimalMin("54.3") @DecimalMax("987.6") Float> _float = Optional.empty();
|
||||||
|
|
||||||
private Double _double;
|
private Optional<@DecimalMin("67.8") @DecimalMax("123.4") Double> _double = Optional.empty();
|
||||||
|
|
||||||
private String string;
|
private Optional<@Pattern(regexp = "/[a-z]/i") String> string = Optional.empty();
|
||||||
|
|
||||||
private byte[] _byte;
|
private byte[] _byte;
|
||||||
|
|
||||||
private org.springframework.core.io.Resource binary;
|
private Optional<org.springframework.core.io.Resource> binary = Optional.empty();
|
||||||
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
|
||||||
private LocalDate date;
|
private LocalDate date;
|
||||||
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime dateTime;
|
private Optional<OffsetDateTime> dateTime = Optional.empty();
|
||||||
|
|
||||||
private UUID uuid;
|
private Optional<UUID> uuid = Optional.empty();
|
||||||
|
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
private BigDecimal bigDecimal;
|
private Optional<BigDecimal> bigDecimal = Optional.empty();
|
||||||
|
|
||||||
public FormatTest() {
|
public FormatTest() {
|
||||||
super();
|
super();
|
||||||
@ -75,7 +75,7 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest integer(Integer integer) {
|
public FormatTest integer(Integer integer) {
|
||||||
this.integer = integer;
|
this.integer = Optional.of(integer);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,19 +85,19 @@ public class FormatTest {
|
|||||||
* maximum: 100
|
* maximum: 100
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
@Min(10) @Max(100)
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("integer")
|
@JsonProperty("integer")
|
||||||
public Integer getInteger() {
|
public Optional<@Min(10) @Max(100) Integer> getInteger() {
|
||||||
return integer;
|
return integer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInteger(Integer integer) {
|
public void setInteger(Optional<Integer> integer) {
|
||||||
this.integer = integer;
|
this.integer = integer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest int32(Integer int32) {
|
public FormatTest int32(Integer int32) {
|
||||||
this.int32 = int32;
|
this.int32 = Optional.of(int32);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,19 +107,19 @@ public class FormatTest {
|
|||||||
* maximum: 200
|
* maximum: 200
|
||||||
* @return int32
|
* @return int32
|
||||||
*/
|
*/
|
||||||
@Min(20) @Max(200)
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("int32")
|
@JsonProperty("int32")
|
||||||
public Integer getInt32() {
|
public Optional<@Min(20) @Max(200) Integer> getInt32() {
|
||||||
return int32;
|
return int32;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInt32(Integer int32) {
|
public void setInt32(Optional<Integer> int32) {
|
||||||
this.int32 = int32;
|
this.int32 = int32;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest int64(Long int64) {
|
public FormatTest int64(Long int64) {
|
||||||
this.int64 = int64;
|
this.int64 = Optional.of(int64);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,11 +130,11 @@ public class FormatTest {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("int64")
|
@JsonProperty("int64")
|
||||||
public Long getInt64() {
|
public Optional<Long> getInt64() {
|
||||||
return int64;
|
return int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInt64(Long int64) {
|
public void setInt64(Optional<Long> int64) {
|
||||||
this.int64 = int64;
|
this.int64 = int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest _float(Float _float) {
|
public FormatTest _float(Float _float) {
|
||||||
this._float = _float;
|
this._float = Optional.of(_float);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,19 +171,19 @@ public class FormatTest {
|
|||||||
* maximum: 987.6
|
* maximum: 987.6
|
||||||
* @return _float
|
* @return _float
|
||||||
*/
|
*/
|
||||||
@DecimalMin("54.3") @DecimalMax("987.6")
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("float")
|
@JsonProperty("float")
|
||||||
public Float getFloat() {
|
public Optional<@DecimalMin("54.3") @DecimalMax("987.6") Float> getFloat() {
|
||||||
return _float;
|
return _float;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFloat(Float _float) {
|
public void setFloat(Optional<Float> _float) {
|
||||||
this._float = _float;
|
this._float = _float;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest _double(Double _double) {
|
public FormatTest _double(Double _double) {
|
||||||
this._double = _double;
|
this._double = Optional.of(_double);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -193,19 +193,19 @@ public class FormatTest {
|
|||||||
* maximum: 123.4
|
* maximum: 123.4
|
||||||
* @return _double
|
* @return _double
|
||||||
*/
|
*/
|
||||||
@DecimalMin("67.8") @DecimalMax("123.4")
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("double")
|
@JsonProperty("double")
|
||||||
public Double getDouble() {
|
public Optional<@DecimalMin("67.8") @DecimalMax("123.4") Double> getDouble() {
|
||||||
return _double;
|
return _double;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDouble(Double _double) {
|
public void setDouble(Optional<Double> _double) {
|
||||||
this._double = _double;
|
this._double = _double;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest string(String string) {
|
public FormatTest string(String string) {
|
||||||
this.string = string;
|
this.string = Optional.of(string);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,14 +213,14 @@ public class FormatTest {
|
|||||||
* Get string
|
* Get string
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
@Pattern(regexp = "/[a-z]/i")
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("string")
|
@JsonProperty("string")
|
||||||
public String getString() {
|
public Optional<@Pattern(regexp = "/[a-z]/i") String> getString() {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setString(String string) {
|
public void setString(Optional<String> string) {
|
||||||
this.string = string;
|
this.string = string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest binary(org.springframework.core.io.Resource binary) {
|
public FormatTest binary(org.springframework.core.io.Resource binary) {
|
||||||
this.binary = binary;
|
this.binary = Optional.of(binary);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -256,11 +256,11 @@ public class FormatTest {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("binary")
|
@JsonProperty("binary")
|
||||||
public org.springframework.core.io.Resource getBinary() {
|
public Optional<org.springframework.core.io.Resource> getBinary() {
|
||||||
return binary;
|
return binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBinary(org.springframework.core.io.Resource binary) {
|
public void setBinary(Optional<org.springframework.core.io.Resource> binary) {
|
||||||
this.binary = binary;
|
this.binary = binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest dateTime(OffsetDateTime dateTime) {
|
public FormatTest dateTime(OffsetDateTime dateTime) {
|
||||||
this.dateTime = dateTime;
|
this.dateTime = Optional.of(dateTime);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,16 +296,16 @@ public class FormatTest {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("dateTime")
|
@JsonProperty("dateTime")
|
||||||
public OffsetDateTime getDateTime() {
|
public Optional<OffsetDateTime> getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDateTime(OffsetDateTime dateTime) {
|
public void setDateTime(Optional<OffsetDateTime> dateTime) {
|
||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest uuid(UUID uuid) {
|
public FormatTest uuid(UUID uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = Optional.of(uuid);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,11 +316,11 @@ public class FormatTest {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
||||||
@JsonProperty("uuid")
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public Optional<UUID> getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUuid(UUID uuid) {
|
public void setUuid(Optional<UUID> uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,7 +345,7 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||||
this.bigDecimal = bigDecimal;
|
this.bigDecimal = Optional.of(bigDecimal);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -356,11 +356,11 @@ public class FormatTest {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("BigDecimal")
|
@JsonProperty("BigDecimal")
|
||||||
public BigDecimal getBigDecimal() {
|
public Optional<BigDecimal> getBigDecimal() {
|
||||||
return bigDecimal;
|
return bigDecimal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
public void setBigDecimal(Optional<BigDecimal> bigDecimal) {
|
||||||
this.bigDecimal = bigDecimal;
|
this.bigDecimal = bigDecimal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,12 +24,12 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class HasOnlyReadOnly {
|
public class HasOnlyReadOnly {
|
||||||
|
|
||||||
private String bar;
|
private Optional<String> bar = Optional.empty();
|
||||||
|
|
||||||
private String foo;
|
private Optional<String> foo = Optional.empty();
|
||||||
|
|
||||||
public HasOnlyReadOnly bar(String bar) {
|
public HasOnlyReadOnly bar(String bar) {
|
||||||
this.bar = bar;
|
this.bar = Optional.of(bar);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,16 +40,16 @@ public class HasOnlyReadOnly {
|
|||||||
|
|
||||||
@ApiModelProperty(readOnly = true, value = "")
|
@ApiModelProperty(readOnly = true, value = "")
|
||||||
@JsonProperty("bar")
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public Optional<String> getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBar(String bar) {
|
public void setBar(Optional<String> bar) {
|
||||||
this.bar = bar;
|
this.bar = bar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HasOnlyReadOnly foo(String foo) {
|
public HasOnlyReadOnly foo(String foo) {
|
||||||
this.foo = foo;
|
this.foo = Optional.of(foo);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,11 +60,11 @@ public class HasOnlyReadOnly {
|
|||||||
|
|
||||||
@ApiModelProperty(readOnly = true, value = "")
|
@ApiModelProperty(readOnly = true, value = "")
|
||||||
@JsonProperty("foo")
|
@JsonProperty("foo")
|
||||||
public String getFoo() {
|
public Optional<String> getFoo() {
|
||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFoo(String foo) {
|
public void setFoo(Optional<String> foo) {
|
||||||
this.foo = foo;
|
this.foo = foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
|
|
||||||
private UUID uuid;
|
private Optional<UUID> uuid = Optional.empty();
|
||||||
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime dateTime;
|
private Optional<OffsetDateTime> dateTime = Optional.empty();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private Map<String, Animal> map = new HashMap<>();
|
private Map<String, Animal> map = new HashMap<>();
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = Optional.of(uuid);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,16 +48,16 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("uuid")
|
@JsonProperty("uuid")
|
||||||
public UUID getUuid() {
|
public Optional<UUID> getUuid() {
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUuid(UUID uuid) {
|
public void setUuid(Optional<UUID> uuid) {
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
|
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
|
||||||
this.dateTime = dateTime;
|
this.dateTime = Optional.of(dateTime);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,11 +68,11 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("dateTime")
|
@JsonProperty("dateTime")
|
||||||
public OffsetDateTime getDateTime() {
|
public Optional<OffsetDateTime> getDateTime() {
|
||||||
return dateTime;
|
return dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDateTime(OffsetDateTime dateTime) {
|
public void setDateTime(Optional<OffsetDateTime> dateTime) {
|
||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,12 +25,12 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
|
|
||||||
private Integer name;
|
private Optional<Integer> name = Optional.empty();
|
||||||
|
|
||||||
private String propertyClass;
|
private Optional<String> propertyClass = Optional.empty();
|
||||||
|
|
||||||
public Model200Response name(Integer name) {
|
public Model200Response name(Integer name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,16 +41,16 @@ public class Model200Response {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public Integer getName() {
|
public Optional<Integer> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(Integer name) {
|
public void setName(Optional<Integer> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Model200Response propertyClass(String propertyClass) {
|
public Model200Response propertyClass(String propertyClass) {
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = Optional.of(propertyClass);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,11 +61,11 @@ public class Model200Response {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("class")
|
@JsonProperty("class")
|
||||||
public String getPropertyClass() {
|
public Optional<String> getPropertyClass() {
|
||||||
return propertyClass;
|
return propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPropertyClass(String propertyClass) {
|
public void setPropertyClass(Optional<String> propertyClass) {
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = propertyClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
|
|
||||||
private Integer code;
|
private Optional<Integer> code = Optional.empty();
|
||||||
|
|
||||||
private String type;
|
private Optional<String> type = Optional.empty();
|
||||||
|
|
||||||
private String message;
|
private Optional<String> message = Optional.empty();
|
||||||
|
|
||||||
public ModelApiResponse code(Integer code) {
|
public ModelApiResponse code(Integer code) {
|
||||||
this.code = code;
|
this.code = Optional.of(code);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,16 +42,16 @@ public class ModelApiResponse {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("code")
|
@JsonProperty("code")
|
||||||
public Integer getCode() {
|
public Optional<Integer> getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCode(Integer code) {
|
public void setCode(Optional<Integer> code) {
|
||||||
this.code = code;
|
this.code = code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelApiResponse type(String type) {
|
public ModelApiResponse type(String type) {
|
||||||
this.type = type;
|
this.type = Optional.of(type);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,16 +62,16 @@ public class ModelApiResponse {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("type")
|
@JsonProperty("type")
|
||||||
public String getType() {
|
public Optional<String> getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setType(String type) {
|
public void setType(Optional<String> type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelApiResponse message(String message) {
|
public ModelApiResponse message(String message) {
|
||||||
this.message = message;
|
this.message = Optional.of(message);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,11 +82,11 @@ public class ModelApiResponse {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("message")
|
@JsonProperty("message")
|
||||||
public String getMessage() {
|
public Optional<String> getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMessage(String message) {
|
public void setMessage(Optional<String> message) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,10 +24,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelList {
|
public class ModelList {
|
||||||
|
|
||||||
private String _123list;
|
private Optional<String> _123list = Optional.empty();
|
||||||
|
|
||||||
public ModelList _123list(String _123list) {
|
public ModelList _123list(String _123list) {
|
||||||
this._123list = _123list;
|
this._123list = Optional.of(_123list);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,11 +38,11 @@ public class ModelList {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("123-list")
|
@JsonProperty("123-list")
|
||||||
public String get123list() {
|
public Optional<String> get123list() {
|
||||||
return _123list;
|
return _123list;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set123list(String _123list) {
|
public void set123list(Optional<String> _123list) {
|
||||||
this._123list = _123list;
|
this._123list = _123list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,10 +25,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
|
|
||||||
private Integer _return;
|
private Optional<Integer> _return = Optional.empty();
|
||||||
|
|
||||||
public ModelReturn _return(Integer _return) {
|
public ModelReturn _return(Integer _return) {
|
||||||
this._return = _return;
|
this._return = Optional.of(_return);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,11 +39,11 @@ public class ModelReturn {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("return")
|
@JsonProperty("return")
|
||||||
public Integer getReturn() {
|
public Optional<Integer> getReturn() {
|
||||||
return _return;
|
return _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setReturn(Integer _return) {
|
public void setReturn(Optional<Integer> _return) {
|
||||||
this._return = _return;
|
this._return = _return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@ public class Name {
|
|||||||
|
|
||||||
private Integer name;
|
private Integer name;
|
||||||
|
|
||||||
private Integer snakeCase;
|
private Optional<Integer> snakeCase = Optional.empty();
|
||||||
|
|
||||||
private String property;
|
private Optional<String> property = Optional.empty();
|
||||||
|
|
||||||
private Integer _123number;
|
private Optional<Integer> _123number = Optional.empty();
|
||||||
|
|
||||||
public Name() {
|
public Name() {
|
||||||
super();
|
super();
|
||||||
@ -63,7 +63,7 @@ public class Name {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Name snakeCase(Integer snakeCase) {
|
public Name snakeCase(Integer snakeCase) {
|
||||||
this.snakeCase = snakeCase;
|
this.snakeCase = Optional.of(snakeCase);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,16 +74,16 @@ public class Name {
|
|||||||
|
|
||||||
@ApiModelProperty(readOnly = true, value = "")
|
@ApiModelProperty(readOnly = true, value = "")
|
||||||
@JsonProperty("snake_case")
|
@JsonProperty("snake_case")
|
||||||
public Integer getSnakeCase() {
|
public Optional<Integer> getSnakeCase() {
|
||||||
return snakeCase;
|
return snakeCase;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSnakeCase(Integer snakeCase) {
|
public void setSnakeCase(Optional<Integer> snakeCase) {
|
||||||
this.snakeCase = snakeCase;
|
this.snakeCase = snakeCase;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Name property(String property) {
|
public Name property(String property) {
|
||||||
this.property = property;
|
this.property = Optional.of(property);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,16 +94,16 @@ public class Name {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("property")
|
@JsonProperty("property")
|
||||||
public String getProperty() {
|
public Optional<String> getProperty() {
|
||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProperty(String property) {
|
public void setProperty(Optional<String> property) {
|
||||||
this.property = property;
|
this.property = property;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Name _123number(Integer _123number) {
|
public Name _123number(Integer _123number) {
|
||||||
this._123number = _123number;
|
this._123number = Optional.of(_123number);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,11 +114,11 @@ public class Name {
|
|||||||
|
|
||||||
@ApiModelProperty(readOnly = true, value = "")
|
@ApiModelProperty(readOnly = true, value = "")
|
||||||
@JsonProperty("123Number")
|
@JsonProperty("123Number")
|
||||||
public Integer get123number() {
|
public Optional<Integer> get123number() {
|
||||||
return _123number;
|
return _123number;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set123number(Integer _123number) {
|
public void set123number(Optional<Integer> _123number) {
|
||||||
this._123number = _123number;
|
this._123number = _123number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class NumberOnly {
|
public class NumberOnly {
|
||||||
|
|
||||||
private BigDecimal justNumber;
|
private Optional<BigDecimal> justNumber = Optional.empty();
|
||||||
|
|
||||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||||
this.justNumber = justNumber;
|
this.justNumber = Optional.of(justNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ public class NumberOnly {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("JustNumber")
|
@JsonProperty("JustNumber")
|
||||||
public BigDecimal getJustNumber() {
|
public Optional<BigDecimal> getJustNumber() {
|
||||||
return justNumber;
|
return justNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJustNumber(BigDecimal justNumber) {
|
public void setJustNumber(Optional<BigDecimal> justNumber) {
|
||||||
this.justNumber = justNumber;
|
this.justNumber = justNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,14 +25,14 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private Long petId;
|
private Optional<Long> petId = Optional.empty();
|
||||||
|
|
||||||
private Integer quantity;
|
private Optional<Integer> quantity = Optional.empty();
|
||||||
|
|
||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
private OffsetDateTime shipDate;
|
private Optional<OffsetDateTime> shipDate = Optional.empty();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
@ -71,12 +71,12 @@ public class Order {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private StatusEnum status;
|
private Optional<StatusEnum> status = Optional.empty();
|
||||||
|
|
||||||
private Boolean complete = false;
|
private Optional<Boolean> complete = Optional.of(false);
|
||||||
|
|
||||||
public Order id(Long id) {
|
public Order id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,16 +87,16 @@ public class Order {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order petId(Long petId) {
|
public Order petId(Long petId) {
|
||||||
this.petId = petId;
|
this.petId = Optional.of(petId);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,16 +107,16 @@ public class Order {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("petId")
|
@JsonProperty("petId")
|
||||||
public Long getPetId() {
|
public Optional<Long> getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPetId(Long petId) {
|
public void setPetId(Optional<Long> petId) {
|
||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order quantity(Integer quantity) {
|
public Order quantity(Integer quantity) {
|
||||||
this.quantity = quantity;
|
this.quantity = Optional.of(quantity);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,16 +127,16 @@ public class Order {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("quantity")
|
@JsonProperty("quantity")
|
||||||
public Integer getQuantity() {
|
public Optional<Integer> getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQuantity(Integer quantity) {
|
public void setQuantity(Optional<Integer> quantity) {
|
||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order shipDate(OffsetDateTime shipDate) {
|
public Order shipDate(OffsetDateTime shipDate) {
|
||||||
this.shipDate = shipDate;
|
this.shipDate = Optional.of(shipDate);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,16 +147,16 @@ public class Order {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("shipDate")
|
@JsonProperty("shipDate")
|
||||||
public OffsetDateTime getShipDate() {
|
public Optional<OffsetDateTime> getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setShipDate(OffsetDateTime shipDate) {
|
public void setShipDate(Optional<OffsetDateTime> shipDate) {
|
||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order status(StatusEnum status) {
|
public Order status(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = Optional.of(status);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,16 +167,16 @@ public class Order {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "Order Status")
|
@ApiModelProperty(value = "Order Status")
|
||||||
@JsonProperty("status")
|
@JsonProperty("status")
|
||||||
public StatusEnum getStatus() {
|
public Optional<StatusEnum> getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStatus(StatusEnum status) {
|
public void setStatus(Optional<StatusEnum> status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order complete(Boolean complete) {
|
public Order complete(Boolean complete) {
|
||||||
this.complete = complete;
|
this.complete = Optional.of(complete);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,11 +187,11 @@ public class Order {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("complete")
|
@JsonProperty("complete")
|
||||||
public Boolean getComplete() {
|
public Optional<Boolean> getComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setComplete(Boolean complete) {
|
public void setComplete(Optional<Boolean> complete) {
|
||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,14 +23,14 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class OuterComposite {
|
public class OuterComposite {
|
||||||
|
|
||||||
private BigDecimal myNumber;
|
private Optional<BigDecimal> myNumber = Optional.empty();
|
||||||
|
|
||||||
private String myString;
|
private Optional<String> myString = Optional.empty();
|
||||||
|
|
||||||
private Boolean myBoolean;
|
private Optional<Boolean> myBoolean = Optional.empty();
|
||||||
|
|
||||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||||
this.myNumber = myNumber;
|
this.myNumber = Optional.of(myNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,16 +41,16 @@ public class OuterComposite {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("my_number")
|
@JsonProperty("my_number")
|
||||||
public BigDecimal getMyNumber() {
|
public Optional<BigDecimal> getMyNumber() {
|
||||||
return myNumber;
|
return myNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMyNumber(BigDecimal myNumber) {
|
public void setMyNumber(Optional<BigDecimal> myNumber) {
|
||||||
this.myNumber = myNumber;
|
this.myNumber = myNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OuterComposite myString(String myString) {
|
public OuterComposite myString(String myString) {
|
||||||
this.myString = myString;
|
this.myString = Optional.of(myString);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,16 +61,16 @@ public class OuterComposite {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("my_string")
|
@JsonProperty("my_string")
|
||||||
public String getMyString() {
|
public Optional<String> getMyString() {
|
||||||
return myString;
|
return myString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMyString(String myString) {
|
public void setMyString(Optional<String> myString) {
|
||||||
this.myString = myString;
|
this.myString = myString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OuterComposite myBoolean(Boolean myBoolean) {
|
public OuterComposite myBoolean(Boolean myBoolean) {
|
||||||
this.myBoolean = myBoolean;
|
this.myBoolean = Optional.of(myBoolean);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,11 +81,11 @@ public class OuterComposite {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("my_boolean")
|
@JsonProperty("my_boolean")
|
||||||
public Boolean getMyBoolean() {
|
public Optional<Boolean> getMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMyBoolean(Boolean myBoolean) {
|
public void setMyBoolean(Optional<Boolean> myBoolean) {
|
||||||
this.myBoolean = myBoolean;
|
this.myBoolean = myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,12 +71,12 @@ public class ParentWithNullable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private TypeEnum type;
|
private Optional<TypeEnum> type = Optional.empty();
|
||||||
|
|
||||||
private JsonNullable<String> nullableProperty = JsonNullable.<String>undefined();
|
private JsonNullable<String> nullableProperty = JsonNullable.<String>undefined();
|
||||||
|
|
||||||
public ParentWithNullable type(TypeEnum type) {
|
public ParentWithNullable type(TypeEnum type) {
|
||||||
this.type = type;
|
this.type = Optional.of(type);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,11 +87,11 @@ public class ParentWithNullable {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("type")
|
@JsonProperty("type")
|
||||||
public TypeEnum getType() {
|
public Optional<TypeEnum> getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setType(TypeEnum type) {
|
public void setType(Optional<TypeEnum> type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,9 +31,9 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private Category category;
|
private Optional<Category> category = Optional.empty();
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
private StatusEnum status;
|
private Optional<StatusEnum> status = Optional.empty();
|
||||||
|
|
||||||
public Pet() {
|
public Pet() {
|
||||||
super();
|
super();
|
||||||
@ -96,7 +96,7 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet id(Long id) {
|
public Pet id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,16 +107,16 @@ public class Pet {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet category(Category category) {
|
public Pet category(Category category) {
|
||||||
this.category = category;
|
this.category = Optional.of(category);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,11 +127,11 @@ public class Pet {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("category")
|
@JsonProperty("category")
|
||||||
public Category getCategory() {
|
public Optional<Category> getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory(Category category) {
|
public void setCategory(Optional<Category> category) {
|
||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Pet status(StatusEnum status) {
|
public Pet status(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = Optional.of(status);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ public class Pet {
|
|||||||
@ApiModelProperty(value = "pet status in the store")
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
@JsonProperty("status")
|
@JsonProperty("status")
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public StatusEnum getStatus() {
|
public Optional<StatusEnum> getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ public class Pet {
|
|||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void setStatus(StatusEnum status) {
|
public void setStatus(Optional<StatusEnum> status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,12 +22,12 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ReadOnlyFirst {
|
public class ReadOnlyFirst {
|
||||||
|
|
||||||
private String bar;
|
private Optional<String> bar = Optional.empty();
|
||||||
|
|
||||||
private String baz;
|
private Optional<String> baz = Optional.empty();
|
||||||
|
|
||||||
public ReadOnlyFirst bar(String bar) {
|
public ReadOnlyFirst bar(String bar) {
|
||||||
this.bar = bar;
|
this.bar = Optional.of(bar);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,16 +38,16 @@ public class ReadOnlyFirst {
|
|||||||
|
|
||||||
@ApiModelProperty(readOnly = true, value = "")
|
@ApiModelProperty(readOnly = true, value = "")
|
||||||
@JsonProperty("bar")
|
@JsonProperty("bar")
|
||||||
public String getBar() {
|
public Optional<String> getBar() {
|
||||||
return bar;
|
return bar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBar(String bar) {
|
public void setBar(Optional<String> bar) {
|
||||||
this.bar = bar;
|
this.bar = bar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ReadOnlyFirst baz(String baz) {
|
public ReadOnlyFirst baz(String baz) {
|
||||||
this.baz = baz;
|
this.baz = Optional.of(baz);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,11 +58,11 @@ public class ReadOnlyFirst {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("baz")
|
@JsonProperty("baz")
|
||||||
public String getBaz() {
|
public Optional<String> getBaz() {
|
||||||
return baz;
|
return baz;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBaz(String baz) {
|
public void setBaz(Optional<String> baz) {
|
||||||
this.baz = baz;
|
this.baz = baz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,16 +22,16 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class ResponseObjectWithDifferentFieldNames {
|
public class ResponseObjectWithDifferentFieldNames {
|
||||||
|
|
||||||
private String normalPropertyName;
|
private Optional<String> normalPropertyName = Optional.empty();
|
||||||
|
|
||||||
private String UPPER_CASE_PROPERTY_SNAKE;
|
private Optional<String> UPPER_CASE_PROPERTY_SNAKE = Optional.empty();
|
||||||
|
|
||||||
private String lowerCasePropertyDashes;
|
private Optional<String> lowerCasePropertyDashes = Optional.empty();
|
||||||
|
|
||||||
private String propertyNameWithSpaces;
|
private Optional<String> propertyNameWithSpaces = Optional.empty();
|
||||||
|
|
||||||
public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) {
|
public ResponseObjectWithDifferentFieldNames normalPropertyName(String normalPropertyName) {
|
||||||
this.normalPropertyName = normalPropertyName;
|
this.normalPropertyName = Optional.of(normalPropertyName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,16 +42,16 @@ public class ResponseObjectWithDifferentFieldNames {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("normalPropertyName")
|
@JsonProperty("normalPropertyName")
|
||||||
public String getNormalPropertyName() {
|
public Optional<String> getNormalPropertyName() {
|
||||||
return normalPropertyName;
|
return normalPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNormalPropertyName(String normalPropertyName) {
|
public void setNormalPropertyName(Optional<String> normalPropertyName) {
|
||||||
this.normalPropertyName = normalPropertyName;
|
this.normalPropertyName = normalPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
public ResponseObjectWithDifferentFieldNames UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
||||||
this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE;
|
this.UPPER_CASE_PROPERTY_SNAKE = Optional.of(UPPER_CASE_PROPERTY_SNAKE);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,16 +62,16 @@ public class ResponseObjectWithDifferentFieldNames {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("UPPER_CASE_PROPERTY_SNAKE")
|
@JsonProperty("UPPER_CASE_PROPERTY_SNAKE")
|
||||||
public String getUPPERCASEPROPERTYSNAKE() {
|
public Optional<String> getUPPERCASEPROPERTYSNAKE() {
|
||||||
return UPPER_CASE_PROPERTY_SNAKE;
|
return UPPER_CASE_PROPERTY_SNAKE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUPPERCASEPROPERTYSNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
public void setUPPERCASEPROPERTYSNAKE(Optional<String> UPPER_CASE_PROPERTY_SNAKE) {
|
||||||
this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE;
|
this.UPPER_CASE_PROPERTY_SNAKE = UPPER_CASE_PROPERTY_SNAKE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
public ResponseObjectWithDifferentFieldNames lowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
||||||
this.lowerCasePropertyDashes = lowerCasePropertyDashes;
|
this.lowerCasePropertyDashes = Optional.of(lowerCasePropertyDashes);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,16 +82,16 @@ public class ResponseObjectWithDifferentFieldNames {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("lower-case-property-dashes")
|
@JsonProperty("lower-case-property-dashes")
|
||||||
public String getLowerCasePropertyDashes() {
|
public Optional<String> getLowerCasePropertyDashes() {
|
||||||
return lowerCasePropertyDashes;
|
return lowerCasePropertyDashes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
public void setLowerCasePropertyDashes(Optional<String> lowerCasePropertyDashes) {
|
||||||
this.lowerCasePropertyDashes = lowerCasePropertyDashes;
|
this.lowerCasePropertyDashes = lowerCasePropertyDashes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) {
|
public ResponseObjectWithDifferentFieldNames propertyNameWithSpaces(String propertyNameWithSpaces) {
|
||||||
this.propertyNameWithSpaces = propertyNameWithSpaces;
|
this.propertyNameWithSpaces = Optional.of(propertyNameWithSpaces);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,11 +102,11 @@ public class ResponseObjectWithDifferentFieldNames {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("property name with spaces")
|
@JsonProperty("property name with spaces")
|
||||||
public String getPropertyNameWithSpaces() {
|
public Optional<String> getPropertyNameWithSpaces() {
|
||||||
return propertyNameWithSpaces;
|
return propertyNameWithSpaces;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPropertyNameWithSpaces(String propertyNameWithSpaces) {
|
public void setPropertyNameWithSpaces(Optional<String> propertyNameWithSpaces) {
|
||||||
this.propertyNameWithSpaces = propertyNameWithSpaces;
|
this.propertyNameWithSpaces = propertyNameWithSpaces;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,10 +24,10 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class SpecialModelName {
|
public class SpecialModelName {
|
||||||
|
|
||||||
private Long $specialPropertyName;
|
private Optional<Long> $specialPropertyName = Optional.empty();
|
||||||
|
|
||||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||||
this.$specialPropertyName = $specialPropertyName;
|
this.$specialPropertyName = Optional.of($specialPropertyName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,11 +38,11 @@ public class SpecialModelName {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("$special[property.name]")
|
@JsonProperty("$special[property.name]")
|
||||||
public Long get$SpecialPropertyName() {
|
public Optional<Long> get$SpecialPropertyName() {
|
||||||
return $specialPropertyName;
|
return $specialPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set$SpecialPropertyName(Long $specialPropertyName) {
|
public void set$SpecialPropertyName(Optional<Long> $specialPropertyName) {
|
||||||
this.$specialPropertyName = $specialPropertyName;
|
this.$specialPropertyName = $specialPropertyName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,12 +22,12 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private String name;
|
private Optional<String> name = Optional.empty();
|
||||||
|
|
||||||
public Tag id(Long id) {
|
public Tag id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,16 +38,16 @@ public class Tag {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tag name(String name) {
|
public Tag name(String name) {
|
||||||
this.name = name;
|
this.name = Optional.of(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,11 +58,11 @@ public class Tag {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
public String getName() {
|
public Optional<String> getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(Optional<String> name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,24 +22,24 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
private Long id;
|
private Optional<Long> id = Optional.empty();
|
||||||
|
|
||||||
private String username;
|
private Optional<String> username = Optional.empty();
|
||||||
|
|
||||||
private String firstName;
|
private Optional<String> firstName = Optional.empty();
|
||||||
|
|
||||||
private String lastName;
|
private Optional<String> lastName = Optional.empty();
|
||||||
|
|
||||||
private String email;
|
private Optional<String> email = Optional.empty();
|
||||||
|
|
||||||
private String password;
|
private Optional<String> password = Optional.empty();
|
||||||
|
|
||||||
private String phone;
|
private Optional<String> phone = Optional.empty();
|
||||||
|
|
||||||
private Integer userStatus;
|
private Optional<Integer> userStatus = Optional.empty();
|
||||||
|
|
||||||
public User id(Long id) {
|
public User id(Long id) {
|
||||||
this.id = id;
|
this.id = Optional.of(id);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,16 +50,16 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Long getId() {
|
public Optional<Long> getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Optional<Long> id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User username(String username) {
|
public User username(String username) {
|
||||||
this.username = username;
|
this.username = Optional.of(username);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,16 +70,16 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("username")
|
@JsonProperty("username")
|
||||||
public String getUsername() {
|
public Optional<String> getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsername(String username) {
|
public void setUsername(Optional<String> username) {
|
||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User firstName(String firstName) {
|
public User firstName(String firstName) {
|
||||||
this.firstName = firstName;
|
this.firstName = Optional.of(firstName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,16 +90,16 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("firstName")
|
@JsonProperty("firstName")
|
||||||
public String getFirstName() {
|
public Optional<String> getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFirstName(String firstName) {
|
public void setFirstName(Optional<String> firstName) {
|
||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User lastName(String lastName) {
|
public User lastName(String lastName) {
|
||||||
this.lastName = lastName;
|
this.lastName = Optional.of(lastName);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,16 +110,16 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("lastName")
|
@JsonProperty("lastName")
|
||||||
public String getLastName() {
|
public Optional<String> getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLastName(String lastName) {
|
public void setLastName(Optional<String> lastName) {
|
||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User email(String email) {
|
public User email(String email) {
|
||||||
this.email = email;
|
this.email = Optional.of(email);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,16 +130,16 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("email")
|
@JsonProperty("email")
|
||||||
public String getEmail() {
|
public Optional<String> getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmail(String email) {
|
public void setEmail(Optional<String> email) {
|
||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User password(String password) {
|
public User password(String password) {
|
||||||
this.password = password;
|
this.password = Optional.of(password);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,16 +150,16 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("password")
|
@JsonProperty("password")
|
||||||
public String getPassword() {
|
public Optional<String> getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPassword(String password) {
|
public void setPassword(Optional<String> password) {
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User phone(String phone) {
|
public User phone(String phone) {
|
||||||
this.phone = phone;
|
this.phone = Optional.of(phone);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,16 +170,16 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
@JsonProperty("phone")
|
@JsonProperty("phone")
|
||||||
public String getPhone() {
|
public Optional<String> getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhone(String phone) {
|
public void setPhone(Optional<String> phone) {
|
||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User userStatus(Integer userStatus) {
|
public User userStatus(Integer userStatus) {
|
||||||
this.userStatus = userStatus;
|
this.userStatus = Optional.of(userStatus);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,11 +190,11 @@ public class User {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "User Status")
|
@ApiModelProperty(value = "User Status")
|
||||||
@JsonProperty("userStatus")
|
@JsonProperty("userStatus")
|
||||||
public Integer getUserStatus() {
|
public Optional<Integer> getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserStatus(Integer userStatus) {
|
public void setUserStatus(Optional<Integer> userStatus) {
|
||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,24 +26,24 @@ import javax.annotation.Generated;
|
|||||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
public class XmlItem {
|
public class XmlItem {
|
||||||
|
|
||||||
private String attributeString;
|
private Optional<String> attributeString = Optional.empty();
|
||||||
|
|
||||||
private BigDecimal attributeNumber;
|
private Optional<BigDecimal> attributeNumber = Optional.empty();
|
||||||
|
|
||||||
private Integer attributeInteger;
|
private Optional<Integer> attributeInteger = Optional.empty();
|
||||||
|
|
||||||
private Boolean attributeBoolean;
|
private Optional<Boolean> attributeBoolean = Optional.empty();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<Integer> wrappedArray;
|
private List<Integer> wrappedArray;
|
||||||
|
|
||||||
private String nameString;
|
private Optional<String> nameString = Optional.empty();
|
||||||
|
|
||||||
private BigDecimal nameNumber;
|
private Optional<BigDecimal> nameNumber = Optional.empty();
|
||||||
|
|
||||||
private Integer nameInteger;
|
private Optional<Integer> nameInteger = Optional.empty();
|
||||||
|
|
||||||
private Boolean nameBoolean;
|
private Optional<Boolean> nameBoolean = Optional.empty();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<Integer> nameArray;
|
private List<Integer> nameArray;
|
||||||
@ -51,13 +51,13 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
private List<Integer> nameWrappedArray;
|
private List<Integer> nameWrappedArray;
|
||||||
|
|
||||||
private String prefixString;
|
private Optional<String> prefixString = Optional.empty();
|
||||||
|
|
||||||
private BigDecimal prefixNumber;
|
private Optional<BigDecimal> prefixNumber = Optional.empty();
|
||||||
|
|
||||||
private Integer prefixInteger;
|
private Optional<Integer> prefixInteger = Optional.empty();
|
||||||
|
|
||||||
private Boolean prefixBoolean;
|
private Optional<Boolean> prefixBoolean = Optional.empty();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<Integer> prefixArray;
|
private List<Integer> prefixArray;
|
||||||
@ -65,13 +65,13 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
private List<Integer> prefixWrappedArray;
|
private List<Integer> prefixWrappedArray;
|
||||||
|
|
||||||
private String namespaceString;
|
private Optional<String> namespaceString = Optional.empty();
|
||||||
|
|
||||||
private BigDecimal namespaceNumber;
|
private Optional<BigDecimal> namespaceNumber = Optional.empty();
|
||||||
|
|
||||||
private Integer namespaceInteger;
|
private Optional<Integer> namespaceInteger = Optional.empty();
|
||||||
|
|
||||||
private Boolean namespaceBoolean;
|
private Optional<Boolean> namespaceBoolean = Optional.empty();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<Integer> namespaceArray;
|
private List<Integer> namespaceArray;
|
||||||
@ -79,13 +79,13 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
private List<Integer> namespaceWrappedArray;
|
private List<Integer> namespaceWrappedArray;
|
||||||
|
|
||||||
private String prefixNsString;
|
private Optional<String> prefixNsString = Optional.empty();
|
||||||
|
|
||||||
private BigDecimal prefixNsNumber;
|
private Optional<BigDecimal> prefixNsNumber = Optional.empty();
|
||||||
|
|
||||||
private Integer prefixNsInteger;
|
private Optional<Integer> prefixNsInteger = Optional.empty();
|
||||||
|
|
||||||
private Boolean prefixNsBoolean;
|
private Optional<Boolean> prefixNsBoolean = Optional.empty();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<Integer> prefixNsArray;
|
private List<Integer> prefixNsArray;
|
||||||
@ -94,7 +94,7 @@ public class XmlItem {
|
|||||||
private List<Integer> prefixNsWrappedArray;
|
private List<Integer> prefixNsWrappedArray;
|
||||||
|
|
||||||
public XmlItem attributeString(String attributeString) {
|
public XmlItem attributeString(String attributeString) {
|
||||||
this.attributeString = attributeString;
|
this.attributeString = Optional.of(attributeString);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,16 +105,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
@JsonProperty("attribute_string")
|
@JsonProperty("attribute_string")
|
||||||
public String getAttributeString() {
|
public Optional<String> getAttributeString() {
|
||||||
return attributeString;
|
return attributeString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAttributeString(String attributeString) {
|
public void setAttributeString(Optional<String> attributeString) {
|
||||||
this.attributeString = attributeString;
|
this.attributeString = attributeString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem attributeNumber(BigDecimal attributeNumber) {
|
public XmlItem attributeNumber(BigDecimal attributeNumber) {
|
||||||
this.attributeNumber = attributeNumber;
|
this.attributeNumber = Optional.of(attributeNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,16 +125,16 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
@JsonProperty("attribute_number")
|
@JsonProperty("attribute_number")
|
||||||
public BigDecimal getAttributeNumber() {
|
public Optional<BigDecimal> getAttributeNumber() {
|
||||||
return attributeNumber;
|
return attributeNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAttributeNumber(BigDecimal attributeNumber) {
|
public void setAttributeNumber(Optional<BigDecimal> attributeNumber) {
|
||||||
this.attributeNumber = attributeNumber;
|
this.attributeNumber = attributeNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem attributeInteger(Integer attributeInteger) {
|
public XmlItem attributeInteger(Integer attributeInteger) {
|
||||||
this.attributeInteger = attributeInteger;
|
this.attributeInteger = Optional.of(attributeInteger);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,16 +145,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "-2", value = "")
|
@ApiModelProperty(example = "-2", value = "")
|
||||||
@JsonProperty("attribute_integer")
|
@JsonProperty("attribute_integer")
|
||||||
public Integer getAttributeInteger() {
|
public Optional<Integer> getAttributeInteger() {
|
||||||
return attributeInteger;
|
return attributeInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAttributeInteger(Integer attributeInteger) {
|
public void setAttributeInteger(Optional<Integer> attributeInteger) {
|
||||||
this.attributeInteger = attributeInteger;
|
this.attributeInteger = attributeInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem attributeBoolean(Boolean attributeBoolean) {
|
public XmlItem attributeBoolean(Boolean attributeBoolean) {
|
||||||
this.attributeBoolean = attributeBoolean;
|
this.attributeBoolean = Optional.of(attributeBoolean);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,11 +165,11 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "true", value = "")
|
@ApiModelProperty(example = "true", value = "")
|
||||||
@JsonProperty("attribute_boolean")
|
@JsonProperty("attribute_boolean")
|
||||||
public Boolean getAttributeBoolean() {
|
public Optional<Boolean> getAttributeBoolean() {
|
||||||
return attributeBoolean;
|
return attributeBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAttributeBoolean(Boolean attributeBoolean) {
|
public void setAttributeBoolean(Optional<Boolean> attributeBoolean) {
|
||||||
this.attributeBoolean = attributeBoolean;
|
this.attributeBoolean = attributeBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ public class XmlItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem nameString(String nameString) {
|
public XmlItem nameString(String nameString) {
|
||||||
this.nameString = nameString;
|
this.nameString = Optional.of(nameString);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,16 +213,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
@JsonProperty("name_string")
|
@JsonProperty("name_string")
|
||||||
public String getNameString() {
|
public Optional<String> getNameString() {
|
||||||
return nameString;
|
return nameString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNameString(String nameString) {
|
public void setNameString(Optional<String> nameString) {
|
||||||
this.nameString = nameString;
|
this.nameString = nameString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem nameNumber(BigDecimal nameNumber) {
|
public XmlItem nameNumber(BigDecimal nameNumber) {
|
||||||
this.nameNumber = nameNumber;
|
this.nameNumber = Optional.of(nameNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,16 +233,16 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
@JsonProperty("name_number")
|
@JsonProperty("name_number")
|
||||||
public BigDecimal getNameNumber() {
|
public Optional<BigDecimal> getNameNumber() {
|
||||||
return nameNumber;
|
return nameNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNameNumber(BigDecimal nameNumber) {
|
public void setNameNumber(Optional<BigDecimal> nameNumber) {
|
||||||
this.nameNumber = nameNumber;
|
this.nameNumber = nameNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem nameInteger(Integer nameInteger) {
|
public XmlItem nameInteger(Integer nameInteger) {
|
||||||
this.nameInteger = nameInteger;
|
this.nameInteger = Optional.of(nameInteger);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,16 +253,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "-2", value = "")
|
@ApiModelProperty(example = "-2", value = "")
|
||||||
@JsonProperty("name_integer")
|
@JsonProperty("name_integer")
|
||||||
public Integer getNameInteger() {
|
public Optional<Integer> getNameInteger() {
|
||||||
return nameInteger;
|
return nameInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNameInteger(Integer nameInteger) {
|
public void setNameInteger(Optional<Integer> nameInteger) {
|
||||||
this.nameInteger = nameInteger;
|
this.nameInteger = nameInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem nameBoolean(Boolean nameBoolean) {
|
public XmlItem nameBoolean(Boolean nameBoolean) {
|
||||||
this.nameBoolean = nameBoolean;
|
this.nameBoolean = Optional.of(nameBoolean);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,11 +273,11 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "true", value = "")
|
@ApiModelProperty(example = "true", value = "")
|
||||||
@JsonProperty("name_boolean")
|
@JsonProperty("name_boolean")
|
||||||
public Boolean getNameBoolean() {
|
public Optional<Boolean> getNameBoolean() {
|
||||||
return nameBoolean;
|
return nameBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNameBoolean(Boolean nameBoolean) {
|
public void setNameBoolean(Optional<Boolean> nameBoolean) {
|
||||||
this.nameBoolean = nameBoolean;
|
this.nameBoolean = nameBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ public class XmlItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixString(String prefixString) {
|
public XmlItem prefixString(String prefixString) {
|
||||||
this.prefixString = prefixString;
|
this.prefixString = Optional.of(prefixString);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -349,16 +349,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
@JsonProperty("prefix_string")
|
@JsonProperty("prefix_string")
|
||||||
public String getPrefixString() {
|
public Optional<String> getPrefixString() {
|
||||||
return prefixString;
|
return prefixString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixString(String prefixString) {
|
public void setPrefixString(Optional<String> prefixString) {
|
||||||
this.prefixString = prefixString;
|
this.prefixString = prefixString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixNumber(BigDecimal prefixNumber) {
|
public XmlItem prefixNumber(BigDecimal prefixNumber) {
|
||||||
this.prefixNumber = prefixNumber;
|
this.prefixNumber = Optional.of(prefixNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -369,16 +369,16 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
@JsonProperty("prefix_number")
|
@JsonProperty("prefix_number")
|
||||||
public BigDecimal getPrefixNumber() {
|
public Optional<BigDecimal> getPrefixNumber() {
|
||||||
return prefixNumber;
|
return prefixNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixNumber(BigDecimal prefixNumber) {
|
public void setPrefixNumber(Optional<BigDecimal> prefixNumber) {
|
||||||
this.prefixNumber = prefixNumber;
|
this.prefixNumber = prefixNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixInteger(Integer prefixInteger) {
|
public XmlItem prefixInteger(Integer prefixInteger) {
|
||||||
this.prefixInteger = prefixInteger;
|
this.prefixInteger = Optional.of(prefixInteger);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -389,16 +389,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "-2", value = "")
|
@ApiModelProperty(example = "-2", value = "")
|
||||||
@JsonProperty("prefix_integer")
|
@JsonProperty("prefix_integer")
|
||||||
public Integer getPrefixInteger() {
|
public Optional<Integer> getPrefixInteger() {
|
||||||
return prefixInteger;
|
return prefixInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixInteger(Integer prefixInteger) {
|
public void setPrefixInteger(Optional<Integer> prefixInteger) {
|
||||||
this.prefixInteger = prefixInteger;
|
this.prefixInteger = prefixInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixBoolean(Boolean prefixBoolean) {
|
public XmlItem prefixBoolean(Boolean prefixBoolean) {
|
||||||
this.prefixBoolean = prefixBoolean;
|
this.prefixBoolean = Optional.of(prefixBoolean);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,11 +409,11 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "true", value = "")
|
@ApiModelProperty(example = "true", value = "")
|
||||||
@JsonProperty("prefix_boolean")
|
@JsonProperty("prefix_boolean")
|
||||||
public Boolean getPrefixBoolean() {
|
public Optional<Boolean> getPrefixBoolean() {
|
||||||
return prefixBoolean;
|
return prefixBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixBoolean(Boolean prefixBoolean) {
|
public void setPrefixBoolean(Optional<Boolean> prefixBoolean) {
|
||||||
this.prefixBoolean = prefixBoolean;
|
this.prefixBoolean = prefixBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -474,7 +474,7 @@ public class XmlItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem namespaceString(String namespaceString) {
|
public XmlItem namespaceString(String namespaceString) {
|
||||||
this.namespaceString = namespaceString;
|
this.namespaceString = Optional.of(namespaceString);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -485,16 +485,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
@JsonProperty("namespace_string")
|
@JsonProperty("namespace_string")
|
||||||
public String getNamespaceString() {
|
public Optional<String> getNamespaceString() {
|
||||||
return namespaceString;
|
return namespaceString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNamespaceString(String namespaceString) {
|
public void setNamespaceString(Optional<String> namespaceString) {
|
||||||
this.namespaceString = namespaceString;
|
this.namespaceString = namespaceString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem namespaceNumber(BigDecimal namespaceNumber) {
|
public XmlItem namespaceNumber(BigDecimal namespaceNumber) {
|
||||||
this.namespaceNumber = namespaceNumber;
|
this.namespaceNumber = Optional.of(namespaceNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -505,16 +505,16 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
@JsonProperty("namespace_number")
|
@JsonProperty("namespace_number")
|
||||||
public BigDecimal getNamespaceNumber() {
|
public Optional<BigDecimal> getNamespaceNumber() {
|
||||||
return namespaceNumber;
|
return namespaceNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNamespaceNumber(BigDecimal namespaceNumber) {
|
public void setNamespaceNumber(Optional<BigDecimal> namespaceNumber) {
|
||||||
this.namespaceNumber = namespaceNumber;
|
this.namespaceNumber = namespaceNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem namespaceInteger(Integer namespaceInteger) {
|
public XmlItem namespaceInteger(Integer namespaceInteger) {
|
||||||
this.namespaceInteger = namespaceInteger;
|
this.namespaceInteger = Optional.of(namespaceInteger);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -525,16 +525,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "-2", value = "")
|
@ApiModelProperty(example = "-2", value = "")
|
||||||
@JsonProperty("namespace_integer")
|
@JsonProperty("namespace_integer")
|
||||||
public Integer getNamespaceInteger() {
|
public Optional<Integer> getNamespaceInteger() {
|
||||||
return namespaceInteger;
|
return namespaceInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNamespaceInteger(Integer namespaceInteger) {
|
public void setNamespaceInteger(Optional<Integer> namespaceInteger) {
|
||||||
this.namespaceInteger = namespaceInteger;
|
this.namespaceInteger = namespaceInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem namespaceBoolean(Boolean namespaceBoolean) {
|
public XmlItem namespaceBoolean(Boolean namespaceBoolean) {
|
||||||
this.namespaceBoolean = namespaceBoolean;
|
this.namespaceBoolean = Optional.of(namespaceBoolean);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -545,11 +545,11 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "true", value = "")
|
@ApiModelProperty(example = "true", value = "")
|
||||||
@JsonProperty("namespace_boolean")
|
@JsonProperty("namespace_boolean")
|
||||||
public Boolean getNamespaceBoolean() {
|
public Optional<Boolean> getNamespaceBoolean() {
|
||||||
return namespaceBoolean;
|
return namespaceBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNamespaceBoolean(Boolean namespaceBoolean) {
|
public void setNamespaceBoolean(Optional<Boolean> namespaceBoolean) {
|
||||||
this.namespaceBoolean = namespaceBoolean;
|
this.namespaceBoolean = namespaceBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -610,7 +610,7 @@ public class XmlItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixNsString(String prefixNsString) {
|
public XmlItem prefixNsString(String prefixNsString) {
|
||||||
this.prefixNsString = prefixNsString;
|
this.prefixNsString = Optional.of(prefixNsString);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -621,16 +621,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "string", value = "")
|
@ApiModelProperty(example = "string", value = "")
|
||||||
@JsonProperty("prefix_ns_string")
|
@JsonProperty("prefix_ns_string")
|
||||||
public String getPrefixNsString() {
|
public Optional<String> getPrefixNsString() {
|
||||||
return prefixNsString;
|
return prefixNsString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixNsString(String prefixNsString) {
|
public void setPrefixNsString(Optional<String> prefixNsString) {
|
||||||
this.prefixNsString = prefixNsString;
|
this.prefixNsString = prefixNsString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) {
|
public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) {
|
||||||
this.prefixNsNumber = prefixNsNumber;
|
this.prefixNsNumber = Optional.of(prefixNsNumber);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -641,16 +641,16 @@ public class XmlItem {
|
|||||||
@Valid
|
@Valid
|
||||||
@ApiModelProperty(example = "1.234", value = "")
|
@ApiModelProperty(example = "1.234", value = "")
|
||||||
@JsonProperty("prefix_ns_number")
|
@JsonProperty("prefix_ns_number")
|
||||||
public BigDecimal getPrefixNsNumber() {
|
public Optional<BigDecimal> getPrefixNsNumber() {
|
||||||
return prefixNsNumber;
|
return prefixNsNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixNsNumber(BigDecimal prefixNsNumber) {
|
public void setPrefixNsNumber(Optional<BigDecimal> prefixNsNumber) {
|
||||||
this.prefixNsNumber = prefixNsNumber;
|
this.prefixNsNumber = prefixNsNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixNsInteger(Integer prefixNsInteger) {
|
public XmlItem prefixNsInteger(Integer prefixNsInteger) {
|
||||||
this.prefixNsInteger = prefixNsInteger;
|
this.prefixNsInteger = Optional.of(prefixNsInteger);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -661,16 +661,16 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "-2", value = "")
|
@ApiModelProperty(example = "-2", value = "")
|
||||||
@JsonProperty("prefix_ns_integer")
|
@JsonProperty("prefix_ns_integer")
|
||||||
public Integer getPrefixNsInteger() {
|
public Optional<Integer> getPrefixNsInteger() {
|
||||||
return prefixNsInteger;
|
return prefixNsInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixNsInteger(Integer prefixNsInteger) {
|
public void setPrefixNsInteger(Optional<Integer> prefixNsInteger) {
|
||||||
this.prefixNsInteger = prefixNsInteger;
|
this.prefixNsInteger = prefixNsInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) {
|
public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) {
|
||||||
this.prefixNsBoolean = prefixNsBoolean;
|
this.prefixNsBoolean = Optional.of(prefixNsBoolean);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -681,11 +681,11 @@ public class XmlItem {
|
|||||||
|
|
||||||
@ApiModelProperty(example = "true", value = "")
|
@ApiModelProperty(example = "true", value = "")
|
||||||
@JsonProperty("prefix_ns_boolean")
|
@JsonProperty("prefix_ns_boolean")
|
||||||
public Boolean getPrefixNsBoolean() {
|
public Optional<Boolean> getPrefixNsBoolean() {
|
||||||
return prefixNsBoolean;
|
return prefixNsBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixNsBoolean(Boolean prefixNsBoolean) {
|
public void setPrefixNsBoolean(Optional<Boolean> prefixNsBoolean) {
|
||||||
this.prefixNsBoolean = prefixNsBoolean;
|
this.prefixNsBoolean = prefixNsBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user